/* bus-quote-widget.css
   Заявочная форма вместо лимузинного калькулятора на bus-лендингах
   + секция популярных групповых маршрутов (замена TOP TRANSFER DESTINATIONS).
   Палитра наследуется от bus-rental-city.css: акцент #6b5d4a, тёмный #161616, фон #f6f5f3. */

/* ============================================================
   0. Hero под карточкой формы
   ============================================================
   Базовый стиль поднимает .custom-form-widgetss на 113px, и карточка накрывает
   низ героя — на узких экранах под ней пропадали хлебные крошки. Поэтому герой
   на страницах с формой получает запас снизу, а крошки — отступ от карточки.
   Селекторы с body: этот файл линкуется РАНЬШЕ постраничных css (coach-bus,
   bus-rental-city), где те же правила заданы одним классом. */

body .luxury-title,
body .title-page {
    padding-bottom: 145px;
}

body .luxury-title .info-breadcrumbs,
body .title-page .info-breadcrumbs {
    margin-top: 14px;
    margin-bottom: 15px;
}

/* Карточка сдвинута вверх на 113px (bottom в style-new), но место в потоке за
   ней остаётся — под ней зияет дыра в те же 113px. Гасим её отрицательным
   margin, оставляя ~30px до следующей секции. */
body .custom-form-widgetss {
    margin-bottom: -85px;
}

@media (max-width: 767px) {
    body .custom-form-widgetss {
        margin-bottom: -90px;
    }
}

/* Размеры width/height у иконок бейджа проставлены скриптом как 120x120,
   а своего правила у них не было — пассажир и чемодан раздувались. */
.info-badge ul li i img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Заголовок над карточками флота на /bus-fleet и /de/busfuhrpark:
   раньше карточки начинались без всякого введения. */
.bfh-section-head {
    max-width: 780px;
    margin: 0 auto 46px;
    text-align: center;
}

.bfh-eyebrow {
    display: inline-block;
    color: #6b5d4a;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.bfh-section-head h2 {
    font-size: 2.1rem;
    font-weight: 300;
    line-height: 1.25;
    margin: 0;
}

.bfh-section-head p {
    margin: 16px auto 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .bfh-section-head {
        margin-bottom: 30px;
    }

    .bfh-section-head h2 {
        font-size: 1.5rem;
    }
}

/* ============================================================
   1. Quote widget (три поля в столбик + раскрывающаяся панель)
   ============================================================ */

.bqw {
    background: #fff;
    border: 1px solid #ebe8e4;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
    overflow: hidden;
    max-width: 1140px;
    margin: 0 auto;
}

/* --- тёмная шапка: заменяет табы калькулятора --- */
.bqw-head {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #161616;
    padding: 18px 26px;
    border-bottom: 1px solid rgba(154, 138, 120, .25);
}

.bqw-head-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(154, 138, 120, .18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bqw-head-icon svg {
    width: 24px;
    height: 24px;
    stroke: #b9a68f;
    fill: none;
    stroke-width: 1.6;
}

.bqw-head-text {
    flex: 1;
    min-width: 0;
}

.bqw-head-text strong {
    display: block;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: .5px;
    line-height: 1.3;
}

.bqw-head-text span {
    display: block;
    color: rgba(255, 255, 255, .68);
    font-size: .88rem;
    line-height: 1.45;
    margin-top: 3px;
}

.bqw-head-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b9a68f;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(154, 138, 120, .45);
    border-radius: 30px;
    padding: 7px 16px;
    white-space: nowrap;
}

.bqw-head-badge svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* --- ряд полей --- */
.bqw-body {
    padding: 22px 26px 24px;
}

/* Класс .wrapper нужен обработчику отправки из script.js, но глобальный стиль
   вешает на него padding-top: 30px — внутри карточки это лишний воздух под шапкой. */
.bqw .wrapper {
    padding-top: 0;
}

.bqw-row {
    /* Ровно три колонки: имя, e-mail, телефон. Кнопка вынесена под панель,
       иначе она занимала четвёртую колонку и телефон срывался на свою строку. */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: flex-end;
    gap: 16px;
}

.bqw-field {
    min-width: 0;
}

.bqw-field label,
.bqw-panel label.bqw-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #6b5d4a;
    margin-bottom: 7px;
}

.bqw-input {
    position: relative;
}

