/**
 * Concerq — Flight search + enquiry modal (deals page)
 *
 * Styled in the theme's own design language: Montserrat, #d6b97c gold,
 * pill buttons, translucent-white panels — the same tokens style.css and
 * page-contact.php use, so the block sits natively inside the site.
 *
 * Every rule is scoped to .cqfs (the search block) or .cqfs-backdrop (the
 * modal, which lives at the end of <body>). Nothing here can reach the deals
 * table or the rest of the theme, and the local resets below stop the theme's
 * bare `p {}` / `h1-h6 {}` rules from leaking in.
 */

.cqfs,
.cqfs-backdrop {
    /* Theme palette */
    --gold: #d6b97c;
    --gold-2: #e4cb92;
    --gold-dim: rgba(214, 185, 124, .35);
    --gold-faint: rgba(214, 185, 124, .08);
    --ink: #000000;
    --panel: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    --sunk: rgba(255, 255, 255, .03);
    --field-bg: rgba(255, 255, 255, .05);
    --line: rgba(255, 255, 255, .1);
    --line-2: rgba(255, 255, 255, .2);
    --bone: #ffffff;
    --ash: rgba(255, 255, 255, .7);
    --ash-2: #888888;
    --danger: #ff6b6b;
    --radius: 20px;
    --radius-sm: 10px;
    --ui: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    font-family: var(--ui);
    line-height: 1.6;
    color: var(--bone);
}

/* Local reset — the theme styles bare elements globally. */
.cqfs *,
.cqfs-backdrop * {
    box-sizing: border-box;
}

.cqfs p,
.cqfs h2,
.cqfs h3,
.cqfs-backdrop p,
.cqfs-backdrop h2,
.cqfs-backdrop h3 {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: normal;
}

.cqfs button,
.cqfs-backdrop button,
.cqfs input,
.cqfs-backdrop input,
.cqfs textarea,
.cqfs-backdrop textarea {
    font-family: var(--ui);
}

/* Theme heading treatment: light weight, gold-to-white gradient text. */
.cqfs .search-title h2,
.cqfs-backdrop .modal h3 {
    font-family: var(--ui);
    font-weight: 200;
    background: linear-gradient(180deg, #e4cb92, #c7a667);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold);
}

/* ==========================================================================
   Search shell
   ========================================================================== */

/* Toggled by CONCERQ_FLIGHT_SEARCH_HIDDEN in inc/flight-enquiry.php. Hidden
   rather than removed: the deals table's Enquire buttons read their route data
   and open their modal through this block. */
.cqfs-hidden {
    display: none !important;
}

/* Matches the theme's .container box so the shell's edges line up with the
   deals table below. Both neighbouring sections carry .sec-padding, so this
   block adds no vertical margin of its own. */
.cqfs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.cqfs .search-shell {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.cqfs .search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem) 0;
}

.cqfs .search-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cqfs .search-title .eyebrow {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

/* "eyebrow" is also the theme's own class for front-page section labels, and
   that rule draws a dash in front of the text. Ours is just the label, so kill
   whatever it generates. Scoped tightly enough to outrank a bare .eyebrow. */
.cqfs .search-title .eyebrow::before,
.cqfs .search-title .eyebrow::after,
.cqfs-backdrop .eyebrow::before,
.cqfs-backdrop .eyebrow::after {
    content: none;
    display: none;
}

.cqfs .search-title h2 {
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    line-height: 1.2;
}

.cqfs .triptype {
    display: inline-flex;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    padding: 4px;
    background: var(--sunk);
}

.cqfs .triptype button {
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ash);
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 9px 18px;
    border-radius: 10px;
    transition: all .3s ease;
}

.cqfs .triptype button:hover {
    color: var(--bone);
}

.cqfs .triptype button.on {
    background: var(--cq-btn-fill);
    color: #000000;
}

/* ==========================================================================
   Search bar
   ========================================================================== */

.cqfs .searchbar {
    display: grid;
    grid-template-columns: 1fr 46px 1fr 210px 1.1fr auto;
    gap: 1rem;
    align-items: end;
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
}

