/**
 * Flighta - Low Cost Reservation.
 *
 * Rebuilt from the original Figma-traced sheet when the page gained a real backend. The brand tokens
 * are unchanged (maroon #531724, Titillium Web); what changed is the structure: the form is grouped
 * into labelled sections with real <label>s instead of placeholder-only fields, and it now has error,
 * hint and success states to render.
 *
 * Loaded only by b2c/low_cost_reservation.blade.php; every class is prefixed `lc-`.
 */
@import url("https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&display=swap");

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

    padding: 56px 16px 80px;
    background: var(--lc-bg);
    font-family: var(--lc-font);
    color: var(--lc-ink);
}

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

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

.lc-head {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

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

.lc-title {
    margin: 0 0 14px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--lc-maroon);
}

.lc-lede {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--lc-ink-2);
}

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

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

/* ---------------------------------------------------------------- section */

.lc-section + .lc-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--lc-border);
}

.lc-section__title {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 700;
    color: var(--lc-ink);
}

/* Two columns that collapse on their own - the card's width decides, not the viewport,
   so the form reflows correctly wherever it is placed. */
.lc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px 22px;
}

.lc-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

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

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

.lc-req { color: var(--lc-danger); }

.lc-field {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--lc-border);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: var(--lc-ink);
    transition: border-color .15s, box-shadow .15s;
}

.lc-field::placeholder { color: var(--lc-muted); }

.lc-field:focus {
    outline: none;
    border-color: var(--lc-maroon);
    box-shadow: 0 0 0 3px var(--lc-maroon-soft);
}

.lc-field.is-invalid { border-color: var(--lc-danger); }

.lc-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.lc-hint {
    margin-top: 5px;
    font-size: 12.5px;
    color: var(--lc-muted);
}

.lc-error {
    margin-top: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lc-danger);
}

/* ------------------------------------------------------------------ phone */

/* One control made of two: the border lives on the wrapper so the dial code and the
   number read as a single field rather than two that happen to be adjacent. */
.lc-phone {
    display: flex;
    align-items: stretch;
    min-height: 48px;
    border: 1px solid var(--lc-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.lc-phone:focus-within {
    border-color: var(--lc-maroon);
    box-shadow: 0 0 0 3px var(--lc-maroon-soft);
}

.lc-phone.is-invalid { border-color: var(--lc-danger); }

.lc-phone__code {
    flex: 0 0 132px;
    max-width: 132px;
    padding: 0 8px 0 12px;
    border: 0;
    border-inline-end: 1px solid var(--lc-border);
    background: #FAFBFC;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--lc-ink-2);
}

.lc-phone__code:focus { outline: none; }

.lc-phone__number {
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 14px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: var(--lc-ink);
}

.lc-phone__number:focus { outline: none; }
.lc-phone__number::placeholder { color: var(--lc-muted); }

/* --------------------------------------------------------------- counters */

.lc-counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px 22px;
}

.lc-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--lc-border);
    border-radius: 12px;
    background: #FCFCFD;
}

.lc-counter__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lc-counter__label {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--lc-ink);
}

.lc-counter__note {
    font-size: 12px;
    color: var(--lc-muted);
}

.lc-counter__box {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--lc-border);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.lc-counter__btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    font-size: 17px;
    line-height: 1;
    color: var(--lc-maroon);
    cursor: pointer;
    transition: background .15s;
}

.lc-counter__btn:hover { background: var(--lc-maroon-soft); }

.lc-counter__box input {
    width: 44px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: var(--lc-ink);
    -moz-appearance: textfield;
}

.lc-counter__box input::-webkit-outer-spin-button,
.lc-counter__box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lc-counter__box input:focus { outline: none; }

/* ---------------------------------------------------------------- actions */

.lc-actions {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--lc-border);
    text-align: center;
}

.lc-submit {
    min-width: 260px;
    min-height: 52px;
    padding: 14px 40px;
    border: 0;
    border-radius: 999px;
    background: var(--lc-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;
}

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

.lc-actions__note {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: var(--lc-muted);
}

/* ----------------------------------------------------------------- alerts */

.lc-alert {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid rgba(192, 43, 43, .28);
    border-radius: 12px;
    background: rgba(192, 43, 43, .05);
    font-size: 14px;
    color: var(--lc-danger);
}

.lc-alert ul { margin: 8px 0 0; padding-inline-start: 20px; }
.lc-alert li { margin-top: 3px; }

/* ---------------------------------------------------------------- success */

.lc-card--done { max-width: 620px; text-align: center; }

.lc-done__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(27, 127, 75, .1);
    font-size: 26px;
    color: var(--lc-success);
}

