/* Стили для правого столбца с ценой на странице экскурсии */

/* Основной контейнер для двухколоночной структуры */
.main-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Левый столбец с основным контентом */
.ex-main {
    flex: 1;
    max-width: calc(100% - 360px);
}

/* Правый столбец с ценой */
.excursion-sidebar {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* Блок с ценой */
.excursion-price-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Контейнер для цены */
.price-container {
    text-align: center;
}

/* Отображение цены в одну строчку */
.price-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* Обычная цена */
.regular-price {
    font-size: 24px;
    font-weight: 700;
    color: #00a7ff;
}

/* Оригинальная цена (зачеркнутая) */
.original-price {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    text-decoration: line-through;
    text-decoration-color: #e74c3c;
    text-decoration-thickness: 2px;
}

/* Специальная цена */
.special-price {
    font-size: 24px;
    font-weight: 700;
    color: #00a7ff;
}

/* Текст "от" и "за человека" */
.price-text {
    font-size: 16px;
    color: #333;
    font-weight: 400;
}

/* Случай когда цена не указана */
.no-price {
    font-size: 16px;
    color: #999;
    font-style: italic;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .ex-main {
        max-width: 100%;
    }
    
    .excursion-sidebar {
        width: 100%;
        position: static;
        order: -1; /* Перемещаем цену в начало на мобильных */
    }
    
    .excursion-price-block {
        margin-bottom: 0;
    }
}

/* Дополнительные стили для лучшего отображения */
.excursion-price-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

/* Стили для акцентирования специальной цены */
.price-display:has(.special-price) {
    background: transparent;
    padding: 10;
    border: none;
}

/* Блок бронирования */
.booking-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.booking-block h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Селектор даты и времени */
.date-selector, .time-selector {
    margin-bottom: 10px;
}

.people-selector {
    margin-bottom: 10px;
}

.date-button {
    width: 100%;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    font-size: 14px !important;
}

.date-button:hover {
    border-color: #00a7ff;
    background: #f8f9ff;
}

.date-button:focus {
    outline: none;
    border-color: #00a7ff;
    box-shadow: 0 0 0 3px rgba(0, 167, 255, 0.1);
}

.date-text {
    font-weight: 400;
    font-size: 14px;
}

.date-arrow {
    color: #666;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.date-button.active .date-arrow {
    transform: rotate(180deg);
}

/* Модальное окно календаря */
.calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.calendar-popup {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    width: 960px;
    max-height: 90vh;
    overflow: hidden;
    z-index: 1001;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.calendar-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-calendar {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-calendar:hover {
    background: #e0e0e0;
}

.calendar-content {
    padding: 20px;
}

/* Шаги модального окна */
.modal-step {
    min-height: 400px;
}

/* Кнопки модального окна */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary {
    background: #00a7ff;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: #0088cc;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover:not(:disabled) {
    background: #e9ecef;
}

.btn-full-width {
    width: 100%;
    margin: 0;
}

/* (удалено) Верхние вкладки-индикаторы */

/* ====== Шаг 4: Ваши данные (стили как на странице бронирования) ====== */
#contacts-step .form-row-header {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

#contacts-step .booking-form-row_block label {
    font-size: 15px;
    color: #555;
    display: inline-block;
    margin-right: 3px; /* уменьшили отступ примерно в 3 раза */
}

#contacts-step .booking-form-row_block input[type="text"],
#contacts-step .booking-form-row_block input[type="email"] {
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contacts-step .booking-form-row_block input[type="text"]::placeholder,
#contacts-step .booking-form-row_block input[type="email"]::placeholder {
    color: #9aa3ab;
}

#contacts-step .booking-form-row_block input[type="text"]:focus,
#contacts-step .booking-form-row_block input[type="email"]:focus {
    outline: none;
    border-color: #00a7ff;
    box-shadow: 0 0 0 3px rgba(0, 167, 255, 0.1);
}

/* Убрали текстовое сообщение об ошибке телефона */

#contacts-step .required-star {
    color: #e53935;
    font-weight: 700;
    margin: 0 5px;
}

#contacts-step .required-note {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    #contacts-step .booking-form-row_block {
        grid-template-columns: 1fr;
    }

    #contacts-step .booking-form-row_block label {
        margin: 0 0 6px 0;
    }
}

/* Коррекции раскладки контактов */
#contacts-step .booking-form-row_block {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

#contacts-step .booking-form-row_block > div {
    width: auto;
}