.cqfs.mode-return .searchbar {
    grid-template-columns: 1fr 46px 1fr 320px 1.1fr auto;
}

.cqfs .cell {
    min-width: 0;
}

.cqfs .cell > label,
.cqfs .dates .sub > label {
    display: block;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--bone);
    margin: 0 0 .5rem;
    font-weight: 500;
}

.cqfs .cell > label .req,
.cqfs .sub label .req,
.cqfs-backdrop .field label .req {
    color: var(--danger);
}

.cqfs .ctrl,
.cqfs .combo-input,
.cqfs .trigger,
.cqfs-backdrop .combo-input {
    width: 100%;
    height: 56px;
    background: var(--field-bg);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: var(--bone);
    font-size: 1rem;
    padding: 0 1rem;
    transition: all .3s ease;
}

.cqfs .combo-input::placeholder,
.cqfs .ctrl::placeholder,
.cqfs-backdrop .combo-input::placeholder {
    color: var(--ash-2);
}

.cqfs .ctrl:focus,
.cqfs .combo-input:focus,
.cqfs .trigger:focus-visible,
.cqfs-backdrop .combo-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(214, 185, 124, .1);
}

.cqfs input[type=date].ctrl {
    color-scheme: dark;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.cqfs input[type=date].ctrl::-webkit-calendar-picker-indicator {
    filter: invert(.7) sepia(1) saturate(4) hue-rotate(5deg);
    cursor: pointer;
    opacity: .85;
}

.cqfs .swap-btn {
    height: 56px;
    width: 46px;
    align-self: end;
    background: var(--field-bg);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    color: var(--gold);
    cursor: pointer;
    font-size: 1rem;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cqfs .swap-btn:hover {
    background: var(--gold-faint);
    border-color: var(--gold);
    transform: rotate(180deg);
}

.cqfs .dates {
    display: flex;
    gap: 1rem;
}

.cqfs .dates .sub {
    flex: 1;
    min-width: 0;
}

.cqfs .ret-sub {
    display: none;
}

.cqfs.mode-return .ret-sub {
    display: block;
    animation: cqfsFadeIn .35s ease;
}

@keyframes cqfsFadeIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: none; }
}

.cqfs .cell.submit {
    display: flex;
    align-items: end;
}

/* Same treatment as the theme's .cta-button. */
.cqfs .btn-search {
    display: inline-block;
    background: var(--cq-btn-fill);
    color: #000000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(214, 185, 124, 0.3);
    height: 56px;
    width: 100%;
    min-width: 170px;
    padding: 0 2rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    white-space: nowrap;
}

.cqfs .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(214, 185, 124, .4);
}

/* ==========================================================================
   Travellers
   ========================================================================== */

.cqfs .pax {
    position: relative;
}

.cqfs .pax-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.cqfs .pax-summary .val {
    color: var(--bone);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
}

.cqfs .pax-summary .car {
    color: var(--gold);
    font-size: 10px;
    transition: transform .3s ease;
    margin-left: 8px;
    flex: none;
}

.cqfs .pax.open .pax-summary .car {
    transform: rotate(180deg);
}

.cqfs .pax-panel {
    position: absolute;
    z-index: 900;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    min-width: 270px;
    background: #0d0d0d;
    border: 1px solid var(--line-2);
    border-radius: 15px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .6);
    padding: .5rem;
    display: none;
}

.cqfs .pax.open .pax-panel {
    display: block;
}

.cqfs .pax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
}

.cqfs .pax-row + .pax-row {
    border-top: 1px solid var(--line);
}

.cqfs .pax-row .t {
    font-size: .95rem;
    color: var(--bone);
    font-weight: 500;
}

.cqfs .pax-row .d {
    font-size: .8rem;
    color: var(--ash-2);
}

.cqfs .stepper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cqfs .stepper button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--field-bg);
    border: 1px solid var(--line-2);
    color: var(--gold);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cqfs .stepper button:hover:not(:disabled) {
    border-color: var(--gold);
    background: var(--gold-faint);
}

