/* ════════════════════════════════════════════════════════════
   CHECK STATUS — premium "boarding pass" tracker
   Shared by Flight / Hotel / Visa / Charter / Transfer / Tour
   CheckStatus.cshtml views. Class prefix "fs-" (from "Flight
   Status", the first service it was built for) is kept across
   all services so the CSS doesn't need renaming per view.
═══════════════════════════════════════════════════════════════ */
.fs-page {
    --fs-navy: #002070;
    --fs-blue: #048ED3;
    --fs-amber: #F3A316;
    --fs-ink: #1a1b13;
    --fs-muted: #6b6c5e;
    --fs-bg: #f6f5f1;
    font-family: var(--font, 'Montserrat', sans-serif);
    background: var(--fs-bg);
    min-height: 60vh;
    padding-bottom: 72px;
}

/* ── Hero + search ── */
.fs-hero {
    position: relative;
    background: linear-gradient(135deg, #002070 0%, #048ED3 100%);
    padding: 64px 20px 108px;
    overflow: hidden;
    text-align: center;
}
.fs-hero::after {
    content: "";
    position: absolute;
    bottom: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(243, 163, 22, 0.16) 0%, transparent 62%);
    pointer-events: none;
}
.fs-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.fs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.fs-hero h1 {
    color: #fff;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}
.fs-hero h1 .hl { color: var(--fs-amber); }
.fs-hero p { color: rgba(255, 255, 255, 0.82); font-size: 15px; margin: 0; }

/* search pill */
.fs-search {
    position: relative;
    z-index: 3;
    max-width: 640px;
    margin: 26px auto 0;
    display: flex;
    background: #fff;
    border-radius: 100px;
    padding: 7px;
    box-shadow: 0 22px 60px rgba(0, 10, 40, 0.35);
}
.fs-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 14px 12px 22px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--fs-ink);
    font-family: inherit;
    min-width: 0;
    text-transform: uppercase;
}
.fs-search input::placeholder { color: #a9aa9e; font-weight: 600; text-transform: none; letter-spacing: 0; }
.fs-search button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: var(--fs-amber);
    color: var(--fs-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}
.fs-search button:hover { background: #d4880e; transform: translateY(-1px); }

.fs-error {
    max-width: 640px;
    margin: 18px auto 0;
    position: relative;
    z-index: 3;
    background: rgba(220, 38, 38, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 14px;
    padding: 13px 18px;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}
.fs-error i { color: #ffb4b4; }

/* ── Boarding pass card ── */
.fs-pass-wrap { max-width: 880px; margin: -58px auto 0; padding: 0 20px; position: relative; z-index: 5; }
.fs-pass {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 15, 60, 0.16);
    overflow: hidden;
}

/* header strip */
.fs-pass-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 28px;
    background: var(--fs-navy);
    color: #fff;
}
.fs-pass-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    font-size: 15px;
}
.fs-pass-brand i { color: var(--fs-amber); }
.fs-pass-brand small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}
.fs-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.fs-status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fs-status-pill.confirmed, .fs-status-pill.completed, .fs-status-pill.ticketed, .fs-status-pill.approved { background: rgba(34, 197, 94, 0.18); color: #6ee7a0; }
.fs-status-pill.in-progress, .fs-status-pill.awaiting, .fs-status-pill.review, .fs-status-pill.on-hold { background: rgba(243, 163, 22, 0.2); color: #ffd58a; }
.fs-status-pill.pending { background: rgba(255, 255, 255, 0.14); color: #dbe3f5; }
.fs-status-pill.cancelled, .fs-status-pill.rejected, .fs-status-pill.discontinued { background: rgba(239, 68, 68, 0.2); color: #ffa7a7; }
.fs-status-pill .dot { animation: fs-blink 1.8s ease-in-out infinite; }
@keyframes fs-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* route block */
.fs-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 34px 40px 26px;
}
.fs-route-point { text-align: center; min-width: 96px; }
.fs-route-point .code {
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 900;
    letter-spacing: 0.01em;
    color: var(--fs-ink);
    line-height: 1;
}
.fs-route-point .lbl {
    margin-top: 7px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fs-muted);
}
.fs-route-point .sub {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--fs-muted);
    max-width: 150px;
    line-height: 1.35;
}
.fs-route-path { flex: 1; position: relative; height: 40px; }
.fs-route-path .line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
    background-image: repeating-linear-gradient(90deg, #c9d4ea 0 8px, transparent 8px 16px);
    background-size: 32px 2px;
    animation: fs-line-flow 1.4s linear infinite;
}
@keyframes fs-line-flow {
    to { background-position: -32px 0; }
}
.fs-route-path .plane {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 2px solid var(--fs-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fs-blue);
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(4, 142, 211, 0.25);
    animation: fs-plane-bob 2.4s ease-in-out infinite;
}
@keyframes fs-plane-bob {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-4px); }
}
.fs-route-path .plane i { transform: rotate(45deg); margin-left: 2px; margin-bottom: 2px; }
.fs-route-path .dot-a, .fs-route-path .dot-b {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--fs-navy);
}
.fs-route-path .dot-a { left: -2px; }
.fs-route-path .dot-b { right: -2px; background: var(--fs-amber); }

