/* ============================================
   ESTILOS DEL WIDGET EN SIDEBAR
   ============================================ */
.tour-form-widget-container {
    text-align: center;
    padding: 20px;
    background: #017AAA;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #017AAA;
}

.tour-form-button-sidebar {
    width: 100%;
    display: block;
    background-color: #017AAA !important;
    color: #FFFFFF !important;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-form-button-sidebar:hover {
    transform: translateY(-2px);
    background-color: #015a7f !important;
}

/* ============================================
   BOTÓN STICKY FLOTANTE
   ============================================ */
.tour-form-sticky-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    background: #017AAA;
    color: #FFFFFF;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    animation: pulse-sticky 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.tour-form-sticky-button:hover {
    transform: translateY(-4px);
    background: #015a7f;
}

/* ============================================
   ESTILOS DEL MODAL
   ============================================ */
.tour-form-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(11, 12, 14, 0.9);
}

.tour-form-modal-content {
    background-color: #FFFFFF;
    margin: 3% auto;
    padding: 0;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.tour-form-modal-close {
    color: #FFFFFF;
    float: right;
    font-size: 32px;
    font-weight: bold;
    padding: 10px 20px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.tour-form-modal-close:hover,
.tour-form-modal-close:focus {
    color: #017AAA;
}

.tour-form-modal-title {
    padding: 25px 30px 15px;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    border-bottom: 3px solid #017AAA;
    background: #202128
}

.tour-form-modal-body {
    padding: 30px;
    background-color: #FFFFFF;
    color: #0B0C0E;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 768px) {
    .tour-form-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }
    
    .tour-form-modal-title {
        font-size: 22px;
        padding: 20px 20px 12px;
    }
    
    .tour-form-modal-body {
        padding: 20px;
    }
    
    .tour-form-sticky-button {
        bottom: 15px;
        right: 15px;
        left: 15px;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
        text-align: center;
    }
    
    .tour-form-sticky-button svg {
        display: none;
    }
    
    .tour-form-button-sidebar {
        font-size: 15px;
        padding: 13px 20px;
    }
}

@media screen and (max-width: 480px) {
    .tour-form-sticky-button {
        font-size: 14px;
        padding: 12px 18px;
    }
    
    .tour-form-modal-title {
        font-size: 20px;
    }
}

/* ============================================
   MEJORAS PARA GRAVITY FORMS
   ============================================ */
.tour-form-modal-body .gform_wrapper {
    margin: 0 !important;
}

.tour-form-modal-body .gform_body {
    padding: 0 !important;
}

.tour-form-modal-body .gfield {
    margin-bottom: 20px !important;
}

/* Botones de Gravity Forms con colores corporativos */
.tour-form-modal-body .gform_button,
.tour-form-modal-body .gform_next_button,
.tour-form-modal-body .gform_previous_button,
.tour-form-modal-body input[type="submit"] {
    background-color: #017AAA !important;
    border-color: #017AAA !important;
    color: #FFFFFF !important;
    transition: all 0.3s ease !important;
}

.tour-form-modal-body .gform_button:hover,
.tour-form-modal-body .gform_next_button:hover,
.tour-form-modal-body .gform_previous_button:hover,
.tour-form-modal-body input[type="submit"]:hover {
    background-color: #015a7f !important;
    border-color: #015a7f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(1, 122, 170, 0.3);
}

/* Inputs y selects con estilo corporativo */
.tour-form-modal-body input[type="text"],
.tour-form-modal-body input[type="email"],
.tour-form-modal-body input[type="tel"],
.tour-form-modal-body input[type="number"],
.tour-form-modal-body input[type="date"],
.tour-form-modal-body textarea,
.tour-form-modal-body select {
    border: 0.5px solid #202128 !important;
    border-radius: 6px !important;
    transition: border-color 0.3s ease !important;
}

.tour-form-modal-body input[type="text"]:focus,
.tour-form-modal-body input[type="email"]:focus,
.tour-form-modal-body input[type="tel"]:focus,
.tour-form-modal-body input[type="number"]:focus,
.tour-form-modal-body input[type="date"]:focus,
.tour-form-modal-body textarea:focus,
.tour-form-modal-body select:focus {
    border-color: #017AAA !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(1, 122, 170, 0.1) !important;
}

/* Labels con color corporativo */
.tour-form-modal-body .gfield_label {
    color: #0B0C0E !important;
    font-weight: 600 !important;
}

/* Scrollbar personalizado para el modal */
.tour-form-modal-content::-webkit-scrollbar {
    width: 8px;
}

.tour-form-modal-content::-webkit-scrollbar-track {
    background: #202128;
    border-radius: 10px;
}

.tour-form-modal-content::-webkit-scrollbar-thumb {
    background: #017AAA;
    border-radius: 10px;
}

.tour-form-modal-content::-webkit-scrollbar-thumb:hover {
    background: #015a7f;
}

/* ============================================
   DETALLES ADICIONALES
   ============================================ */

/* Indicador de progreso de Gravity Forms */
.tour-form-modal-body .gf_progressbar {
    background-color: #202128 !important;
}

.tour-form-modal-body .gf_progressbar_percentage {
    background-color: #017AAA !important;
}

/* Validación de errores */
.tour-form-modal-body .gfield_error {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-left: 3px solid #dc3545 !important;
}

.tour-form-modal-body .validation_message {
    color: #dc3545 !important;
    font-weight: 600 !important;
}

/* Mensaje de confirmación */
.tour-form-modal-body .gform_confirmation_message {
    background-color: rgba(1, 122, 170, 0.1) !important;
    border-left: 4px solid #017AAA !important;
    color: #0B0C0E !important;
    padding: 20px !important;
    border-radius: 8px !important;
}