.cqfs .stepper button:disabled {
    opacity: .3;
    cursor: not-allowed;
}

.cqfs .stepper .count {
    min-width: 1.4ch;
    text-align: center;
    font-size: 1rem;
    color: var(--bone);
    font-weight: 500;
}

/* ==========================================================================
   Comboboxes (airports / dial codes)
   ========================================================================== */

.cqfs .combo,
.cqfs-backdrop .combo {
    position: relative;
}

.cqfs .combo-menu,
.cqfs-backdrop .combo-menu {
    position: absolute;
    z-index: 900;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    min-width: 270px;
    background: #0d0d0d;
    border: 1px solid var(--line-2);
    border-radius: 15px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .6);
    max-height: 280px;
    overflow-y: auto;
    display: none;
}

.cqfs .combo-menu.open,
.cqfs-backdrop .combo-menu.open {
    display: block;
}

.cqfs .opt,
.cqfs-backdrop .opt {
    padding: .75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .75rem;
    border-bottom: 1px solid var(--line);
    transition: background .3s ease;
}

.cqfs .opt:last-child,
.cqfs-backdrop .opt:last-child {
    border-bottom: 0;
}

.cqfs .opt .code,
.cqfs-backdrop .opt .code {
    font-weight: 600;
    font-size: .9rem;
    color: var(--gold);
    min-width: 3.5ch;
    letter-spacing: .05em;
}

.cqfs .opt .flag,
.cqfs-backdrop .opt .flag {
    font-size: 1.1rem;
    line-height: 1;
}

.cqfs .opt .txt-wrap,
.cqfs-backdrop .opt .txt-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cqfs .opt .main,
.cqfs .opt .sub,
.cqfs-backdrop .opt .main,
.cqfs-backdrop .opt .sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cqfs .opt .main,
.cqfs-backdrop .opt .main {
    font-size: .9rem;
    color: var(--bone);
    line-height: 1.4;
}

.cqfs .opt .sub,
.cqfs-backdrop .opt .sub {
    font-size: .75rem;
    color: var(--ash-2);
    line-height: 1.4;
}

.cqfs .opt .dial,
.cqfs-backdrop .opt .dial {
    margin-left: auto;
    font-size: .9rem;
    color: var(--gold);
}

.cqfs .opt.active,
.cqfs .opt:hover,
.cqfs-backdrop .opt.active,
.cqfs-backdrop .opt:hover {
    background: rgba(255, 255, 255, .08);
}

.cqfs .combo-empty,
.cqfs-backdrop .combo-empty {
    padding: 1rem;
    color: var(--ash-2);
    font-size: .85rem;
    text-align: center;
}

/* ==========================================================================
   Route builder
   ========================================================================== */

.cqfs .route-builder {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .5s ease, opacity .35s ease;
    border-top: 1px solid transparent;
}

.cqfs .route-builder.open {
    max-height: 2000px;
    opacity: 1;
    border-top: 1px solid var(--line);
}

