/**
 * Footer Navigation Styles - Roseo Form
 * Estilos profesionales para botones de navegación
 * Diseño coherente con header y cuerpo del formulario
 * 
 * @package Roseo_Form
 * @version 2.0.0
 */

/* ============================================
   CONTENEDOR FOOTER - DISEÑO PROFESIONAL
   ============================================ */
body #roseo-form-wrapper .roseo-footer-navigation,
body #roseo-form-wrapper div.roseo-footer-navigation,
body div#roseo-form-wrapper .roseo-footer-navigation,
#roseo-form-wrapper .roseo-footer-navigation,
.roseo-footer-navigation#roseo-footer-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 16px 48px !important;
    margin: 0 !important;
    background: #fff !important;
    border-top: 1px solid #e5e7eb !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    flex-direction: row !important;
    box-shadow: none !important;
    position: relative !important;
}

/* Sin línea decorativa para footer fixed */

/* DESACTIVADO - Causaba que el footer no apareciera
form#roseo-unified-form.roseo-form-hidden .roseo-footer-navigation,
form#roseo-unified-form.roseo-form-hidden #roseo-footer-container {
    display: none !important;
    visibility: hidden !important;
}
*/

/* ============================================
   BOTONES - DISEÑO PROFESIONAL ELEVADO
   ============================================ */
body #roseo-form-wrapper .roseo-btn,
body #roseo-form-wrapper .roseo-footer-navigation .roseo-btn,
body #roseo-form-wrapper button.roseo-btn,
.roseo-footer-navigation .roseo-btn,
.roseo-footer-navigation button.roseo-btn,
#roseo-footer-nav .roseo-btn,
#roseo-footer-nav button.roseo-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 32px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    transition: var(--mfm-transition) !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
    color: white !important;
    background: var(--mfm-gradient-primary) !important;
    box-shadow: var(--mfm-shadow) !important;
    min-width: 160px !important;
}

body #roseo-form-wrapper .roseo-btn i,
.roseo-footer-navigation .roseo-btn i {
    font-size: 14px !important;
    transition: transform 0.3s ease !important;
    color: white !important;
}

/* Estado disabled - más sutil y elegante */
body #roseo-form-wrapper .roseo-btn:disabled,
body #roseo-form-wrapper button.roseo-btn:disabled,
.roseo-footer-navigation .roseo-btn:disabled,
.roseo-footer-navigation button.roseo-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    filter: grayscale(80%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   BOTÓN SIGUIENTE - PRINCIPAL CON EFECTO
   ============================================ */
body #roseo-form-wrapper .roseo-btn-next,
body #roseo-form-wrapper button.roseo-btn-next,
.roseo-footer-navigation .roseo-btn-next,
.roseo-footer-navigation button.roseo-btn-next,
#roseo-footer-nav .roseo-btn-next,
button#btn-next-step {
    background: var(--mfm-gradient-primary) !important;
    color: white !important;
    box-shadow: var(--mfm-shadow-lg) !important;
    display: inline-flex !important;
}

body #roseo-form-wrapper .roseo-btn-next:not(:disabled):hover,
.roseo-footer-navigation .roseo-btn-next:not(:disabled):hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 28px rgba(0, 146, 57, 0.45) !important;
}

body #roseo-form-wrapper .roseo-btn-next:not(:disabled):hover i,
.roseo-footer-navigation .roseo-btn-next:not(:disabled):hover i {
    transform: translateX(6px) !important;
}

body #roseo-form-wrapper .roseo-btn-next:not(:disabled):active,
.roseo-footer-navigation .roseo-btn-next:not(:disabled):active {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(0, 146, 57, 0.35) !important;
}

/* ============================================
   BOTÓN ANTERIOR - SECUNDARIO ELEGANTE
   ============================================ */
body #roseo-form-wrapper .roseo-btn-back,
body #roseo-form-wrapper button.roseo-btn-back,
.roseo-footer-navigation .roseo-btn-back,
.roseo-footer-navigation button.roseo-btn-back,
#roseo-footer-nav .roseo-btn-back,
button#btn-prev-step {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    color: var(--mfm-primary) !important;
    border: 2px solid var(--mfm-accent) !important;
    box-shadow: 0 4px 12px rgba(179, 200, 187, 0.25) !important;
    display: inline-flex !important;
}

body #roseo-form-wrapper .roseo-btn-back i,
.roseo-footer-navigation .roseo-btn-back i {
    color: var(--mfm-primary) !important;
}

