/* ===== СЕКЦИЯ БРОНИРОВАНИЯ ===== */
.booking-section {
    padding: var(--section-padding);
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.3), var(--deep-space));
    position: relative;
    z-index: 2;
    scroll-margin-top: 100px;
}

/* Прогресс-бар */
.booking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.booking-progress::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.progress-line {
    position: absolute;
    top: 25px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-magenta));
    z-index: -1;
    transition: width 0.5s ease;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
}

.step-circle.active {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-magenta));
    border-color: transparent;
    box-shadow: var(--glow-blue);
}

.step-circle.completed {
    background: var(--neon-green);
    border-color: var(--neon-green);
    color: var(--deep-space);
}

.step-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s;
}

.step-label.active {
    color: var(--neon-blue);
    font-weight: 600;
}

.step-label.completed {
    color: var(--neon-green);
}

/* Контейнер формы */
.booking-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(15, 15, 25, 0.7);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 243, 255, 0.1);
    box-shadow: var(--shadow-lg);
    backdrop-filter: var(--glass-blur);
}

.booking-form-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--neon-blue);
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* Выбранный тур */
.selected-tour-display {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(255, 0, 230, 0.1));
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: none;
    animation: fadeIn 0.5s ease;
}

.selected-tour-display.show {
    display: block;
}

.selected-tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.selected-tour-header h4 {
    color: var(--neon-blue);
    font-size: 1.3rem;
    margin: 0;
}

.selected-tour-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

.detail-item i {
    color: var(--neon-blue);
    width: 20px;
    font-size: 1rem;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Форма */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--amber);
    border-bottom: 2px solid rgba(255, 179, 0, 0.2);
    padding-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.glass-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.glass-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.1);
}

.glass-input.error {
    border-color: var(--neon-magenta);
}

textarea.glass-input {
    resize: vertical;
    min-height: 100px;
}

/* Кнопка выбора тура - исправлено центрирование */
.select-tour-btn {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем по горизонтали */
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    text-align: center;
}

.select-tour-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
}

#selectTourText {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

/* Даты */
.booking-dates-container {
    margin-bottom: 1.5rem;
    display: none;
}

.booking-dates-container.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.booking-dates-container label {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.booking-date-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.booking-date-time-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.booking-date-time-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(0, 243, 255, 0.3);
}

.booking-date-time-card.selected {
    background: rgba(255, 179, 0, 0.1);
    border-color: var(--amber);
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.2);
}

.booking-date-time-card .date-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.booking-date-time-card .date-month {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.booking-date-time-card .date-time {
    color: var(--neon-blue);
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.booking-date-time-card .date-slots {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* Участники */
#participantsContainer {
    margin-bottom: 1.5rem;
}

.participants-selector {
    margin: 1rem 0;
}

.participant-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    width: fit-content;
}

.participant-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: var(--radius-sm);
    color: var(--neon-blue);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.participant-btn:hover:not(:disabled) {
    background: var(--neon-blue);
    color: white;
}

.participant-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.participant-value {
    width: 60px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
}

.available-slots {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.available-slots span {
    color: var(--neon-green);
    font-weight: 600;
}

.slots-warning {
    color: var(--amber);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: none;
}

.slots-warning.show {
    display: block;
}

.participants-error {
    color: var(--neon-magenta);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: none;
}

.participants-error.show {
    display: block;
}

/* Чекбоксы */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.checkbox-group.error {
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid rgba(255, 0, 255, 0.3);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    accent-color: var(--neon-blue);
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--neon-blue);
    text-decoration: underline;
}

.checkbox-group a:hover {
    color: var(--neon-magenta);
}

/* Навигация формы */
.form-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-prev {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

.btn-next {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-magenta));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Сводка заказа */
.order-summary {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.order-summary h4 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-item:last-child {
    border-bottom: none;
}

.order-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(0, 243, 255, 0.2);
    font-size: 1.2rem;
    font-weight: 700;
}

.order-price {
    color: var(--neon-green);
    font-size: 1.4rem;
}

/* Успешное бронирование */
.booking-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.success-title {
    font-size: 2rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.success-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.booking-details {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
    border: 1px solid rgba(0, 243, 255, 0.1);
}

.booking-details h4 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.booking-details p {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.booking-details strong {
    color: var(--text-primary);
    min-width: 150px;
}

.success-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.reset-booking-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.reset-booking-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.reset-booking-btn.finish-btn {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-magenta));
    color: white;
    border: none;
}

.reset-booking-btn.finish-btn:hover {
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}

/* Модальное окно выбора тура */
.booking-tour-modal .modal {
    max-width: 900px;
}

.booking-tour-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.booking-tour-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.booking-tour-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--neon-blue);
}

.booking-tour-card h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.booking-tour-price {
    color: var(--neon-green);
    font-size: 1.4rem;
    font-weight: 700;
}

.booking-tour-duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.booking-tour-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.booking-select-tour-btn {
    width: 100%;
    padding: 0.6rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: var(--radius-sm);
    color: var(--neon-blue);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

.booking-select-tour-btn:hover {
    background: var(--neon-blue);
    color: white;
}

.booking-select-tour-btn.selected {
    background: var(--neon-green);
    border-color: var(--neon-green);
    color: var(--deep-space);
}

/* СТРАНИЦА БРОНИРОВАНИЯ */
.booking-page {
    padding: 40px 0;
}

.booking-page .page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--neon-blue);
    position: relative;
    padding-bottom: 1rem;
}

.booking-page .page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-magenta));
}

.page-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.booking-page .booking-section {
    padding-top: 0;
}

.booking-page .section-header {
    display: none;
}

/* Исправление: стили для кнопки внизу секции бронирования - теперь как в других секциях */
.booking-section .section-footer {
    text-align: center;
    margin-top: 3rem;
}

.booking-section .section-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-magenta));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.booking-section .section-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}

.booking-section .section-footer .btn i {
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .booking-section {
        padding: var(--section-padding-mobile);
    }
    
    .booking-progress {
        margin-bottom: 2rem;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .booking-form-container {
        padding: 1.5rem;
    }
    
    .booking-form-title {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .booking-form-container {
        padding: 1.2rem;
    }
    
    .booking-form-title {
        font-size: 1.5rem;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn-prev,
    .btn-next {
        width: 100%;
        justify-content: center;
    }
    
    .btn-next {
        margin-left: 0;
    }
    
    .booking-date-time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .selected-tour-details {
        grid-template-columns: 1fr;
    }
    
    .booking-details p {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .booking-details strong {
        min-width: auto;
    }
    
    .success-buttons {
        flex-direction: column;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .booking-tour-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .booking-page {
        padding: 20px 0;
    }
    
    .booking-page .page-title {
        font-size: 2rem;
    }
    
    .booking-progress {
        gap: 0.5rem;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .booking-date-time-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-form-title {
        font-size: 1.3rem;
    }
    
    .participant-control {
        width: 100%;
        justify-content: center;
    }
}