* {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #172033;
}


header {
    background: #102a43;
    color: white;
    padding: 20px 40px;
}


.header-content {
    max-width: 1250px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.brand {
    font-size: 28px;
    font-weight: 700;
}


.tagline {
    margin-top: 4px;
    color: #d7e3ef;
}


.header-booking {
    text-align: right;
    font-size: 14px;
}


.progress-wrapper {
    background: white;
    border-bottom: 1px solid #d9e2ec;
    position: sticky;
    top: 0;
    z-index: 20;
}


.progress-bar {
    max-width: 1100px;
    margin: auto;
    padding: 14px 20px;

    display: flex;
    justify-content: space-between;
    gap: 10px;
}


.step-indicator {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #829ab1;
    font-size: 13px;
    font-weight: 700;
}


.step-indicator.active {
    color: #0f62fe;
}


.step-indicator.complete {
    color: #14804a;
}


main {
    max-width: 1200px;
    margin: 28px auto;
    padding: 0 20px;
}


.screen {
    background: white;
    border-radius: 14px;
    padding: 32px;

    min-height: 500px;

    box-shadow:
        0 5px 22px
        rgba(0, 0, 0, 0.07);
}


h1,
h2,
h3 {
    margin-top: 0;
}


.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}


.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}


label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}


input,
select {
    width: 100%;
    padding: 13px;

    border: 1px solid #bcccdc;
    border-radius: 8px;

    font-size: 16px;
    background: white;
}


button {
    border: 0;
    border-radius: 8px;
    padding: 13px 22px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}


.primary {
    background: #0f62fe;
    color: white;
}


.success-button {
    background: #14804a;
    color: white;
}


.secondary {
    background: #eaf2f8;
    color: #102a43;
}


.actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}


.error {
    color: #b42318;
    font-weight: 700;
}


.success {
    color: #14804a;
    font-weight: 700;
}


.hidden {
    display: none;
}



/* SUMMARY */

.trip-summary {
    background: #102a43;
    color: white;

    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 18px;

    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}


.trip-summary strong {
    display: block;
}


.trip-summary small {
    color: #bcccdc;
}



/* OFFERS */

.flight-card {
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}


.flight-header {
    padding: 18px;
    background: #eaf2f8;

    display: flex;
    justify-content: space-between;
}


.flight-number {
    font-size: 20px;
    font-weight: 700;
}


.offer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}


.offer-card {
    padding: 20px;
    border-right: 1px solid #d9e2ec;
}


.offer-card:last-child {
    border-right: 0;
}


.offer-price {
    color: #0f62fe;
    font-size: 25px;
    font-weight: 700;
    margin: 12px 0;
}


.offer-card button {
    width: 100%;
    margin-top: 15px;

    background: #102a43;
    color: white;
}



/* PAYMENT */

.confirmation {
    background: #e7f7ed;
    border: 1px solid #8fd19e;
    border-radius: 12px;
    padding: 28px;
}


.payment-box {
    background: #eef4ff;
    border: 1px solid #a8c4ff;
    border-radius: 12px;
    padding: 22px;
    margin-top: 20px;
}



/* SEAT MAP */