.cqfs .rb-inner {
    padding: 1.5rem clamp(1.5rem, 3vw, 2.5rem) 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cqfs .rb-tag {
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cqfs .rb-tag .lbl {
    flex: none;
}

.cqfs .rb-tag .ln {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.cqfs .rb-close {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--field-bg);
    color: var(--ash);
    cursor: pointer;
    font-size: .85rem;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cqfs .rb-close:hover {
    color: #000000;
    background: var(--gold);
    border-color: var(--gold);
}

.cqfs .rb-leg {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cqfs .rb-code {
    font-weight: 200;
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1;
    letter-spacing: .02em;
    background: linear-gradient(180deg, #e4cb92, #c7a667);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold);
    min-width: 2.6ch;
    text-align: center;
}

.cqfs .rb-code.empty {
    -webkit-text-fill-color: var(--ash-2);
    color: var(--ash-2);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.cqfs .rb-code .city {
    display: block;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    -webkit-text-fill-color: var(--ash);
    color: var(--ash);
    margin-top: .5rem;
}

.cqfs .rb-path {
    flex: 1;
    position: relative;
    height: 26px;
    min-width: 60px;
}

.cqfs .rb-path .rule {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    transform: translateY(-.5px);
    background-image: linear-gradient(90deg, var(--gold-dim) 0 6px, transparent 6px 12px);
    background-size: 12px 1px;
}

.cqfs .rb-path .plane {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    font-size: 1rem;
}

.cqfs .rb-path .plane.fly {
    animation: cqfsFly 1.7s cubic-bezier(.5, 0, .2, 1) forwards;
}

@keyframes cqfsFly {
    from { left: 0; }
    to   { left: 100%; }
}

.cqfs .rb-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.75rem;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ash);
}

.cqfs .rb-meta b {
    color: var(--gold);
    font-weight: 600;
}

.cqfs .jetlink {
    font-size: 12px;
    letter-spacing: .03em;
    text-transform: none;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 2px;
}

.cqfs .jetlink:hover {
    color: var(--gold-2);
    border-color: var(--gold-2);
}

/* ==========================================================================
   Pre-quote
   ========================================================================== */

.cqfs .prequote {
    display: none;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
}

.cqfs .prequote.show {
    display: block;
    animation: cqfsFadeIn .4s ease;
}

.cqfs .pq-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.cqfs .pq-head .l .t {
    font-weight: 200;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    background: linear-gradient(180deg, #e4cb92, #c7a667);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold);
    line-height: 1.2;
}

.cqfs .pq-head .l .s {
    font-size: 12px;
    letter-spacing: .03em;
    color: var(--ash-2);
    margin-top: .35rem;
}

.cqfs .cur {
    display: inline-flex;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    padding: 4px;
    background: var(--sunk);
}

.cqfs .cur button {
    font-size: 12px;
    letter-spacing: .05em;
    font-weight: 600;
    color: var(--ash);
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 10px;
    transition: all .3s ease;
}

.cqfs .cur button:hover {
    color: var(--bone);
}

.cqfs .cur button.on {
    background: var(--cq-btn-fill);
    color: #000000;
}

.cqfs .classtabs {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cqfs .classtabs::-webkit-scrollbar {
    display: none;
}

.cqfs .classtabs button {
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ash);
    background: transparent;
    border: 1px solid var(--line-2);
    cursor: pointer;
    padding: .7rem 1.4rem;
    border-radius: 10px;
    transition: all .3s ease;
}

.cqfs .classtabs button:hover {
    color: var(--bone);
    border-color: var(--gold-dim);
}

.cqfs .classtabs button.on {
    color: #000000;
    border-color: transparent;
    background: var(--cq-btn-fill);
}

.cqfs .deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.cqfs .deals-grid.jet {
    grid-template-columns: 1fr;
}

.cqfs .deal {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--sunk);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    position: relative;
    transition: all .3s ease;
}

.cqfs .deal:hover {
    border-color: var(--gold-dim);
    background: rgba(255, 255, 255, .06);
}

.cqfs .deal .top {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 30px;
}

.cqfs .deal .logo {
    height: 30px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.cqfs .deal .al {
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--bone);
    font-weight: 500;
}

.cqfs .deal .fare {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
}

.cqfs .deal .fare .from {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ash-2);
}

.cqfs .deal .fare .amt {
    font-weight: 200;
    font-size: 2.25rem;
    line-height: 1;
    background: linear-gradient(180deg, #e4cb92, #c7a667);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold);
}

.cqfs .deal .fare .amt.por {
    font-size: 1.35rem;
}

.cqfs .deal .fare .cls {
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ash-2);
}

.cqfs .deal .basis {
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ash-2);
}

.cqfs .perk {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 12px;
    line-height: 1.5;
    color: var(--gold);
    background: var(--gold-faint);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-sm);
    padding: .6rem .75rem;
}

.cqfs .perk .ic {
    flex: none;
}

.cqfs .deal .secure {
    margin-top: auto;
    height: 46px;
    border: 2px solid var(--gold);
    border-radius: 10px;
    background: transparent;
    color: var(--gold);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s ease;
}

.cqfs .deal .secure:hover {
    background: var(--cq-btn-fill);
    color: #000000;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(214, 185, 124, .3);
}

.cqfs .jetcard .jet-cta {
    margin-top: .35rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.cqfs .jetcard .explore {
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 2px;
}

.cqfs .jetcard .explore:hover {
    color: var(--gold-2);
    border-color: var(--gold-2);
}

.cqfs .jetcard .secure {
    margin-top: 0;
    flex: 1;
    min-width: 190px;
}

.cqfs .pq-avail {
    font-size: 12px;
    letter-spacing: .02em;
    color: var(--gold);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.cqfs .deal.jetup {
    border-style: dashed;
    border-color: var(--gold-dim);
}

.cqfs .deal.jetup .al {
    color: var(--gold);
}

.cqfs .pq-foot {
    font-size: 11px;
    line-height: 1.7;
    color: var(--ash-2);
    margin-top: 1.25rem;
}

.cqfs .pq-none {
    color: var(--ash);
    font-size: .9rem;
    padding: .5rem 0;
}

/* ==========================================================================
   Errors
   ========================================================================== */

.cqfs .err,
.cqfs-backdrop .err {
    color: var(--danger);
    font-size: 12px;
    margin-top: .5rem;
    display: none;
}

.cqfs .err.show,
.cqfs-backdrop .err.show {
    display: block;
}

.cqfs .cell.invalid .ctrl,
.cqfs .cell.invalid .combo-input,
.cqfs .cell.invalid .trigger,
.cqfs-backdrop .field.invalid .combo-input,
.cqfs-backdrop .field.invalid .txt {
    border-color: var(--danger);
}

/* ==========================================================================
   Modal
   ========================================================================== */

.cqfs-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1rem, 5vh, 3.5rem) 1rem;
    z-index: 99999;
    overflow-y: auto;
}

.cqfs-backdrop.open {
    display: flex;
}

.cqfs-backdrop .modal {
    width: 100%;
    max-width: 540px;
    background: linear-gradient(135deg, #131313, #0a0a0a);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
    position: relative;
    animation: cqfsPop .4s ease;
}

@keyframes cqfsPop {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.cqfs-backdrop .modal-x {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--field-bg);
    color: var(--ash);
    cursor: pointer;
    font-size: 1rem;
    transition: all .3s ease;
    z-index: 2;
    padding: 0;
}

.cqfs-backdrop .modal-x:hover {
    color: #000000;
    background: var(--gold);
    border-color: var(--gold);
}

.cqfs-backdrop .modal-body {
    padding: clamp(2rem, 5vw, 3rem);
}

.cqfs-backdrop .eyebrow {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin: 0 0 .75rem;
}

.cqfs-backdrop .modal h3 {
    font-size: clamp(1.6rem, 5vw, 2rem);
    margin: 0 0 .75rem;
    line-height: 1.2;
}

.cqfs-backdrop .modal .sub {
    color: var(--ash);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0 0 1.75rem;
}

.cqfs-backdrop .m-summary {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--sunk);
    padding: .75rem 1.25rem;
    margin: 0 0 1.75rem;
}

.cqfs-backdrop .m-summary .r {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    font-size: .9rem;
}

.cqfs-backdrop .m-summary .r + .r {
    border-top: 1px solid var(--line);
}

.cqfs-backdrop .m-summary .k {
    color: var(--ash-2);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 11px;
    font-weight: 500;
    padding-top: 2px;
}

.cqfs-backdrop .m-summary .v {
    color: var(--bone);
    text-align: right;
}

.cqfs-backdrop .m-summary .v.hi {
    color: var(--gold);
    font-weight: 600;
}

.cqfs-backdrop .field {
    margin-bottom: 1.5rem;
}

.cqfs-backdrop .field > label {
    display: block;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--bone);
    font-weight: 500;
    margin: 0 0 .5rem;
}