.bqw-input svg.bqw-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: #9c9c9c;
    fill: none;
    stroke-width: 1.7;
    pointer-events: none;
    z-index: 2;
}

.bqw .bqw-input input.form-control {
    height: 52px;
    width: 100%;
    border: 1px solid #e2ded8;
    border-radius: 9px;
    background: #fff;
    font-size: .97rem;
    color: #222;
    padding: 0 14px 0 42px;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-shadow: none;
}

.bqw .bqw-input input.form-control:focus {
    border-color: #6b5d4a;
    box-shadow: 0 0 0 3px rgba(107, 93, 74, .12);
    outline: none;
}

.bqw .bqw-input input.form-control::placeholder {
    color: #a8a8a8;
}

/* Телефон: bl-phone.js оборачивает input в .blph и кладёт кнопку с флагом
   поверх левого отступа, поэтому рамку держит сам input, а не контейнер. */
.bqw .bqw-input .custom-tel-input {
    display: block;
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

.bqw .bqw-input .custom-tel-input .tel-input {
    height: 52px;
    width: 100%;
    border: 1px solid #e2ded8;
    border-radius: 9px;
    background: #fff;
    font-size: .97rem;
    color: #222;
    padding: 0 14px 0 86px;
    transition: border-color .2s ease, box-shadow .2s ease;
    outline: none;
}

.bqw .bqw-input .custom-tel-input .tel-input:focus {
    border-color: #6b5d4a;
    box-shadow: 0 0 0 3px rgba(107, 93, 74, .12);
}

.bqw .bqw-input .custom-tel-input .tel-input::placeholder {
    color: #a8a8a8;
}

/* Фолбэк, если bl-phone.js не отработал: старый флаг и список не должны
   разъезжаться поверх поля. */
.bqw .bqw-input .custom-tel-input > .selected-flag {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .9rem;
    color: #555;
}

.bqw .bqw-input .custom-tel-input .country-dropdown {
    z-index: 20;
}

.bqw .bqw-input .custom-tel-input.invalid .tel-input,
.bqw .bqw-input input.form-control.invalid,
.bqw .bqw-panel textarea.form-control.invalid {
    border-color: #d14343;
    box-shadow: 0 0 0 3px rgba(209, 67, 67, .1);
}

/* --- кнопка: живёт в раскрывающейся панели, под деталями поездки --- */
.bqw-action {
    margin-top: 18px;
    display: flex;
    justify-content: flex-start;
}

.bqw .bqw-submit {
    height: 52px;
    min-width: 260px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #6b5d4a;
    color: #fff;
    border: 1px solid #6b5d4a;
    border-radius: 9px;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 0 26px;
    cursor: pointer;
    transition: background .25s ease, box-shadow .25s ease, transform .15s ease;
}

.bqw .bqw-submit:hover {
    background: #55483a;
    border-color: #55483a;
    box-shadow: 0 10px 26px rgba(107, 93, 74, .32);
    color: #fff;
}

.bqw .bqw-submit:active {
    transform: translateY(1px);
}

.bqw .bqw-submit svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    transition: transform .25s ease;
}

.bqw .bqw-submit:hover svg {
    transform: translateX(3px);
}

/* --- панель с деталями и кнопкой ---
   По умолчанию раскрыта: без JS форму всё равно можно отправить.
   Класс is-collapsed вешает скрипт сразу при загрузке и снимает,
   как только посетитель начинает заполнять поля. */
.bqw-panel {
    max-height: 620px;
    opacity: 1;
    overflow: hidden;
    margin-top: 20px;
    transition: max-height .45s cubic-bezier(.25, .8, .3, 1), opacity .3s ease, margin-top .45s ease;
}