#contacts-step .booking-form-row.user-contacts {
    padding: 0;
}

/* Стили для выбранной даты */
.selected-date-summary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Стили для выбранного времени */
.selected-time-summary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.selected-date-info, .selected-time-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 6px;
}

.selected-date-info:hover, .selected-time-info:hover {
    background: #e9ecef;
}

.selected-date-label, .selected-time-label {
    font-weight: 600;
    color: #333;
}

.selected-date-value, .selected-time-value {
    font-weight: 700;
    color: #00a7ff;
    font-size: 16px;
}

.toggle-arrow {
    margin-left: auto;
    font-size: 14px;
    color: #666;
    transition: transform 0.2s ease;
}

.btn-secondary:disabled {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
}

/* Опции времени */
.time-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.time-option {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.time-option:hover {
    border-color: #00a7ff;
    background: #f8f9ff;
}

.time-option.selected {
    border-color: #00a7ff;
    background: #e6f3ff;
}

.time-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.no-times {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
}

/* ====== Типы билетов (2 колонки, красивые карточки) ====== */
.ticket-types-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ticket-type-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 14px 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.ticket-type-row:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.ticket-type-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ticket-type-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.ticket-type-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ticket-type-price .currency {
    font-size: 12px;
    color: #777;
}

.ticket-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9fbfd;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f0f7ff;
    border-color: #00a7ff;
    color: #00a7ff;
}

.ticket-quantity {
    width: 56px;
    height: 34px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    padding: 0 6px;
}

/* Селект предоплаты как .date-button */
#prepayment-select.date-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    padding-right: 36px; /* место под стрелку как у кнопок */
}

/* псевдо-стрелка как у .date-arrow */
#prepayment-select-wrapper{
    position: relative;
}
#prepayment-select-wrapper::after {
    content: "▼";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666666;
    pointer-events: none;
}

/* скрыть системную стрелку */
#prepayment-select::-ms-expand { display: none; }

/* Адаптив для мобильных: 1 колонка */
@media (max-width: 768px) {
    .ticket-types-container {
        grid-template-columns: 1fr;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .calendar-popup {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .calendar-header {
        padding: 15px;
    }
    
    .calendar-content {
        padding: 15px;
    }
    
    .date-button {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Смещение блока шаринга на мобильных */
    .ya-share2_inited {
        position: relative;
        bottom: -20px;
    }
    
    .promo-input-group {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Кнопки бронирования и связи */
.booking-actions {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-book, .btn-contact {
    width: 100%;
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-book {
    background-color: #00a7ff;
    color: white;
}

.btn-book:hover {
    background-color: #0088cc;
}

.btn-book:disabled, .btn-book[disabled] {
    background-color: #b5e5ff;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-contact {
    background-color: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-contact:hover {
    background-color: #e9ecef;
    border-color: #00a7ff;
}

/* Промокод */
.promo-code-section {
    margin: 20px 0 0;
    padding: 0px;
    background-color: transparent;
    border-radius: 8px;
}

.promo-input-group {
    display: flex;
    flex-direction: column; /* Кнопка под полем */
    gap: 10px;
}

.promo-input {
    flex: 1;
    padding: 8px 20px; /* как у кнопок */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px; /* как у кнопок */
}

.btn-outline {
    background-color: transparent;
    color: #00a7ff;
    border: 2px solid #00a7ff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #00a7ff;
    color: white;
}

/* Сумма заказа */
.order-summary {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.order-total {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.total-amount {
    font-weight: 600;
    font-size: 16px;
}

.original-total .original-amount {
    color: #999;
    text-decoration: line-through;
    text-decoration-color: #e74c3c;
    text-decoration-thickness: 2px;
}

.final-total .final-amount {
    color: #00a7ff;
    font-size: 18px;
}

/* Информация об экскурсии */
.excursion-info {
    background-color: transparent;
    border-radius: 8px;
    width: 1220px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    max-width: 100%;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.info-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
    width: 100%;
}

.info-value {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-align: right;
}

/* Модальное окно для связи */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.contact-popup {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 2001;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.contact-header h4 {
    margin: 0;
    color: #333;
}

.close-contact {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-contact:hover {
    color: #333;
}

.contact-content {
    padding: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00a7ff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions .btn-primary {
    background-color: #00a7ff;
    color: white;
}

.form-actions .btn-primary:hover {
    background-color: #0088cc;
}

.form-actions .btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.form-actions .btn-secondary:hover {
    background-color: #e9ecef;
}