.cqfs-backdrop .txt,
.cqfs-backdrop textarea.txt {
    width: 100%;
    background: var(--field-bg);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: var(--bone);
    font-size: 1rem;
    transition: all .3s ease;
}

.cqfs-backdrop .txt {
    height: 56px;
    padding: 0 1rem;
}

.cqfs-backdrop textarea.txt {
    padding: 1rem;
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

.cqfs-backdrop .txt::placeholder,
.cqfs-backdrop textarea.txt::placeholder {
    color: var(--ash-2);
}

.cqfs-backdrop .txt:focus,
.cqfs-backdrop textarea.txt:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(214, 185, 124, .1);
}

/* Date inputs render a near-black glyph on the dark field by default. */
.cqfs-backdrop input[type=date].txt {
    color-scheme: dark;
    cursor: pointer;
}

.cqfs-backdrop input[type=date].txt::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: .55;
    cursor: pointer;
}

.cqfs-backdrop .two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cqfs-backdrop .phone {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: .75rem;
}

.cqfs-backdrop .field .err {
    margin-top: .5rem;
}

/* Honeypot — never shown to a human. */
.cqfs-backdrop .hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cqfs-backdrop .news {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .25rem 0;
    cursor: pointer;
    line-height: 1.5;
}

.cqfs-backdrop .news input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cqfs-backdrop .news .cb {
    width: 20px;
    height: 20px;
    flex: none;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    background: var(--field-bg);
    position: relative;
    transition: all .3s ease;
    margin-top: 2px;
}

