/* ==============================================
   TOUR RESERVATION STYLES - VERSIÃ“N CORREGIDA
   ============================================== */

/* SOLUCIÃ“N PARA EL NAVBAR - Agregar padding suficiente al body */
body {
    padding-top: 120px; /* Altura del navbar + margen adicional */
}

/* Para mÃ³viles, reducir el padding */
@media (max-width: 768px) {
    body {
        padding-top: 80px; /* Altura reducida para mÃ³viles */
    }
}

/* Eliminar el margin-top del formulario ya que el body tiene padding */
.tour-form {
    margin-top: 0 !important; /* Eliminamos el margin-top anterior */
}

.tour-info-sidebar {
    position: sticky;
    top: 20px;
    z-index: 999;
}

.price-summary {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.price-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid rgba(255,255,255,0.3);
}

.form-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #ff5722;
}

.section-icon {
    background: #ff5722;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

/* ==============================================
   TIME SELECTOR - 8 HORARIOS
   ============================================== */
.time-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.time-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

.time-option:hover {
    border-color: #ff5722;
    background: #fff8f6;
}

.time-option.selected {
    border-color: #ff5722;
    background: #ff5722;
    color: white;
}

.time-option input {
    display: none;
}

.time-option strong {
    display: block;
    margin-bottom: 3px;
}

.time-option .text-muted {
    font-size: 0.8rem;
}

.time-option.selected .text-muted {
    color: rgba(255,255,255,0.8) !important;
}

/* ==============================================
   PARTICIPANTS COUNTER
   ============================================== */
.participants-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: #ff5722;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.counter-btn:hover {
    background: #e64a19;
    transform: scale(1.1);
}

.counter-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.counter-value {
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 40px;
    text-align: center;
}

/* ==============================================
   SUBMIT BUTTON
   ============================================== */
.submit-btn {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
    color: white;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==============================================
   ALERTS
   ============================================== */
.alert-booking-limit {
    background: linear-gradient(135deg, #ffc107, #ffeb3b);
    color: #856404;
    border: none;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

/* ==============================================
   TOUR FEATURES
   ============================================== */
.tour-feature {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: #666;
}

.tour-feature i {
    color: #ff5722;
    min-width: 20px;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 768px) {
    .time-selector {
        grid-template-columns: 1fr;
    }
    
    .tour-info-sidebar {
        position: static;
        margin-top: 30px;
    }
    
    .time-option {
        padding: 15px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .form-section {
        padding: 20px 15px;
    }
    
    .participants-counter {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .counter-controls {
        width: 100%;
        justify-content: center;
    }
}

/* ==============================================
   FORM IMPROVEMENTS
   ============================================== */
.form-label.fw-bold {
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-control:focus {
    border-color: #ff5722;
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.25);
}

.form-check-input:checked {
    background-color: #ff5722;
    border-color: #ff5722;
}

.btn-outline-secondary:hover {
    background-color: #ff5722;
    border-color: #ff5722;
}

/* ==============================================
   ICONS SPACING (mr-2 class)
   ============================================== */
.mr-2 {
    margin-right: 0.5rem !important;
}

/* ==============================================
   ESTILOS PARA ERRORES REALES DE SYMFONY
   ============================================== */

/* Correcci¨®n del navbar */
body {
    padding-top: 120px !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 80px !important;
    }
}

.tour-form {
    margin-top: 0 !important;
}

/* Estilos para las listas de errores tal como las genera Symfony */
form ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 5px 0 0 0 !important;
}

form ul li {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    margin-bottom: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    animation: errorFadeIn 0.3s ease-in !important;
    position: relative !important;
}

form ul li:before {
    content: "\f071" !important; /* FontAwesome exclamation-triangle */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    margin-right: 8px !important;
    color: #dc3545 !important;
}

/* Animaci¨®n para los errores */
@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo para campos con error - aplicado autom¨¢ticamente por JS */
.form-control.has-error,
.form-check-input.has-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Estilo espec¨ªfico para checkboxes con error */
.form-check.has-checkbox-error {
    background: #fff5f5 !important;
    border: 1px solid #f5c6cb !important;
    border-radius: 8px !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
}

.form-check.has-checkbox-error .form-check-label {
    color: #721c24 !important;
    font-weight: 500 !important;
}

/* Efecto hover para mejor UX */
form ul li:hover {
    background: #f1aeb5 !important;
    cursor: default !important;
}

/* Responsive */
@media (max-width: 576px) {
    form ul li {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
}

/* Destacar campos espec¨ªficos con errores */
input:invalid,
input.error-field {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Mejorar visibilidad de errores en terminso y condiciones */
.form-section:has(ul li) {
    border-left: 4px solid #dc3545 !important;
    background: #fff8f8 !important;
}