.lc-done__title { margin: 0 0 10px; font-size: 24px; font-weight: 700; color: var(--lc-ink); }
.lc-done__body  { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--lc-ink-2); }
/* The address is data, not prose - keep it on one line and let it scroll rather than hyphenate. */
.lc-done__to { font-weight: 600; color: var(--lc-ink); overflow-wrap: anywhere; }

/* ---- reference ---------------------------------------------------------- */

/* Its own block, not an inline chip. The chip and the "send another" link were both
   inline-block inside a centred card, so they sat on the same line and read as one control. */
.lc-ref {
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px dashed var(--lc-maroon-line);
    border-radius: 12px;
    background: var(--lc-maroon-soft);
}
.lc-ref__label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lc-ink-2);
}
.lc-ref__row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.lc-ref__value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--lc-maroon);
    /* A reference is read back character by character; never let it wrap mid-token. */
    white-space: nowrap;
}
.lc-ref__copy {
    padding: 7px 14px;
    border: 1px solid var(--lc-maroon-line);
    border-radius: 8px;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--lc-maroon);
    cursor: pointer;
}
.lc-ref__copy:hover { background: var(--lc-maroon-soft); }
.lc-ref__copy.is-done { border-color: var(--lc-success); color: var(--lc-success); }

/* ---- what happens next --------------------------------------------------- */
.lc-next {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    /* Left-aligned inside a centred card: a numbered sequence that is centre-aligned has no
       common edge to follow, so the steps stop reading as steps. */
    text-align: start;
}
.lc-next li { display: flex; align-items: flex-start; gap: 11px; }
.lc-next li + li { margin-top: 11px; }
.lc-next__no {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--lc-maroon-soft);
    font-size: 12.5px; font-weight: 700; color: var(--lc-maroon);
}
.lc-next__text { font-size: 14.5px; line-height: 1.55; color: var(--lc-ink-2); }

/* ---- actions ------------------------------------------------------------- */
.lc-done__actions {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--lc-border);
}
.lc-done__track {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 22px;
    border-radius: 10px;
    background: var(--lc-maroon);
    font-size: 14.5px; font-weight: 600; color: #FFFFFF;
    text-decoration: none;
}
.lc-done__track:hover { filter: brightness(1.08); color: #FFFFFF; }
.lc-done__again {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--lc-maroon);
    text-decoration: underline;
}

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

@media (max-width: 767.98px) {
    .lc-page  { padding: 36px 12px 56px; }
    .lc-title { font-size: 30px; }
    .lc-card  { padding: 24px 18px 28px; border-radius: 18px; }
    .lc-submit { width: 100%; min-width: 0; }
    .lc-phone__code { flex-basis: 108px; max-width: 108px; }
}

/* -------------------------------------------------------------- trip type */

/* Hidden by the trip type (one way / round trip / multi-city). .lc-group sets display:flex,
   which would otherwise win over the [hidden] attribute. */
.lc-page [hidden] { display: none !important; }

.lc-trip {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 18px;
    padding: 4px;
    border: 1px solid var(--lc-border);
    border-radius: 999px;
    background: #fff;
}

.lc-trip__option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.lc-trip__option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.lc-trip__option span {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lc-ink-2);
    transition: background .15s, color .15s;
}

.lc-trip__option input:checked + span {
    background: var(--lc-maroon);
    color: #fff;
}

.lc-trip__option input:focus-visible + span { box-shadow: 0 0 0 3px var(--lc-maroon-soft); }

/* ------------------------------------------------------- multi-city legs */

.lc-leg-title {
    margin: 0 0 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--lc-maroon);
}

.lc-leg {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--lc-border);
}

.lc-leg__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.lc-leg__head .lc-leg-title { margin: 0; }

.lc-leg-add,
.lc-leg-remove {
    padding: 7px 16px;
    border: 1px solid var(--lc-maroon-line);
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--lc-maroon);
    cursor: pointer;
    transition: background .15s;
}

.lc-leg-add:hover,
.lc-leg-remove:hover { background: var(--lc-maroon-soft); }

.lc-leg-add { margin-top: 18px; }
