/**
 * Стили формы бронирования взрослой экскурсии
 */

.excursion-booking {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.excursion-booking__form {
    display: block;
    width: 100%;
}

.excursion-booking__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.excursion-booking__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.excursion-booking__base-price {
    text-align: right;
}

.excursion-booking__base-price-value {
    font-size: 24px;
    font-weight: 700;
    color: #1976d2;
}

.excursion-booking__base-price-label {
    font-size: 14px;
    color: #666;
}

.excursion-booking__base-price-child {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

/* Прогресс */
.excursion-booking__progress {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.excursion-booking__progress-text {
    font-size: 14px;
    color: #666;
}

.excursion-booking__progress-text span {
    font-weight: 600;
    color: #1976d2;
}

/* Шаги */
.excursion-booking__step {
    display: none;
}

.excursion-booking__step.active {
    display: block;
}

.excursion-booking__step-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Даты */
.excursion-booking__dates {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.excursion-booking__dates::-webkit-scrollbar {
    width: 6px;
}

.excursion-booking__dates::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.excursion-booking__dates::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.excursion-booking__dates::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.excursion-booking__date {
    cursor: pointer;
}

.excursion-booking__date input {
    position: absolute;
    opacity: 0;
}

.excursion-booking__date-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.2s;
}

.excursion-booking__date:hover .excursion-booking__date-box {
    border-color: #1976d2;
}

.excursion-booking__date.selected .excursion-booking__date-box {
    border-color: #1976d2;
    background: #e3f2fd;
}

.excursion-booking__date--disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.excursion-booking__date--disabled:hover .excursion-booking__date-box {
    border-color: #e0e0e0;
}

.excursion-booking__date-text {
    font-weight: 500;
    color: #333;
}

.excursion-booking__date-spots {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.excursion-booking__date-spots--low {
    color: #e65100;
}

/* Типы экскурсий */
.excursion-booking__types {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.excursion-booking__type {
    cursor: pointer;
}

.excursion-booking__type input {
    position: absolute;
    opacity: 0;
}

.excursion-booking__type-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s;
}

.excursion-booking__type:hover .excursion-booking__type-box {
    border-color: #1976d2;
}

.excursion-booking__type.selected .excursion-booking__type-box {
    border-color: #1976d2;
    background: #e3f2fd;
}

.excursion-booking__type-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.excursion-booking__type-icon svg {
    width: 24px;
    height: 24px;
}

.excursion-booking__type.selected .excursion-booking__type-icon {
    background: #1976d2;
    color: #fff;
}

.excursion-booking__type-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.excursion-booking__type-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.excursion-booking__type-desc {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

.excursion-booking__no-types {
    padding: 20px;
    background: #fff3e0;
    border-radius: 10px;
    color: #e65100;
    text-align: center;
}

/* Участники */
.excursion-booking__hint {
    margin: 0 0 16px;
    padding: 12px;
    background: #e3f2fd;
    border-radius: 8px;
    font-size: 14px;
    color: #1565c0;
}

.excursion-booking__counters {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.excursion-booking__field {
    margin-bottom: 16px;
}

.excursion-booking__field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.excursion-booking__counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.excursion-booking__counter-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.excursion-booking__counter-btn:hover {
    border-color: #1976d2;
    color: #1976d2;
    background: #e3f2fd;
}

.excursion-booking__counter input {
    width: 80px;
    height: 44px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    background: #fff;
    -moz-appearance: textfield;
}

.excursion-booking__counter input::-webkit-outer-spin-button,
.excursion-booking__counter input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.excursion-booking__counter input:focus {
    outline: none;
    border-color: #1976d2;
}

.excursion-booking__total {
    margin: 16px 0 0;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Размеры групп */
.excursion-booking__group-sizes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.excursion-booking__group-size {
    cursor: pointer;
}

.excursion-booking__group-size input {
    position: absolute;
    opacity: 0;
}

.excursion-booking__group-size-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    gap: 5px;
    transition: all 0.2s;
}

.excursion-booking__group-size:hover .excursion-booking__group-size-box {
    border-color: #1976d2;
}

.excursion-booking__group-size.selected .excursion-booking__group-size-box {
    border-color: #1976d2;
    background: #e3f2fd;
}

.excursion-booking__group-size-num {
    font-size: 28px;
    font-weight: 700;
    color: #1976d2;
}

.excursion-booking__group-size-text {
    font-size: 12px;
    color: #666;
}

.excursion-booking__error {
    margin: 12px 0 0;
    padding: 10px;
    background: #ffebee;
    border-radius: 8px;
    color: #c62828;
    font-size: 14px;
}

.excursion-booking__error:empty {
    display: none;
}

/* Дополнительные места */
.excursion-booking__extras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.excursion-booking__extra {
    cursor: pointer;
}

.excursion-booking__extra input {
    position: absolute;
    opacity: 0;
}

.excursion-booking__extra-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.2s;
}

.excursion-booking__extra:hover .excursion-booking__extra-box {
    border-color: #1976d2;
}

.excursion-booking__extra.selected .excursion-booking__extra-box {
    border-color: #1976d2;
    background: #e3f2fd;
}

.excursion-booking__extra.disabled .excursion-booking__extra-box {
    opacity: 0.5;
    cursor: not-allowed;
}

.excursion-booking__extra.disabled:hover .excursion-booking__extra-box {
    border-color: #e0e0e0;
}

.excursion-booking__extra-check {
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.excursion-booking__extra.selected .excursion-booking__extra-check {
    background: #1976d2;
    border-color: #1976d2;
    color: #fff;
}

.excursion-booking__extra-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.excursion-booking__extra-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.excursion-booking__extra-price {
    font-size: 13px;
    color: #1976d2;
    font-weight: 500;
}

.excursion-booking__extras-count {
    margin: 16px 0 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Блок итоговой цены */
.excursion-booking__price-total {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.excursion-booking__price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.excursion-booking__price-row:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.excursion-booking__price-row--total {
    padding-top: 12px;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
    color: #1976d2;
}

/* Контакты */
.excursion-booking__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.excursion-booking__field--full {
    grid-column: 1 / -1;
}

.excursion-booking__field input,
.excursion-booking__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.excursion-booking__field input:focus,
.excursion-booking__field textarea:focus {
    outline: none;
    border-color: #1976d2;
}

.excursion-booking__field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Навигация */
.excursion-booking__nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.excursion-booking__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.excursion-booking__btn--prev {
    background: #f5f5f5;
    color: #666;
}

.excursion-booking__btn--prev:hover {
    background: #eee;
}

.excursion-booking__btn--next,
.excursion-booking__btn--submit {
    background: #1976d2;
    color: #fff;
    margin-left: auto;
}

.excursion-booking__btn--next:hover,
.excursion-booking__btn--submit:hover {
    background: #1565c0;
}

.excursion-booking__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Сообщения */
.excursion-booking__message {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.excursion-booking__message.show {
    display: block;
}

.excursion-booking__message--error {
    background: #ffebee;
    color: #c62828;
}

.excursion-booking__message--success {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Мобильная версия */
@media (max-width: 600px) {
    .excursion-booking {
        padding: 16px;
    }

    .excursion-booking__progress-label {
        display: none;
    }

    .excursion-booking__fields {
        grid-template-columns: 1fr;
    }

    .excursion-booking__counters {
        grid-template-columns: 1fr;
    }

    .excursion-booking__group-sizes {
        grid-template-columns: 1fr;
    }

    .excursion-booking__nav {
        flex-direction: column;
    }

    .excursion-booking__btn {
        width: 100%;
    }

    .excursion-booking__btn--next,
    .excursion-booking__btn--submit {
        margin-left: 0;
    }
}