.cqfs-backdrop .news input:checked + .cb {
    background: var(--gold);
    border-color: var(--gold);
}

.cqfs-backdrop .news input:checked + .cb::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cqfs-backdrop .news input:focus-visible + .cb {
    box-shadow: 0 0 0 3px rgba(214, 185, 124, .2);
}

.cqfs-backdrop .news .tl {
    font-size: .95rem;
    color: var(--bone);
}

.cqfs-backdrop .news .ts {
    font-size: .8rem;
    color: var(--ash-2);
    display: block;
    margin-top: 2px;
}

.cqfs-backdrop .m-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.75rem;
}

/* Sized and coloured to match the hero's "Enquire Now" pill rather than the
   56px form fields above them. Kept in step with the same rules in
   css/route-request.css, so both modals show one button. */
.cqfs-backdrop .btn {
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 10px;
    height: 44px;
    padding: 0 1.5rem;
    transition: all .3s ease;
    border: none;
}

/* The hero button's exact gradient: white into gold, not gold into gold. */
.cqfs-backdrop .btn-primary {
    background: var(--cq-btn-fill);
    color: #000000;
    box-shadow: 0 4px 15px rgba(214, 185, 124, .3);
    flex: 1;
}

.cqfs-backdrop .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(214, 185, 124, .5);
    background: var(--cq-btn-fill);
    color: #000000;
}

.cqfs-backdrop .btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 1px, not 2px — at 44px tall the thicker ring was competing with the primary. */
.cqfs-backdrop .btn-ghost {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.cqfs-backdrop .btn-ghost:hover {
    background: var(--gold);
    color: #000000;
}

.cqfs-backdrop .m-consent {
    font-size: 11px;
    line-height: 1.7;
    color: var(--ash-2);
    margin-top: 1rem;
    text-align: center;
}

.cqfs-backdrop .m-consent a {
    color: var(--gold);
    text-decoration: none;
}

.cqfs-backdrop .m-consent a:hover {
    color: var(--gold-2);
}

.cqfs-backdrop .form-error {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 107, 107, .3);
    background: rgba(255, 107, 107, .1);
    color: var(--danger);
    font-size: .9rem;
    line-height: 1.5;
    border-radius: var(--radius-sm);
    text-align: center;
}

.cqfs-backdrop .form-error.show {
    display: block;
}

