/* ============================================================
   CSS – Apresentação de Crianças
   AD Valença - apresentacao-criancas.css
   ============================================================ */

/* Preview da foto */
#previewContainer {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#previewContainer:hover {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

#previewContainer.has-image {
    border-style: solid;
    border-color: #10B981;
}

/* Radio buttons estilizados */
.radio-option {
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: #8B5CF6;
    background-color: #F5F3FF;
}

.radio-option:has(input:checked) {
    border-color: #8B5CF6;
    background-color: #EDE9FE;
}

.radio-option.radio-green:hover {
    border-color: #10B981;
    background-color: #ECFDF5;
}

.radio-option.radio-green:has(input:checked) {
    border-color: #10B981;
    background-color: #D1FAE5;
}

/* Captcha box */
.captcha-box {
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    letter-spacing: 0.5em;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* Section headers com gradiente */
.section-header-blue {
    background: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);
}

.section-header-amber {
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
}

.section-header-purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #4F46E5 100%);
}

.section-header-green {
    background: linear-gradient(135deg, #22C55E 0%, #059669 100%);
}

/* Botão submit - efeito de loading */
#btnSubmit {
    transition: all 0.3s ease;
}

#btnSubmit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Alertas de sucesso/erro */
.alert-success {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border-left: 4px solid #22C55E;
}

.alert-error {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border-left: 4px solid #EF4444;
}

.alert-whatsapp {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 1px solid #A7F3D0;
}

.alert-warning {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1px solid #FDE68A;
}

/* Hero da página */
.hero-criancas {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    position: relative;
}

.hero-criancas::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

/* Versículo de rodapé */
.section-versiculo-criancas {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
}

/* Input com uppercase */
input.input-upper {
    text-transform: uppercase;
}

input.input-upper::placeholder {
    text-transform: none;
}

/* Responsividade extra */
@media (max-width: 640px) {
    .captcha-box {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
        letter-spacing: 0.3em;
    }

    #previewContainer {
        width: 100px;
        height: 100px;
    }
}

/* Print - esconder elementos desnecessários */
@media print {
    .hero-criancas,
    .section-versiculo-criancas,
    #btnSubmit,
    .captcha-box,
    .alert-whatsapp,
    .alert-warning {
        display: none !important;
    }
}
