/* ==========================================================================
   ESTILOS GENERALES Y FORMULARIOS SEGUROS V3
   ========================================================================== */

/* 1. Corrección y limpieza de asp:CheckBox en WebForms / Bootstrap */
.asp-checkbox,
.asp-checkbox span,
span.chk-pregunta {
    display: inline-flex !important;
    align-items: center !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    vertical-align: middle !important;
}

/* 2. Checkbox nativo estilizado con accent-color moderno y sin artefactos */
.asp-checkbox input[type="checkbox"],
.chk-pregunta input[type="checkbox"],
.form-check-custom input[type="checkbox"] {
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    min-height: 1.25rem !important;
    accent-color: #0d6efd !important;
    cursor: pointer !important;
    margin: 0 0.5rem 0 0 !important;
    padding: 0 !important;
    border: 1.5px solid #6c757d !important;
    border-radius: 4px !important;
    vertical-align: middle !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    box-shadow: none !important;
}

/* Evitar que clases de Bootstrap afecten al span contenedor generado por ASP */
span.form-check-input {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

/* 3. Botones de opciones (tipo seguro con/sin anulación) */
.btn-check:checked + .btn-outline-secondary {
    background-color: #0d6efd !important;
    color: white !important;
    border-color: #0d6efd !important;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.25) !important;
}

/* 4. Foco en controles de formulario */
.form-control:focus, 
.form-select:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15) !important;
}

/* 5. Cabeceras de sección con línea sutil */
.section-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Iconos circulares en cabeceras */
.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   6. ESTILOS PASO FINAL Y PANTALLA DE ÉXITO (PasoFinalContratacion)
   ========================================================================== */

/* Tarjeta de checkout / pago */
.checkout-card {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-top: 4px solid #0d6efd !important;
    transition: box-shadow 0.2s ease-in-out;
}

.checkout-card:hover {
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.08) !important;
}

.terms-box {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    transition: border-color 0.2s;
}

.terms-box:hover {
    border-color: #cbd5e1 !important;
}

/* Botón de pago principal */
.btn-pay-now {
    letter-spacing: 0.5px;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
    border: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-pay-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(25, 135, 84, 0.35) !important;
}

/* Tarjeta de Éxito / Confirmación */
.success-card {
    border: 1px solid #d1e7dd !important;
    border-top: 5px solid #198754 !important;
    background: #ffffff;
    box-shadow: 0 1rem 3rem rgba(25, 135, 84, 0.08) !important;
}

.success-icon-badge {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #d1e7dd 0%, #a3cfbb 100%);
    color: #0f5132;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    box-shadow: 0 0.5rem 1.25rem rgba(25, 135, 84, 0.2);
    animation: successBadgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successBadgePop {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-image {
    max-height: 220px;
    object-fit: cover;
    border: 1px solid #e9ecef;
}

.max-w-600 {
    max-width: 600px;
}

/* 7. Campos bloqueados y badges de modalidad */
.input-locked {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    cursor: not-allowed !important;
    border-color: #cbd5e1 !important;
}

.multiviaje-header-badge {
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
    border: 1px solid rgba(13, 148, 136, 0.25);
}

/* 8. Barra flotante resumen cotización móvil */
@media (max-width: 767.98px) {
    .mobile-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        background: #ffffff;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
        padding: 12px 16px;
        animation: slideUp 0.3s ease-out;
        border-top: 1px solid #e2e8f0;
    }
    .desktop-price-area {
        display: none !important;
    }
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    body { padding-bottom: 90px !important; }
}
