/**
 * Flighta — "Your bookings" lookup (product → email → verification code).
 *
 * The page used to be a fixed full-screen overlay on a grey scrim, with no header or footer: it read
 * as a modal that had lost its page. It is a real page in the site chrome now, so everything here is
 * normal document flow.
 *
 * Prefix is `fmb-`, not `mb-`: Bootstrap ships `.mb-*` margin utilities and the B2C layout loads it.
 */
@import url("https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&display=swap");

.fmb-page {
    --fmb-maroon: #531724;
    --fmb-maroon-dark: #3F101B;
    --fmb-maroon-soft: rgba(83, 23, 36, .06);
    --fmb-ink: #1F2430;
    --fmb-ink-2: #566070;
    --fmb-muted: #8A93A2;
    --fmb-border: #E3E7ED;
    --fmb-bg: #F7F8FA;
    --fmb-danger: #C02B2B;
    --fmb-success: #1B7F4B;
    --fmb-font: "Titillium Web", "Cairo", "Segoe UI", sans-serif;

    min-height: 58vh;
    padding: 56px 16px 80px;
    background: var(--fmb-bg);
    font-family: var(--fmb-font);
    color: var(--fmb-ink);
}

.fmb-page *, .fmb-page *::before, .fmb-page *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------- heading */

.fmb-head { max-width: 620px; margin: 0 auto 26px; text-align: center; }

.fmb-eyebrow {
    margin: 0 0 6px;
    font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--fmb-maroon); opacity: .75;
}

.fmb-title { margin: 0 0 12px; font-size: 34px; font-weight: 700; line-height: 1.18; color: var(--fmb-maroon); }
.fmb-lede  { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--fmb-ink-2); }

/* ---------------------------------------------------------------- stepper */

/* Three steps, so saying where you are costs little and removes the "how much more
   of this is there" question before the traveller has given an email address. */
.fmb-steps {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    max-width: 620px; margin: 0 auto 22px; padding: 0; list-style: none;
}

.fmb-step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fmb-muted); }

.fmb-step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    border: 1.5px solid var(--fmb-border); background: #fff;
    font-size: 12.5px; font-weight: 700; color: var(--fmb-muted);
}

.fmb-step.is-active { color: var(--fmb-ink); font-weight: 600; }
.fmb-step.is-active .fmb-step__num { border-color: var(--fmb-maroon); background: var(--fmb-maroon); color: #fff; }
.fmb-step.is-done .fmb-step__num { border-color: var(--fmb-success); background: var(--fmb-success); color: #fff; }

.fmb-step__rule { width: 26px; height: 1.5px; background: var(--fmb-border); }

@media (max-width: 575.98px) {
    .fmb-step__label { display: none; }
    .fmb-steps { gap: 6px; }
}

/* ------------------------------------------------------------------- card */

.fmb-card {
    max-width: 620px; margin: 0 auto; padding: 32px 36px 34px;
    border: 1px solid var(--fmb-border); border-radius: 22px; background: #fff;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .06);
}

.fmb-card h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; color: var(--fmb-ink); }
.fmb-card > .fmb-step-body > p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--fmb-ink-2); }

/* Only one step is in the document at a time. */
.verification-step { display: none; }
.verification-step.active { display: block; }

/* --------------------------------------------------------- product chooser */

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
/* Four cards in a three-column grid leave the fourth stranded on a row of its own, which is what
   adding Requests did. Two by two reads better - and because this is written as an override, a
   browser without :has() simply keeps the three-across layout rather than losing the grid. */
.product-grid:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 575.98px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    padding: 26px 14px; border: 1.5px solid var(--fmb-border); border-radius: 16px;
    background: #fff; color: var(--fmb-ink);
    font-family: inherit; font-size: 14.5px; font-weight: 600; text-align: center;
    cursor: pointer;
    transition: border-color .18s, background .18s, transform .12s, box-shadow .18s;
}

/* Inline SVG rather than an icon font: the old markup used `fa-jet-fighter-up`, a Font Awesome 6
   name, while B2C ships Font Awesome 5 — so the Private Jet card rendered with no icon at all.
   These cannot silently disappear when the icon set changes. */
.product-card svg { width: 30px; height: 30px; color: var(--fmb-maroon); }

.product-card:hover,
.product-card:focus-visible {
    border-color: var(--fmb-maroon);
    background: #FDF8F9;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -14px rgba(83, 23, 36, .55);
    outline: none;
}

.product-card.is-chosen { border-color: var(--fmb-maroon); background: var(--fmb-maroon-soft); }

/* ----------------------------------------------------------------- fields */

.form-group { margin-bottom: 18px; }

.fmb-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--fmb-ink-2); }

.fmb-card .form-control {
    width: 100%; min-height: 50px; padding: 12px 15px;
    border: 1px solid var(--fmb-border); border-radius: 11px; background: #fff;
    font-family: inherit; font-size: 15.5px; color: var(--fmb-ink);
    transition: border-color .15s, box-shadow .15s;
}

.fmb-card .form-control::placeholder { color: var(--fmb-muted); }

.fmb-card .form-control:focus {
    outline: none; border-color: var(--fmb-maroon); box-shadow: 0 0 0 3px var(--fmb-maroon-soft);
}

/* The 6-digit code reads as digits, not prose. */
#codeInput {
    text-align: center; font-size: 26px; font-weight: 700; letter-spacing: 10px; text-indent: 10px;
}

.fmb-card .btn-submit {
    width: 100%; min-height: 52px; padding: 14px 24px;
    border: 0; border-radius: 999px; background: var(--fmb-maroon);
    font-family: inherit; font-size: 16px; font-weight: 700; color: #fff; cursor: pointer;
    box-shadow: 0 8px 22px rgba(83, 23, 36, .24);
    transition: background .15s, box-shadow .15s, transform .05s;
}

.fmb-card .btn-submit:hover { background: var(--fmb-maroon-dark); box-shadow: 0 10px 26px rgba(83, 23, 36, .3); }
.fmb-card .btn-submit:active { transform: translateY(1px); }
.fmb-card .btn-submit:disabled { opacity: .62; cursor: progress; box-shadow: none; }

/* --------------------------------------------------------------- feedback */

.text-danger  { margin-top: 7px; font-size: 13px; font-weight: 600; color: var(--fmb-danger); }
.text-success { margin-top: 7px; font-size: 13px; font-weight: 600; color: var(--fmb-success); }

.resend-link {
    display: inline-block; margin-top: 12px;
    font-size: 13.5px; font-weight: 600; color: var(--fmb-maroon);
    text-decoration: underline; cursor: pointer;
}
.resend-link:hover { color: var(--fmb-maroon-dark); }

.step-back {
    display: inline-block; margin-top: 16px; padding: 0;
    border: 0; background: none;
    font-family: inherit; font-size: 13.5px; color: var(--fmb-ink-2);
    text-decoration: underline; cursor: pointer;
}
.step-back:hover { color: var(--fmb-maroon); }

.fmb-sent-to {
    display: block; margin-top: 2px;
    font-weight: 700; color: var(--fmb-ink); word-break: break-word;
}

.fmb-foot-note { margin: 18px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--fmb-muted); text-align: center; }

/* ------------------------------------------------------------------ small */

@media (max-width: 575.98px) {
    .fmb-page  { padding: 34px 12px 56px; }
    .fmb-title { font-size: 26px; }
    .fmb-card  { padding: 22px 18px 26px; border-radius: 18px; }
}
