/* ============================================================
   CSS – Cadastro de Novos Convertidos
   AD Valença - novos-convertidos.css
   ============================================================ */

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

#previewContainer:hover {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 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: #0EA5E9;
    background-color: #F0F9FF;
}

.radio-option:has(input:checked) {
    border-color: #0EA5E9;
    background-color: #E0F2FE;
}

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

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

/* Campos de retorno - animação de entrada */
#camposRetorno {
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

#camposRetorno.show {
    animation: fadeSlideDown 0.4s ease-out;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 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-convertidos {
    background: linear-gradient(135deg, #16A34A 0%, #059669 100%);
    position: relative;
}

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

/* Versículo de rodapé */
.section-versiculo {
    background: linear-gradient(135deg, #16A34A 0%, #059669 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-convertidos,
    .section-versiculo,
    #btnSubmit,
    .captcha-box,
    .alert-whatsapp,
    .alert-warning {
        display: none !important;
    }
}
