/* Reset básico e configurações globais */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000000;
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('./assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    width: 100vw;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background-color: transparent; 
    text-align: center;
    position: relative;
}

/* Placeholder do Logo */
.logo-area {
    width: 100%;
    max-width: 250px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    transform: translateZ(0);
}

@keyframes logoEntry {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.8);
    }
    60% {
        transform: translateX(10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.logo-area img {
    animation: logoEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    will-change: transform, opacity;
}

/* Modal de Sucesso */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #111;
    padding: 40px;
    border: 1px solid #333;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal h3 {
    color: #fff;
    margin: 20px 0 10px 0;
    font-size: 1.5rem;
}

.modal p {
    color: #ccc;
    margin-bottom: 25px;
}

.modal button {
    background-color: #28a745;
    margin-top: 0;
}

.modal button:hover {
    background-color: #218838;
}

/* Animação do Check Verde */
.checkmark-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.checkmark {
    width: 40px;
    height: 20px;
    border-left: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(-45deg) translate(2px, -2px);
    opacity: 0;
    animation: checkDraw 0.4s 0.3s ease forwards;
}

@keyframes checkDraw {
    0% {
        opacity: 0;
        width: 0;
        height: 0;
    }
    50% {
        opacity: 1;
        width: 0;
        height: 20px;
    }
    100% {
        opacity: 1;
        width: 40px;
        height: 20px;
    }
}

h2 {
    margin-bottom: 30px;
    font-weight: normal;
    letter-spacing: 1px;
    color: #eee;
}

/* Estilos do Formulário */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ccc;
}

input {
    width: 100%;
    padding: 12px 15px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

input:focus {
    border-color: #555;
    background-color: #161616;
}

input::placeholder {
    color: #444;
}

/* Botão */
button {
    width: 100%;
    padding: 14px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    font-weight: bold;
}

button:hover {
    background-color: #444;
}

button:active {
    transform: scale(0.98);
}

/* Grid para bairro e cidade */
.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

/* Responsividade */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
}