/* perforated divider */
.fs-tear {
    position: relative;
    height: 30px;
    background:
        radial-gradient(circle at left center, var(--fs-bg) 14px, transparent 15px) left center / 30px 30px no-repeat,
        radial-gradient(circle at right center, var(--fs-bg) 14px, transparent 15px) right center / 30px 30px no-repeat;
}
.fs-tear::after {
    content: "";
    position: absolute;
    left: 34px;
    right: 34px;
    top: 50%;
    border-top: 2px dashed #dfe3ee;
}

/* info grid + stub */
.fs-pass-body { display: flex; gap: 0; }
.fs-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px 26px;
    padding: 8px 40px 30px;
}
.fs-info-item .k {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fs-muted);
    margin-bottom: 5px;
}
.fs-info-item .v { font-size: 15px; font-weight: 800; color: var(--fs-ink); word-break: break-word; }
.fs-stub {
    flex: 0 0 200px;
    border-left: 2px dashed #dfe3ee;
    padding: 8px 24px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}
.fs-stub .k {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fs-muted);
}
.fs-stub .ref-row { display: flex; align-items: center; gap: 6px; }
.fs-stub .ref {
    font-size: 13px;
    font-weight: 800;
    color: var(--fs-navy);
    word-break: break-all;
}
.fs-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: none;
    background: #eef2fa;
    color: var(--fs-navy);
    border-radius: 6px;
    cursor: pointer;
    font-size: 10.5px;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}