body #roseo-form-wrapper .roseo-btn-back:not(:disabled):hover,
.roseo-footer-navigation .roseo-btn-back:not(:disabled):hover {
    background: linear-gradient(135deg, var(--mfm-accent) 0%, var(--mfm-secondary) 100%) !important;
    color: white !important;
    border-color: var(--mfm-secondary) !important;
    transform: translateX(-3px) !important;
    box-shadow: var(--mfm-shadow) !important;
}

body #roseo-form-wrapper .roseo-btn-back:not(:disabled):hover i,
.roseo-footer-navigation .roseo-btn-back:not(:disabled):hover i {
    color: white !important;
    transform: translateX(-6px) !important;
}
body #roseo-form-wrapper .roseo-btn-back.hidden,
body #roseo-form-wrapper button.roseo-btn-back.hidden,
.roseo-footer-navigation .roseo-btn-back.hidden,
.roseo-footer-navigation button.roseo-btn-back.hidden,
button#btn-prev-step.hidden {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Estado visible del botón anterior */
body #roseo-form-wrapper .roseo-btn-back.visible,
body #roseo-form-wrapper button.roseo-btn-back.visible,
.roseo-footer-navigation .roseo-btn-back.visible,
.roseo-footer-navigation button.roseo-btn-back.visible,
button#btn-prev-step.visible {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body #roseo-form-wrapper .roseo-btn-back:hover,
.roseo-footer-navigation .roseo-btn-back:hover {
    background: var(--mfm-gradient-primary) !important;
    transform: translateX(-2px) !important;
    box-shadow: var(--mfm-shadow-hover) !important;
}

body #roseo-form-wrapper .roseo-btn-back:hover i,
.roseo-footer-navigation .roseo-btn-back:hover i {
    transform: translateX(-4px) !important;
}

/* NOTA: Estilos del botón siguiente movidos a la sección anterior (líneas 69-91) para evitar duplicación */

/* ============================================
   RESPONSIVE - DISEÑO PROFESIONAL
   ============================================ */
@media (max-width: 1024px) {
    body #roseo-form-wrapper .roseo-footer-navigation {
        padding: 24px 40px !important;
    }
}

@media (max-width: 768px) {
    body #roseo-form-wrapper .roseo-footer-navigation {
        padding: 20px 30px !important;
    }
    
    body #roseo-form-wrapper .roseo-btn {
        padding: 12px 24px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    body #roseo-form-wrapper .roseo-footer-navigation {
        padding: 16px 20px !important;
    }
    
    body #roseo-form-wrapper .roseo-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    body #roseo-form-wrapper .roseo-btn span {
        display: none !important;
    }
    
    body #roseo-form-wrapper .roseo-btn i {
        font-size: 16px !important;
        margin: 0 !important;
    }
    
    body #roseo-form-wrapper .roseo-btn-next {
        padding: 12px 24px !important;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */
body #roseo-form-wrapper .roseo-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
}

body #roseo-form-wrapper .roseo-btn:active::before {
    width: 300px !important;
    height: 300px !important;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.roseo-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid var(--mfm-secondary);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.roseo-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.roseo-toast i {
    font-size: 20px;
    color: var(--mfm-secondary);
}

.roseo-toast.roseo-toast-warning {
    border-left-color: #f59e0b;
}

.roseo-toast.roseo-toast-warning i {
    color: #f59e0b;
}

.roseo-toast span {
    color: var(--mfm-primary);
    font-size: 14px;
    line-height: 1.4;
}

/* ============================================
   VALIDATION MODAL - Más visible y robusto
   ============================================ */
.roseo-validation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.roseo-validation-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.roseo-validation-modal {
    background: white;
    border-radius: 16px;
    padding: 32px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.roseo-validation-modal-overlay.show .roseo-validation-modal {
    transform: scale(1) translateY(0);
}

.roseo-validation-modal-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.roseo-validation-modal-icon i {
    display: inline-block;
    animation: modalIconPulse 0.6s ease-out;
}

@keyframes modalIconPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.roseo-validation-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--mfm-secondary, #015328);
    margin: 0 0 12px 0;
}

.roseo-validation-modal-message {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.roseo-validation-modal-btn {
    display: inline-block;
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.roseo-validation-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.roseo-validation-modal-btn:active {
    transform: translateY(0);
}

/* Responsive modal */
@media (max-width: 480px) {
    .roseo-validation-modal {
        padding: 24px 20px;
        margin: 0 16px;
    }
    
    .roseo-validation-modal-icon {
        font-size: 48px;
    }
    
    .roseo-validation-modal-title {
        font-size: 18px;
    }
    
    .roseo-validation-modal-message {
        font-size: 14px;
    }
    
    .roseo-validation-modal-btn {
        width: 100%;
        padding: 14px 20px;
    }
}