.bqw.is-collapsed .bqw-panel {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.bqw-panel-inner {
    border-top: 1px solid #efece7;
    padding-top: 20px;
}

.bqw .bqw-panel textarea.form-control {
    width: 100%;
    min-height: 104px;
    border: 1px solid #e2ded8;
    border-radius: 9px;
    background: #fff;
    font-size: .97rem;
    color: #222;
    padding: 13px 16px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.bqw .bqw-panel textarea.form-control:focus {
    border-color: #6b5d4a;
    box-shadow: 0 0 0 3px rgba(107, 93, 74, .12);
    outline: none;
}

.bqw-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.bqw .bqw-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding: 0;
    min-height: 0;
}

.bqw .bqw-check input {
    margin: 3px 0 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #6b5d4a;
    cursor: pointer;
    position: static;
}

.bqw .bqw-check label {
    margin: 0;
    font-size: .88rem;
    color: #555;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.bqw .bqw-check input.invalid + label {
    color: #d14343;
}

.bqw .bqw-check .privacybutton {
    color: #6b5d4a;
    text-decoration: underline;
    cursor: pointer;
}

.bqw-call {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .9rem;
    color: #777;
    white-space: nowrap;
}

.bqw-call a {
    color: #161616;
    font-weight: 700;
    font-size: 1rem;
}

.bqw-call a:hover {
    color: #6b5d4a;
}

/* подсказка под свёрнутой строкой */
.bqw-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: .85rem;
    color: #888;
}

.bqw-hint svg {
    width: 15px;
    height: 15px;
    stroke: #6b5d4a;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Подсказка живёт только в свёрнутом состоянии: когда панель открыта,
   её место занимают детали поездки. */
.bqw:not(.is-collapsed) .bqw-hint {
    display: none;
}

/* --- адаптив --- */
@media (max-width: 767px) {
    .bqw-row {
        /* на телефоне три поля в ряд не помещаются */
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .bqw {
        border-radius: 12px;
    }

    .bqw-head {
        padding: 16px 18px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .bqw-head-badge {
        display: none;
    }

    .bqw-head-text strong {
        font-size: 1rem;
    }

    .bqw-body {
        padding: 18px 18px 20px;
    }

    .bqw-panel-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .bqw-action {
        justify-content: stretch;
    }

    .bqw .bqw-submit {
        width: 100%;
        min-width: 0;
    }

    .bqw-panel {
        max-height: 760px;
    }
}

/* ============================================================
   2. Секция популярных групповых маршрутов
   ============================================================ */

.brt {
    padding: 70px 0;
    background: #fff;
}

/* Свой заголовок секции: на /coach-bus нет bus-rental-city.css
   с его .brl-section-head, поэтому блок не должен от него зависеть. */
.brt-head {
    max-width: 820px;
    margin: 0 auto 42px;
    text-align: center;
}

.brt-eyebrow {
    display: inline-block;
    color: #6b5d4a;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.brt-head h2 {
    font-size: 2.1rem;
    font-weight: 300;
    line-height: 1.25;
    margin: 0;
}

.brt-head h2 span {
    font-weight: 700;
}

.brt-head-sub {
    margin: 16px auto 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 720px;
}

@media (max-width: 767px) {
    .brt-head {
        margin-bottom: 28px;
    }

    .brt-head h2 {
        font-size: 1.5rem;
    }
}

.brt-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 34px;
}

.brt-pill {
    background: #f6f5f3;
    border: 1px solid #ebe8e4;
    border-radius: 30px;
    padding: 9px 20px;
    font-size: .9rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: all .25s ease;
}

.brt-pill:hover {
    border-color: #6b5d4a;
    color: #161616;
}

.brt-pill.active {
    background: #161616;
    border-color: #161616;
    color: #fff;
}

.brt-group {
    display: none;
}

.brt-group.active {
    display: block;
}

.brt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.brt-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.brt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .1);
    border-color: #ded8cf;
}

.brt-route {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    font-size: 1.06rem;
    font-weight: 700;
    color: #161616;
    line-height: 1.35;
    margin: 0 0 9px;
}

.brt-route .brt-arrow {
    color: #6b5d4a;
    font-weight: 400;
    flex-shrink: 0;
}

.brt-desc {
    font-size: .93rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 18px;
}

.brt-sep {
    height: 1px;
    background: #efece7;
    margin: 0 0 16px;
}

.brt-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
}

.brt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.brt-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(154, 138, 120, .13);
    color: #6b5d4a;
    border-radius: 5px;
    padding: 5px 9px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.brt-tag svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.brt-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #161616;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 9px 16px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .25s ease;
}

.brt-btn:hover {
    background: #6b5d4a;
    color: #fff;
}

.brt-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    transition: transform .25s ease;
}

.brt-btn:hover svg {
    transform: translateX(3px);
}

@media (max-width: 991px) {
    .brt-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .brt {
        padding: 50px 0;
    }

    .brt-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .brt-foot {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .brt-btn {
        justify-content: center;
    }
}