.fs-copy-btn:hover { background: var(--fs-navy); color: #fff; }
.fs-copy-btn.copied { background: #22c55e; color: #fff; }
.fs-barcode {
    box-sizing: border-box;
    width: 100px;
    height: 100px;
    padding: 6px;
    background: #fff;
    border: 1px solid #eeeee8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
/* max-width/height (not width/height: 100%) so the QR lib's own fixed pixel size never
   overflows this box regardless of box-model quirks - it can only shrink to fit, never grow. */
.fs-barcode img, .fs-barcode canvas, .fs-barcode table {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* ── Pay Now / Pay Later actions ── */
.fs-pay-wrap {
    padding: 22px 40px 30px;
    border-top: 2px dashed #dfe3ee;
    margin-top: -2px;
}
.fs-amount-due {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 18px;
    background: rgba(243, 163, 22, 0.1);
    border-radius: 12px;
}
.fs-amount-due .lbl { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #8a6d1f; }
.fs-amount-due .val { font-size: 19px; font-weight: 900; color: var(--fs-ink); }
.fs-pay {
    display: flex;
    gap: 14px;
}
.fs-pay form { flex: 1; }
.fs-pay-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--fs-navy);
    background: #fff;
    color: var(--fs-navy);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    padding: 13px 20px;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.fs-pay-btn:hover { transform: translateY(-1px); }
.fs-pay-btn.primary { background: var(--fs-navy); color: #fff; }
.fs-pay-btn.primary:hover { background: #001850; }
.fs-pay-btn:not(.primary):hover { background: #f0f3fb; }

/* ── Journey progress (workflow stages) ── */
.fs-section { max-width: 880px; margin: 26px auto 0; padding: 0 20px; }
.fs-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 15, 60, 0.07);
    overflow: hidden;
}
.fs-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 28px 0;
}
.fs-card-head h3 {
    font-size: 16px;
    font-weight: 900;
    color: var(--fs-ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}
.fs-card-head h3 i { color: var(--fs-blue); }
.fs-progress-count { font-size: 12px; font-weight: 700; color: var(--fs-muted); }
.fs-checked-at {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--fs-muted);
    margin-top: 6px;
}
.fs-checked-at i { color: #9aa3b5; }

.fs-track { padding: 26px 34px 30px; }
.fs-track-rail { position: relative; height: 4px; background: #e8ecf3; border-radius: 100px; margin: 26px 18px 0; }
.fs-track-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, var(--fs-blue), var(--fs-navy));
    border-radius: 100px;
    transition: width 1.1s cubic-bezier(.34, 1, .5, 1) 0.15s;
}
.fs-track-plane {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--fs-amber);
    color: var(--fs-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 6px 16px rgba(243, 163, 22, 0.45);
    z-index: 2;
    transition: left 1.1s cubic-bezier(.34, 1, .5, 1) 0.15s;
}
.fs-track-plane i { transform: rotate(45deg); margin-left: 1px; margin-bottom: 1px; }
.fs-stops { display: flex; justify-content: space-between; margin: 14px 0 0; }
.fs-stop { flex: 1; text-align: center; position: relative; padding-top: 6px; }
.fs-stop .pin {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d5dae6;
    margin: 0 auto 8px;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 2px #d5dae6;
}
.fs-stop.done .pin { background: var(--fs-blue); box-shadow: 0 0 0 2px var(--fs-blue); }
.fs-stop.now .pin { background: var(--fs-amber); box-shadow: 0 0 0 2px var(--fs-amber); animation: fs-pin-pulse 2s ease-out infinite; }
@keyframes fs-pin-pulse {
    0% { box-shadow: 0 0 0 2px var(--fs-amber), 0 0 0 2px rgba(243, 163, 22, 0.5); }
    70% { box-shadow: 0 0 0 2px var(--fs-amber), 0 0 0 10px rgba(243, 163, 22, 0); }
    100% { box-shadow: 0 0 0 2px var(--fs-amber), 0 0 0 0 rgba(243, 163, 22, 0); }
}
.fs-stop .nm { font-size: 11.5px; font-weight: 700; color: var(--fs-muted); line-height: 1.35; padding: 0 4px; }
.fs-stop.done .nm { color: var(--fs-navy); }
.fs-stop.now .nm { color: var(--fs-ink); font-weight: 800; }

/* ── Activity timeline ── */
.fs-timeline { padding: 22px 30px 28px; }
.fs-tl-item {
    position: relative;
    padding: 0 0 22px 34px;
    border-left: 2px solid #e8ecf3;
    margin-left: 8px;
}
.fs-tl-item:last-child { border-left-color: transparent; padding-bottom: 4px; }
.fs-tl-item .fs-tl-icon {
    position: absolute;
    left: -12px;
    top: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--fs-blue);
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 2px var(--fs-blue);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fs-tl-item:first-child .fs-tl-icon { background: var(--fs-amber); box-shadow: 0 0 0 2px var(--fs-amber); }
.fs-tl-item .fs-tl-icon.pay { background: #22c55e; box-shadow: 0 0 0 2px #22c55e; }
.fs-tl-item .fs-tl-icon.cancel { background: #ef4444; box-shadow: 0 0 0 2px #ef4444; }
.fs-tl-item .txt { font-size: 13.5px; font-weight: 600; color: var(--fs-ink); line-height: 1.55; margin: 0 0 5px; }
.fs-tl-item .tme { font-size: 11.5px; font-weight: 700; color: var(--fs-muted); display: inline-flex; align-items: center; gap: 6px; }

/* empty state */
.fs-empty { text-align: center; padding: 40px 20px; color: var(--fs-muted); }
.fs-empty i { font-size: 26px; color: #cdd3de; display: block; margin-bottom: 10px; }
.fs-empty p { font-size: 13.5px; margin: 0; }

/* ── Need help ── */
.fs-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 28px;
}
.fs-help-text { font-size: 13px; color: var(--fs-muted); font-weight: 600; }
.fs-help-text strong { color: var(--fs-ink); display: block; font-size: 14.5px; margin-bottom: 2px; }
.fs-help-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fs-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    border: 1.5px solid #dfe3ee;
    color: var(--fs-navy);
    transition: background 0.2s ease;
}
.fs-help-btn:hover { background: #f0f3fb; text-decoration: none; color: var(--fs-navy); }
.fs-help-btn.wa { border-color: #25d366; color: #128c4a; }
.fs-help-btn.wa:hover { background: rgba(37, 211, 102, 0.1); color: #128c4a; }

/* back / print actions */
.fs-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.fs-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fs-navy);
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
}
.fs-back:hover { color: var(--fs-blue); text-decoration: underline; }
.fs-back-wrap { text-align: center; }
.fs-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--fs-navy);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}
.fs-print-btn:hover { color: var(--fs-blue); text-decoration: underline; }

/* print */
@media print {
    .fs-hero, .fs-help, .fs-actions, .fs-pay-wrap { display: none !important; }
    .fs-page { background: #fff; padding-bottom: 0; }
    .fs-pass-wrap { margin-top: 0; }
    .fs-pass, .fs-card { box-shadow: none; border: 1px solid #ddd; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fs-status-pill .dot, .fs-stop.now .pin, .fs-route-path .plane, .fs-route-path .line { animation: none; }
    .fs-track-fill, .fs-track-plane { transition: none; }
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .fs-hero { padding: 44px 16px 96px; }
    .fs-search { flex-direction: row; border-radius: 18px; }
    .fs-search input { padding: 12px 8px 12px 14px; font-size: 13.5px; }
    .fs-search button { padding: 12px 18px; font-size: 13px; }
    .fs-pass-wrap { padding: 0 14px; }
    .fs-pass-head { padding: 15px 18px; }
    .fs-route { padding: 24px 20px 18px; }
    .fs-route-point { min-width: 64px; }
    .fs-pass-body { flex-direction: column; }
    .fs-info { padding: 4px 22px 20px; gap: 14px 18px; }
    .fs-stub {
        flex: none;
        border-left: none;
        border-top: 2px dashed #dfe3ee;
        padding: 18px 22px 24px;
    }
    .fs-track { padding: 20px 16px 24px; }
    .fs-stop .nm { font-size: 10px; }
    .fs-section { padding: 0 14px; }
    .fs-timeline { padding: 18px 20px 22px; }
    .fs-pay-wrap { padding: 18px 20px 24px; }
    .fs-pay { flex-direction: column; }
    .fs-amount-due { flex-direction: column; align-items: flex-start; gap: 2px; }
    .fs-help { padding: 18px 20px; flex-direction: column; align-items: flex-start; }
}

/* ── Service variants (hotel / visa / transfer / tour / charter) ── */

/* non-plane centre icons should not be rotated */
.fs-route-path .plane.flat i, .fs-track-plane.flat i { transform: none; margin: 0; }

/* smaller route codes for long values (dates, addresses, names) */
.fs-route-point .code.small { font-size: clamp(15px, 2.4vw, 22px); line-height: 1.3; font-weight: 800; }

/* centre caption under the path icon (e.g. "4 nights", "2 pax") */
.fs-route-path .cap {
    position: absolute;
    top: calc(50% + 26px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fs-muted);
    white-space: nowrap;
}
@media (max-width: 767px) {
    .fs-route-path .cap { top: calc(50% + 24px); font-size: 9.5px; }
}

/* solo destination block (visa / tour / charter) instead of a two-point route */
.fs-route-solo { text-align: center; padding: 30px 40px 22px; }
.fs-route-solo .ic {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #eef4fd;
    border: 2px solid var(--fs-blue);
    color: var(--fs-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.fs-route-solo .big {
    font-size: clamp(20px, 3.2vw, 32px);
    font-weight: 900;
    color: var(--fs-ink);
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.fs-route-solo .lbl {
    margin-top: 7px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fs-muted);
}

/* simple string-array progress track (Transfer / Tour use plain stage names, no DB entity) */
.fs-track-simple .fs-stops { margin-top: 14px; }
