/* ========================================== */
/* ESTILOS PARA PÁGINA DE CADASTRO */
/* ========================================== */

.cadastro-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.cadastro-header {
    text-align: center;
    margin-bottom: 40px;
    color: #f5e6d3;
}

.cadastro-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    color: #f8efb2;
}

.cadastro-header p {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    color: #f5e6d3;
    opacity: 0.9;
}

/* ========================================== */
/* AVISO DE IDADE */
/* ========================================== */
.aviso-idade {
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.aviso-idade h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 10px;
    font-weight: 600;
}

.aviso-idade p {
    font-family: 'Lato', sans-serif;
    color: #f5e6d3;
    line-height: 1.6;
    font-size: 1rem;
}

/* ========================================== */
/* FORMULÁRIO */
/* ========================================== */
.formulario-card {
    background: rgba(122, 31, 43, 0.4);
    border: 2px solid rgba(245, 230, 211, 0.3);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.form-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4a373, transparent);
    margin: 30px 0;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    color: #f5e6d3;
    margin-bottom: 8px;
    font-size: 1rem;
}

.required {
    color: #ff6b6b;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(245, 230, 211, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #f5e6d3;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* ========================================== */
/* MELHORIAS NO SELECT (MÊS) */
/* ========================================== */
.form-group select {
    cursor: pointer;
}

/* Estilo das opções quando o select está aberto */
.form-group select option {
    background-color: #2d1b1b;
    color: #f5e6d3;
    padding: 10px;
    font-family: 'Lato', sans-serif;
}

.form-group select option:hover,
.form-group select option:checked {
    background-color: #722f37;
    color: #ffd700;
}

.form-group input::placeholder {
    color: rgba(245, 230, 211, 0.5);
}

/* ========================================== */
/* DATA DE NASCIMENTO */
/* ========================================== */
.data-nascimento {
    display: flex;
    gap: 10px;
    align-items: center;
}

.data-nascimento input,
.data-nascimento select {
    flex: 1;
}

.data-nascimento input[type="number"] {
    max-width: 80px;
}

.data-nascimento select {
    max-width: 150px;
}

/* ========================================== */
/* CHECKBOX */
/* ========================================== */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ffd700;
    flex-shrink: 0;
}

.checkbox-group label {
    font-family: 'Lato', sans-serif;
    color: #f5e6d3;
    line-height: 1.6;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-group label strong {
    color: #ffd700;
    font-weight: 700;
}

.checkbox-group a {
    color: #d4a373;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.checkbox-group a:hover {
    color: #ffd700;
}

/* ========================================== */
/* MENSAGENS DE ERRO */
/* ========================================== */
.erro-campo {
    display: none;
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
    font-family: 'Lato', sans-serif;
}

.form-group.erro input,
.form-group.erro select {
    border-color: #ff6b6b;
}

.form-group.erro .erro-campo {
    display: block;
}

/* ========================================== */
/* BOTÃO DE CADASTRO */
/* ========================================== */
.btn-cadastrar {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.btn-cadastrar:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

.btn-cadastrar:active {
    transform: translateY(-1px);
}

/* ========================================== */
/* FOOTER LINK */
/* ========================================== */
.footer-link {
    text-align: center;
    margin-top: 30px;
    font-family: 'Lato', sans-serif;
    color: #f5e6d3;
    font-size: 1rem;
}

.footer-link a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-link a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

/* ========================================== */
/* RESPONSIVIDADE */
/* ========================================== */
@media (max-width: 768px) {
    .cadastro-header h1 {
        font-size: 2.2rem;
    }
    
    .formulario-card {
        padding: 25px;
    }
    
    .data-nascimento {
        flex-direction: column;
    }
    
    .data-nascimento input,
    .data-nascimento select {
        max-width: 100%;
        width: 100%;
    }
}

/* ========================================== */
/* ANIMAÇÃO DE SUCESSO */
/* ========================================== */
@keyframes sucessoAnimation {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.mensagem-sucesso {
    display: none;
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #4caf50;
    font-family: 'Lato', sans-serif;
    margin-top: 20px;
    animation: sucessoAnimation 0.5s ease;
}

.mensagem-sucesso.ativo {
    display: block;
}