.cqfs-backdrop .done {
    text-align: center;
}

.cqfs-backdrop .done .seal {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--gold);
    font-size: 1.6rem;
    background: var(--gold-faint);
}

.cqfs-backdrop .done h3 {
    margin-bottom: .75rem;
}

.cqfs-backdrop .done p {
    color: var(--ash);
    font-size: .95rem;
    line-height: 1.7;
    margin: 0 auto 1.75rem;
    max-width: 42ch;
}

.cqfs-backdrop .done .send {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Same size as the form's actions, so the modal keeps one button scale. */
.cqfs-backdrop .done .send a {
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 0 1.5rem;
    height: 44px;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border-radius: 10px;
    transition: all .3s ease;
}

.cqfs-backdrop .send .wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
}

.cqfs-backdrop .send .wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, .3);
    color: #ffffff;
}

.cqfs-backdrop .send .em {
    background: var(--cq-btn-fill);
    color: #000000;
    box-shadow: 0 4px 15px rgba(214, 185, 124, .3);
}

.cqfs-backdrop .send .em:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(214, 185, 124, .5);
    background: var(--cq-btn-fill);
    color: #000000;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
    /* Follow the theme's .container gutter change at this breakpoint. */
    .cqfs {
        padding: 0 1rem;
    }

    .cqfs .searchbar,
    .cqfs.mode-return .searchbar {
        grid-template-columns: 1fr 1fr;
    }

    .cqfs .swap-btn {
        order: 5;
        grid-column: 1 / -1;
        width: 100%;
        height: 40px;
    }

    .cqfs .cell.submit {
        grid-column: 1 / -1;
    }

    .cqfs .deals-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cqfs .searchbar,
    .cqfs.mode-return .searchbar {
        grid-template-columns: 1fr;
    }

    .cqfs .swap-btn,
    .cqfs .swap-btn:hover {
        transform: none;
    }

    .cqfs .search-head {
        gap: 1rem;
    }

    .cqfs .triptype button {
        padding: 8px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .cqfs-backdrop .two {
        grid-template-columns: 1fr;
    }

    .cqfs-backdrop .phone {
        grid-template-columns: 120px 1fr;
    }

    .cqfs-backdrop .m-actions {
        flex-direction: column-reverse;
    }

    .cqfs-backdrop .done .send a {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cqfs *,
    .cqfs-backdrop * {
        animation: none !important;
        transition: none !important;
    }
}

/* Route-only mode (deals preview + flights service page): no fare cards after
 * a search, just the route summary. Hides the cabin tabs, availability note,
 * airline cards and fare note. */
.cqfs-route-only #cqfsClassTabs,
.cqfs-route-only #cqfsPqAvail,
.cqfs-route-only #cqfsDeals,
.cqfs-route-only #cqfsPqFoot {
    display: none !important;
}

/* "Get My Quote" pulses once From, To and Depart are filled (js adds
 * .is-ready), so the next step is obvious. Off for reduced-motion users. */
@keyframes cqfs-ready-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(228, 203, 146, 0.65), 0 14px 30px -14px rgba(199, 166, 103, 0.6); }
    70%  { box-shadow: 0 0 0 14px rgba(228, 203, 146, 0), 0 14px 30px -14px rgba(199, 166, 103, 0.6); }
    100% { box-shadow: 0 0 0 0 rgba(228, 203, 146, 0), 0 14px 30px -14px rgba(199, 166, 103, 0.6); }
}
.cqfs .btn-search.is-ready {
    animation: cqfs-ready-pulse 1.8s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .cqfs .btn-search.is-ready { animation: none; }
}

/* Under the flights service hero: breathing room before the page content. */
.single-service-hero + .cqfs {
    margin-bottom: 2.5rem;
}

/* Keep the airport dropdown above whatever section follows the search bar
 * (on the flights service page the content section painted over it). */
.cqfs {
    z-index: 20;
}
.cqfs .combo-menu,
.cqfs-backdrop .combo-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 74, 0.5) transparent;
}
