body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: radial-gradient(circle at top left, #1b1b1b, #000);
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --------------------------
   TOPO (logo + título)
---------------------------*/
.topo {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

#logo {
    width: 140px;
    max-width: 40vw;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 15px rgba(224, 201, 123, 0.4));
    animation: flutuar 3s ease-in-out infinite;
}

@keyframes flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.topo h1 {
    color: #e0c97b;
    font-size: 24px;
    margin-top: 12px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(224, 201, 123, 0.4);
}

/* --------------------------
   CONTAINER PRINCIPAL
---------------------------*/
.container {
    width: 90%;
    max-width: 500px;
    background: rgba(22, 22, 22, 0.95);
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(224, 201, 123, 0.25);
    backdrop-filter: blur(6px);
    margin-bottom: 60px;
    box-sizing: border-box;
}

/* --------------------------
   TÍTULOS
---------------------------*/
h2 {
    text-align: center;
    color: #e0c97b;
    margin-bottom: 25px;
    font-size: 22px;
    text-shadow: 0 0 8px rgba(224, 201, 123, 0.5);
}

/* --------------------------
   CAMPOS DE FORMULÁRIO
---------------------------*/
form label {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    font-weight: 600;
    color: #ddd;
}

input, select {
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 8px;
    font-size: 15px;
    background: #111;
    color: #eee;
    outline: none;
    transition: 0.3s;
    width: 100%;
    box-sizing: border-box;
}

input:focus, select:focus {
    border-color: #e0c97b;
    box-shadow: 0 0 6px rgba(224, 201, 123, 0.4);
}

/* --------------------------
   BOTÕES
---------------------------*/
input[type="button"], input[type="submit"] {
    background: linear-gradient(90deg, #e0c97b, #bfa86b);
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    margin-top: 15px;
}

input[type="button"]:hover, input[type="submit"]:hover {
    background: linear-gradient(90deg, #bfa86b, #e0c97b);
    box-shadow: 0 0 12px rgba(224, 201, 123, 0.5);
}

/* --------------------------
   LINKS
---------------------------*/
#cep-link {
    margin-top: 6px;
    font-size: 13px;
    color: #e0c97b;
    text-decoration: none;
    transition: 0.3s;
}

#cep-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(224, 201, 123, 0.6);
}

/* --------------------------
   BOTÕES DE ETAPAS
---------------------------*/
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

/* --------------------------
   MENSAGEM DE ERRO
---------------------------*/
.erro {
    color: #ff5c5c;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

/* --------------------------
   MEDIA QUERIES PARA CELULARES
---------------------------*/
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    input, select {
        font-size: 14px;
        padding: 8px;
    }
    input[type="button"], input[type="submit"] {
        font-size: 14px;
        padding: 10px;
    }
    .topo h1 {
        font-size: 20px;
    }
}