.seat-map-screen { min-height:0; padding:22px 28px; }
.seat-map-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:12px; }
.seat-map-heading h1, .seat-map-heading p { margin:0; }
.seat-map-workspace { display:grid; grid-template-columns:minmax(560px,1fr) 270px; gap:22px; align-items:start; }
.seat-map-sidebar { display:flex; flex-direction:column; gap:14px; }
.seat-legend, .seat-details-placeholder { padding:16px; border:1px solid #d9e2ec; border-radius:12px; background:#f8fafc; }
.seat-legend h3, .seat-details-placeholder h3 { margin-bottom:10px; }
.seat-legend span { display:flex; align-items:center; gap:8px; margin-top:8px; font-size:13px; }
.legend-swatch { width:18px; height:18px; border:2px solid #829ab1; border-radius:5px; background:white; }
.legend-swatch.business { background:#fff7e6; border-color:#d49b22; }
.legend-swatch.occupied { background:#d9e2ec; }
.legend-swatch.selected { background:#d9f2e6; border-color:#14804a; }

.aircraft {
    max-width: 760px;
    margin: 0 auto;

    border: 2px solid #bcccdc;

    border-radius:
        70px 70px 20px 20px;

    background: #f8fafc;
    padding: 18px 22px 14px;
}


.aircraft-front {
    text-align: center;
    font-weight: 700;
    color: #627d98;
    margin-bottom: 12px;
}


.seat-row {
    display: grid;

    grid-template-columns:
        42px
        82px
        82px
        46px
        82px;

    gap: 8px;

    justify-content: center;
    align-items: center;

    margin-bottom: 6px;
}


.row-number {
    font-weight: 700;
}


.aisle {
    text-align: center;
    color: #829ab1;
    font-size: 11px;
}


.seat {
    border: 2px solid #829ab1;
    border-radius: 10px;

    padding: 4px 6px;
    min-height: 49px;

    text-align: center;
    cursor: pointer;

    background: white;
}


.seat.business {
    background: #fff7e6;
    border-color: #d49b22;
}


.seat.occupied {
    background: #d9e2ec;
    color: #829ab1;
    cursor: not-allowed;
}


.seat.selected {
    background: #d9f2e6;
    border-color: #14804a;
}


.seat.current {
    background: #dbeafe;
    border-color: #0f62fe;
}


.seat-price {
    color: #0f62fe;
    font-size: 13px;
    font-weight: 700;
}


.seat-type {
    color: #627d98;
    font-size: 11px;
}


.seat-selection-box {
    margin-top: 0;
    padding: 16px;

    background: #eef4ff;

    border: 1px solid #a8c4ff;
    border-radius: 12px;
}

.seat-selection-box p { margin:7px 0; }
.seat-selection-box button { width:100%; margin-top:8px; }



/* =====================================================
   AIRLINE BOARDING PASS
   ===================================================== */

.boarding-pass-shell {
    max-width: 1000px;
    margin: 0 auto;
}

.boarding-pass-screen { min-height:0; padding:18px; }

.boarding-pass-screen {
    display: flex;
    flex-direction: column;
}

.boarding-pass-screen .boarding-actions {
    width: 100%;
    margin: 0 auto 10px;
}

.boarding-email-status {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.boarding-email-status span {
    display: block;
    margin-top: 4px;
}

.boarding-email-status.email-sent {
    border: 1px solid #8bd5a8;
    background: #e7f7ed;
    color: #11643a;
}

.boarding-email-status.email-failed {
    border: 1px solid #f0a8a8;
    background: #fff0f0;
    color: #9b1c1c;
}

/* Keep the complete desktop boarding pass and its controls in one viewport. */
@media (min-width: 851px) {
    body.boarding-mode > header,
    body.boarding-mode > .progress-wrapper {
        display: none;
    }

    body.boarding-mode main {
        margin: 8px auto;
    }

    body.boarding-mode .boarding-pass-screen {
        padding: 8px;
    }

    body.boarding-mode .boarding-actions {
        padding: 5px;
        margin-bottom: 6px;
    }

    body.boarding-mode .boarding-actions button {
        padding: 9px 16px;
    }

    body.boarding-mode .boarding-email-status {
        margin-bottom: 6px;
        padding: 6px 10px;
    }

    body.boarding-mode .bp-main-header {
        height: 45px;
        padding: 6px 18px;
    }

    body.boarding-mode .bp-route-row {
        padding: 8px 20px;
    }

    body.boarding-mode .bp-airport {
        font-size: 30px;
    }

    body.boarding-mode .bp-city {
        margin-top: 2px;
        font-size: 10px;
    }

    body.boarding-mode .bp-primary-grid,
    body.boarding-mode .bp-operational-grid {
        padding: 8px 20px;
    }

    body.boarding-mode .bp-reference-row {
        padding: 7px 20px;
    }

    body.boarding-mode .bp-barcode-section {
        padding: 7px 20px 6px;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
    }

    body.boarding-mode .bp-qr-image {
        width: 88px;
        height: 88px;
    }

    body.boarding-mode .bp-qr-caption {
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.15;
    }

    body.boarding-mode .bp-barcode {
        min-height: 42px;
        max-height: 62px;
        overflow: hidden;
    }

    body.boarding-mode .bp-barcode-value {
        margin-top: 2px;
        font-size: 10px;
    }

    body.boarding-mode .bp-stub-header {
        padding: 8px 15px;
    }

    body.boarding-mode .bp-stub-body {
        padding: 9px 15px;
        gap: 5px;
    }

    body.boarding-mode .bp-stub-route {
        font-size: 18px;
    }

    body.boarding-mode .bp-stub-big strong {
        font-size: 20px;
    }

    body.boarding-mode .bp-stub-footer {
        padding: 6px 15px;
    }
}


.boarding-pass {
    width: 100%;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 245px;

    background: #ffffff;

    border: 1px solid #b8c7d6;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 12px 32px
        rgba(15, 42, 67, 0.16);
}



/* MAIN TICKET */

.bp-main {
    min-width: 0;
}


.bp-main-header {
    height: 58px;

    padding: 10px 22px;

    background: #102a43;
    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


.bp-brand {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.4px;
}


.bp-document-title {
    margin-top: 3px;

    font-size: 12px;
    letter-spacing: 2.5px;

    color: #c7d7e5;
}


.bp-issued {
    padding: 7px 13px;

    border-radius: 18px;

    background: #14804a;

    border: 1px solid #7bd3a7;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.5px;
}



/* ROUTE */

.bp-route-row {
    padding: 14px 24px;

    display: grid;

    grid-template-columns:
        1fr
        70px
        1fr;

    align-items: center;

    border-bottom:
        1px dashed #bdcad6;
}


.bp-airport-block {
    min-width: 0;
}


.bp-airport-block.destination {
    text-align: right;
}


.bp-label {
    display: block;

    margin-bottom: 4px;

    color: #71869b;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.2px;
}


.bp-airport {
    font-size: 36px;
    line-height: 1;

    font-weight: 800;

    color: #102a43;
}


.bp-city {
    margin-top: 4px;

    color: #627d98;

    font-size: 12px;
}


.bp-plane {
    text-align: center;

    color: #0f62fe;

    font-size: 26px;
}



/* PRIMARY TRAVEL INFORMATION */

.bp-primary-grid {
    padding: 13px 24px;

    display: grid;

    grid-template-columns:
        1.7fr
        0.8fr
        1fr
        0.75fr;

    gap: 22px;

    border-bottom:
        1px dashed #bdcad6;
}


.bp-field strong {
    display: block;

    color: #102a43;

    font-size: 16px;
}


.bp-emphasis strong {
    font-size: 22px;

    color: #0f62fe;
}



/* OPERATIONAL FIELDS */

.bp-operational-grid {
    padding: 12px 24px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    border-bottom:
        1px dashed #bdcad6;
}


.bp-operational-grid strong {
    font-size: 18px;
}



/* REFERENCE INFO */

.bp-reference-row {
    padding: 10px 24px;

    display: grid;

    grid-template-columns:
        1fr
        1.5fr
        1fr;

    gap: 20px;

    background: #f8fafc;

    border-bottom:
        1px dashed #bdcad6;
}


.bp-reference-row strong {
    display: block;

    color: #102a43;

    font-size: 13px;

    word-break: break-word;
}



/* BARCODE */

.bp-barcode-section {
    padding: 10px 24px 9px;
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    text-align: center;

    background: white;
}

.main-nav { background:#071f33; border-top:1px solid rgba(255,255,255,.12); }
.main-nav-inner { max-width:1250px; margin:auto; padding:0 28px; display:flex; gap:4px; overflow-x:auto; }
.nav-link { flex:0 0 auto; padding:16px 15px 13px; border-radius:0; border-bottom:3px solid transparent; background:transparent; color:#d7e3ef; }
.nav-link:hover, .nav-link.active { color:white; border-bottom-color:#36c2b4; }


.bp-qr-block {
    grid-row: span 2;
}


.bp-qr-image {
    display: block;
    width: 110px;
    height: 110px;
    margin: 0 auto;
    border-radius: 10px;
}


.bp-qr-caption {
    margin-top: 8px;
    color: #486581;
    font-size: 12px;
}


.bp-barcode {
    width: 100%;

    min-height: 60px;

    display: flex;
    justify-content: center;
    align-items: center;
}


.bp-barcode svg {
    max-width: 100%;
}


.bp-barcode-value {
    margin-top: 7px;

    color: #486581;

    font-family:
        "Courier New",
        monospace;

    font-size: 11px;

    letter-spacing: 0.4px;
}



/* RIGHT STUB */

.bp-stub {
    position: relative;

    border-left:
        2px dashed #9fb1c2;

    background: #eef4ff;

    display: flex;
    flex-direction: column;
}


.bp-stub::before,
.bp-stub::after {
    content: "";

    position: absolute;

    left: -11px;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    background: #f4f7fb;
}


.bp-stub::before {
    top: -10px;
}


.bp-stub::after {
    bottom: -10px;
}


.bp-stub-header {
    padding: 13px 17px;

    background: #0f62fe;

    color: white;
}


.bp-stub-airline {
    font-size: 15px;
    font-weight: 800;
}


.bp-stub-title {
    margin-top: 3px;

    font-size: 10px;

    letter-spacing: 1.5px;

    opacity: 0.85;
}


.bp-stub-body {
    padding: 14px 17px;

    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 10px;
}


.bp-stub-route {
    font-size: 21px;
    font-weight: 800;

    color: #102a43;
}


.bp-stub-field strong {
    display: block;

    margin-top: 2px;

    font-size: 15px;

    color: #102a43;
}


.bp-stub-big strong {
    font-size: 24px;
    color: #0f62fe;
}


.bp-stub-footer {
    padding: 10px 17px;

    border-top:
        1px solid #c9d7e5;

    color: #486581;

    font-size: 11px;
}



/* BUTTON AREA */

.boarding-actions {
    max-width: 1000px;

    margin:
        18px auto 0;

    position: static;
    padding: 8px;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 4px 12px rgba(16,42,67,.10);
    justify-content: flex-end;
}



/* PRINTING */

@media print {

    body {
        background: white;
    }


    header,
    .progress-wrapper,
    #journeySummary,
    .boarding-actions {
        display: none !important;
    }


    main,
.screen {
        margin: 0;
        padding: 0;

        max-width: none;

        min-height: 0;

        box-shadow: none;

        background: white;
    }


    .boarding-pass-shell {
        max-width: none;
    }


    .boarding-pass {
        box-shadow: none;

        border:
            1px solid #555;

        break-inside: avoid;
    }


    .bp-stub::before,
    .bp-stub::after {
        background: white;
    }

}



/* MOBILE */

@media(max-width: 850px) {

    header {
        padding: 16px 20px;
    }

    .screen {
        padding: 18px;
    }

    .main-nav-inner { padding:0 10px; }
    main { margin-top:16px; padding:0 10px; }
    .search-hero, .module-intro { margin:-18px -18px 22px; padding:28px 22px; }
    .feature-grid, .status-card { grid-template-columns:1fr; }
    .seat-map-workspace { grid-template-columns:1fr; }
    .seat-map-heading { align-items:flex-start; flex-direction:column; }
    .aircraft { overflow-x:auto; padding:25px 12px; }
    .bp-barcode-section { grid-template-columns:1fr; }
    .bp-qr-block { grid-row:auto; }
    .bp-qr-image { width:132px; height:132px; }
    .results-navigation { align-items:stretch; }
    .result-pager { flex:1; }
    .result-pager button { flex:1; }

    .grid-2,
    .grid-3,
    .offer-grid {
        grid-template-columns: 1fr;
    }


    .progress-bar {
        overflow-x: auto;
    }


    .step-indicator span {
        display: none;
    }


    .seat-row {
        grid-template-columns:
            35px
            70px
            70px
            35px
            70px;

        gap: 5px;
    }


    .boarding-pass {
        grid-template-columns: 1fr;
    }


    .boarding-actions {
        flex-direction: column;
        order: 0;
        margin-top: 12px;
    }


    .boarding-actions button {
        width: 100%;
    }


    .bp-stub {
        border-left: 0;

        border-top:
            2px dashed #9fb1c2;
    }


    .bp-stub::before,
    .bp-stub::after {
        display: none;
    }


    .bp-primary-grid,
    .bp-operational-grid {
        grid-template-columns:
            1fr 1fr;
    }


    .bp-reference-row {
        grid-template-columns: 1fr;
    }


    .bp-route-row {
        grid-template-columns:
            1fr
            55px
            1fr;

        padding:
            20px 18px;
    }


    .bp-airport {
        font-size: 34px;
    }

}

.search-hero, .module-intro { margin:-32px -32px 28px; padding:38px 38px 34px; border-radius:14px 14px 0 0; background:linear-gradient(120deg,#071f33,#124b62); color:white; }
.search-hero h1, .module-intro h1 { margin-bottom:8px; font-size:clamp(30px,4vw,48px); }
.search-hero p:last-child, .module-intro p:last-child { max-width:720px; color:#d7e3ef; }
.eyebrow { margin:0 0 8px; color:#36c2b4; font-size:12px; font-weight:800; letter-spacing:1.6px; }
.search-options { display:flex; gap:24px; margin-bottom:22px; flex-wrap:wrap; }
.search-options label { display:flex; align-items:center; gap:8px; margin:0; }
.search-options input { width:auto; }
.future-tag { padding:3px 7px; border-radius:12px; background:#eaf2f8; color:#486581; font-size:10px; }
.search-actions .primary { min-width:190px; }
.lookup-card { padding:24px; border:1px solid #d9e2ec; border-radius:12px; background:#f8fafc; }
.results-heading, .results-navigation, .result-pager { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.results-heading h1 { margin-bottom:20px; }
.results-navigation { position:sticky; bottom:12px; z-index:12; padding:12px; border:1px solid #d9e2ec; border-radius:12px; background:rgba(255,255,255,.96); box-shadow:0 6px 20px rgba(16,42,67,.12); }
button:disabled { cursor:not-allowed; opacity:.45; }
.empty-state { padding:42px 24px; border:1px dashed #9fb3c8; border-radius:12px; text-align:center; }
.status-card { display:grid; grid-template-columns:1.5fr 1fr 1fr .6fr; gap:20px; align-items:center; margin-top:20px; padding:22px; border:1px solid #d9e2ec; border-radius:12px; }
.status-card strong, .status-card small { display:block; }
.status-pill { display:inline-block; padding:4px 8px; border-radius:20px; background:#e7f7ed; color:#14804a; font-size:11px; font-weight:800; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.feature-card { padding:24px; border:1px solid #d9e2ec; border-radius:12px; background:#f8fafc; }
