:root {
    --cfw-navy: #0f1f46;
    --cfw-blue: #1769e0;
    --cfw-blue-dark: #154bb8;
    --cfw-sky: #eaf3ff;
    --cfw-ink: #17233c;
    --cfw-muted: #64748b;
    --cfw-line: #d9e4f2;
    --cfw-bg: #f4f7fb;
    --cfw-success: #11824b;
}

body.cfw-preview {
    background: var(--cfw-bg) !important;
    color: var(--cfw-ink);
}

body.cfw-preview .hero-service-row,
body.cfw-preview .mobile-service-toggle {
    display: none !important;
}

body.cfw-preview .hero-title-row {
    display: flex !important;
    margin: 0 auto 14px !important;
}

body.cfw-preview .hero-title-row h1 {
    margin: 0 0 7px !important;
    color: var(--cfw-navy) !important;
    font-size: clamp(1.55rem, 3vw, 2.25rem) !important;
    line-height: 1.2 !important;
    text-shadow: none !important;
}

body.cfw-preview .hero-title-row h2 {
    max-width: 850px;
    margin: 0 auto !important;
    color: var(--cfw-muted) !important;
    font-size: clamp(.95rem, 1.6vw, 1.08rem) !important;
    line-height: 1.55 !important;
    text-shadow: none !important;
}

body.cfw-preview .slider-area,
body.cfw-preview .single-slider,
body.cfw-preview .slider-height {
    min-height: 0 !important;
    height: auto !important;
    background: var(--cfw-bg) !important;
}

body.cfw-preview .single-slider {
    padding: 30px 0 64px !important;
}

body.cfw-preview[data-cfw-step="1"] .single-slider {
    padding: 12px 0 22px !important;
}

body.cfw-preview[data-cfw-step="1"] .search-main {
    margin-top: 8px !important;
}

/* After search, collapse the homepage hero so results begin directly below
   the fixed progress shell. The SEO heading remains visible on initial load. */
body.cfw-preview[data-cfw-step="2"] .hero-title-row,
body.cfw-preview[data-cfw-step="3"] .hero-title-row,
body.cfw-preview[data-cfw-step="4"] .hero-title-row {
    display: none !important;
}

/* The active wizard is a focused workspace. Hide the homepage chrome only
   after search so it cannot sit behind the fixed progress shell or reserve
   duplicate vertical space. Returning to Search restores everything. */
body.cfw-preview[data-cfw-step="2"] #zvp-topbar,
body.cfw-preview[data-cfw-step="3"] #zvp-topbar,
body.cfw-preview[data-cfw-step="4"] #zvp-topbar,
body.cfw-preview[data-cfw-step="2"] #cf-app-banner,
body.cfw-preview[data-cfw-step="3"] #cf-app-banner,
body.cfw-preview[data-cfw-step="4"] #cf-app-banner,
body.cfw-preview[data-cfw-step="2"] .cf-support-strip,
body.cfw-preview[data-cfw-step="3"] .cf-support-strip,
body.cfw-preview[data-cfw-step="4"] .cf-support-strip,
body.cfw-preview[data-cfw-step="2"] > header,
body.cfw-preview[data-cfw-step="3"] > header,
body.cfw-preview[data-cfw-step="4"] > header {
    display: none !important;
}

body.cfw-preview[data-cfw-step="2"] main,
body.cfw-preview[data-cfw-step="3"] main,
body.cfw-preview[data-cfw-step="4"] main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.cfw-preview[data-cfw-step="2"] .single-slider,
body.cfw-preview[data-cfw-step="3"] .single-slider,
body.cfw-preview[data-cfw-step="4"] .single-slider {
    padding-top: 0 !important;
    padding-bottom: 20px !important;
}

body.cfw-preview[data-cfw-step="2"] .search-results {
    margin-top: 0 !important;
}

.cfw-local-ribbon {
    position: fixed;
    z-index: 2147483000;
    right: 18px;
    bottom: 18px;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(15,31,70,.92);
    color: #fff;
    font: 800 11px/1.2 Arial, sans-serif;
    letter-spacing: .08em;
    box-shadow: 0 8px 24px rgba(15,31,70,.24);
}

.cfw-shell {
    position: fixed;
    z-index: 2147482000;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1480px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 18px 22px 16px;
    border: 1px solid var(--cfw-line);
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 36px rgba(15,31,70,.11);
    backdrop-filter: blur(14px);
}

.cfw-shell-spacer {
    display: block;
    width: 100%;
    height: 0;
    transition: height .18s ease;
}

body.cfw-preview .search-results,
body.cfw-preview #cf-passenger-stage,
body.cfw-preview .cfw-oneway-stage,
body.cfw-preview #cf-preview-viewport {
    scroll-margin-top: 190px;
}

body.cfw-preview[data-cfw-step="1"] .cfw-shell {
    display: none !important;
}

.cfw-shell-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.cfw-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cfw-brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cfw-blue), var(--cfw-blue-dark));
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(23,105,224,.26);
}

.cfw-eyebrow {
    color: var(--cfw-blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.cfw-title {
    margin: 2px 0 0;
    color: var(--cfw-navy);
    font-size: 18px;
    font-weight: 900;
}

.cfw-shell-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cfw-step-copy {
    text-align: right;
}

.cfw-step-count {
    display: block;
    color: var(--cfw-muted);
    font-size: 12px;
    font-weight: 800;
}

.cfw-step-name {
    display: block;
    margin-top: 2px;
    color: var(--cfw-navy);
    font-size: 15px;
    font-weight: 900;
}

.cfw-back {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 48px;
    padding: 11px 20px;
    border: 1.5px solid #c8d7ea;
    border-radius: 14px;
    background: #fff;
    color: #243b5a;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15,31,70,.08);
    transition: border-color .15s, background .15s, transform .15s;
}

.cfw-back:hover,
.cfw-back:focus-visible {
    border-color: var(--cfw-blue);
    background: #f4f8ff;
    outline: none;
    transform: translateY(-1px);
}

.cfw-progress {
    position: relative;
    height: 6px;
    overflow: hidden;
    border-radius: 99px;
    background: #e5ebf3;
}

.cfw-progress > span {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cfw-blue), #6d43e5);
    transition: width .35s ease;
}

.cfw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 11px;
}

.cfw-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #91a0b4;
    font-size: 12px;
    font-weight: 800;
}

.cfw-step-dot {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 1px solid #d5dfec;
    border-radius: 50%;
    background: #fff;
    font-size: 10px;
}

.cfw-step-item.is-active { color: var(--cfw-blue-dark); }
.cfw-step-item.is-active .cfw-step-dot {
    border-color: var(--cfw-blue);
    background: var(--cfw-blue);
    color: #fff;
    box-shadow: 0 5px 12px rgba(23,105,224,.23);
}
.cfw-step-item.is-done { color: var(--cfw-success); }
.cfw-step-item.is-done .cfw-step-dot {
    border-color: #9eddbd;
    background: #e6f8ef;
    color: var(--cfw-success);
}

body.cfw-preview .search-main,
body.cfw-preview .cf-passenger-stage,
body.cfw-preview .cfw-oneway-stage {
    width: min(1480px, calc(100% - 32px));
    margin: 24px auto 0 !important;
    border: 1px solid var(--cfw-line) !important;
    border-radius: 24px !important;
    background: #fff !important;
    box-shadow: 0 18px 48px rgba(15,31,70,.10) !important;
}

body.cfw-preview .search-main {
    padding: 28px !important;
}

body.cfw-preview .search-results > .container {
    width: min(1480px, calc(100% - 32px));
    max-width: none !important;
}

body.cfw-preview[data-cfw-step="2"] .search-main,
body.cfw-preview[data-cfw-step="3"] .search-main,
body.cfw-preview[data-cfw-step="4"] .search-main {
    display: none !important;
}

body.cfw-preview[data-cfw-step="1"] .search-results,
body.cfw-preview[data-cfw-step="1"] #cf-passenger-stage,
body.cfw-preview[data-cfw-step="1"] .cfw-oneway-stage,
body.cfw-preview[data-cfw-step="3"] .search-results,
body.cfw-preview[data-cfw-step="4"] .search-results {
    display: none !important;
}

body.cfw-preview[data-cfw-step="2"] .search-results {
    display: block !important;
    padding-top: 10px;
}

body.cfw-preview[data-cfw-step="2"] #cf-passenger-stage,
body.cfw-preview[data-cfw-step="2"] .cfw-oneway-stage {
    display: none !important;
}

body.cfw-preview[data-cfw-step="3"] #cf-passenger-stage,
body.cfw-preview[data-cfw-step="4"] #cf-passenger-stage,
body.cfw-preview[data-cfw-step="3"] .cfw-oneway-stage,
body.cfw-preview[data-cfw-step="4"] .cfw-oneway-stage {
    display: block !important;
}

body.cfw-preview .cf-passenger-stage,
body.cfw-preview .cfw-oneway-stage {
    padding: 8px 0 0;
    overflow: visible !important;
}

body.cfw-preview .cf-passenger-stage > div:first-child,
body.cfw-preview .cfw-oneway-stage > .cfw-stage-heading {
    padding: 18px 24px 4px !important;
    color: var(--cfw-navy) !important;
    font-size: 18px !important;
}

/* The guided shell replaces the legacy Round Trip progress everywhere. */
body.cfw-preview #cf-rt-stepper,
body.cfw-preview .cfw-production-stepper {
    display: none !important;
}

body.cfw-preview #popupFlight > .card-body > .row {
    gap: 26px;
    padding: 24px !important;
    box-shadow: none !important;
}

body.cfw-preview #popupFlight > .card-body > .row > .col-lg-7 {
    flex: 0 1 42% !important;
    width: 42% !important;
    max-width: 42% !important;
}

body.cfw-preview #popupFlight > .card-body > .row > .col-lg-5 {
    flex: 1 1 58% !important;
    width: 58% !important;
    max-width: 58% !important;
}

body.cfw-preview #popupFlight > .card-body > .row > .col-lg-7,
body.cfw-preview #popupFlight > .card-body > .row > .col-lg-5 {
    border-radius: 18px;
}

body.cfw-preview .card-sample > .title-card {
    display: none !important;
}

body.cfw-preview #popupFlight > .card-body > .row > .col-lg-5 {
    position: sticky;
    top: 184px;
    align-self: flex-start;
}

body.cfw-preview .cf-preview-block {
    position: relative;
    overflow: hidden;
    border: 1px solid #cad9ec;
    border-radius: 18px;
    background: #f8fbff;
    box-shadow: 0 16px 36px rgba(15,31,70,.10);
}

body.cfw-preview .cf-preview-toolbar {
    background: var(--cfw-navy);
    color: #fff;
}

.cfw-draft-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    padding: 13px 16px;
    border-bottom: 1px solid #dbe7f4;
    background: var(--cfw-sky);
    color: #38506f;
    font-size: 12px;
}

.cfw-draft-summary small {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px solid #cbdcf0;
    color: #b42318;
    font-size: 11px;
    font-weight: 800;
}

.cfw-draft-summary strong {
    color: var(--cfw-navy);
    font-size: 13px;
}

body.cfw-preview .cf-preview-viewport {
    position: relative;
    max-height: none !important;
    overflow: visible !important;
    padding: 14px !important;
}

body.cfw-preview #cf-sample-img,
body.cfw-preview .cf-zoom-controls,
body.cfw-preview .cf-preview-hint {
    display: none !important;
}

body.cfw-preview .cf-preview-toolbar {
    min-height: 44px;
    margin: 0 !important;
    padding: 11px 16px;
    border-radius: 0 !important;
}

body.cfw-preview .cf-preview-mode-tag {
    color: #fff !important;
    font-size: 12px;
    letter-spacing: .08em;
}

.cfw-live-document {
    display: grid;
    gap: 22px;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.cfw-preview-empty {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 520px;
    padding: 40px;
    border: 2px dashed #b9cbe2;
    border-radius: 14px;
    background: #fff;
    color: #64748b;
    text-align: center;
}

.cfw-preview-empty strong {
    color: var(--cfw-navy);
    font-size: 20px;
}

.cfw-ticket-paper {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 760px;
    overflow: hidden;
    border: 1px solid #bdcbe0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15,31,70,.16);
    color: #16233c;
}

.cfw-ticket-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    min-height: 760px;
    padding: clamp(22px, 4vw, 46px);
}

.cfw-security-lines {
    position: absolute;
    z-index: 1;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(27,87,170,.055) 32px, transparent 33px),
        repeating-linear-gradient(90deg, transparent 0 47px, rgba(27,87,170,.04) 48px, transparent 49px);
    pointer-events: none;
}

.cfw-watermark-grid {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
    align-items: center;
    justify-items: center;
    overflow: hidden;
    pointer-events: none;
}

.cfw-watermark-grid span {
    transform: rotate(-28deg);
    color: rgba(30,91,184,.13);
    font: 900 clamp(14px, 1.35vw, 21px)/1 Arial, sans-serif;
    letter-spacing: .07em;
    white-space: nowrap;
}

.cfw-watermark-grid span:nth-child(3n) {
    color: rgba(180,35,24,.11);
}

.cfw-ticket-head,
.cfw-ticket-brand,
.cfw-ticket-route,
.cfw-ticket-flight,
.cfw-ticket-meta,
.cfw-ticket-ref,
.cfw-ticket-passenger,
.cfw-ticket-price,
.cfw-ticket-content footer {
    display: flex;
    align-items: center;
}

.cfw-ticket-head {
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 3px solid var(--cfw-navy);
}

.cfw-ticket-brand { gap: 12px; }
.cfw-ticket-brand b {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--cfw-blue), var(--cfw-blue-dark));
    color: #fff;
    font-size: 23px;
}
.cfw-ticket-brand span { display: grid; gap: 2px; }
.cfw-ticket-brand strong { color: var(--cfw-navy); font-size: 23px; }
.cfw-ticket-brand small { color: #65748c; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.cfw-ticket-page { color: #64748b; font-size: 12px; font-weight: 800; }

.cfw-ticket-alert {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0;
    padding: 11px 14px;
    border: 1px solid #f1b8b3;
    border-radius: 9px;
    background: rgba(255,241,240,.94);
    color: #b42318;
    font-size: 12px;
}
.cfw-ticket-alert strong { letter-spacing: .08em; }

.cfw-ticket-content--pro,
.cfw-ticket-content--simple {
    display: block;
    padding: clamp(24px, 3vw, 40px);
    color: #15191f;
    font-family: Arial, Helvetica, sans-serif;
}

.cfw-real-brand,
.cfw-real-brand > div,
.cfw-real-route,
.cfw-real-flight,
.cfw-real-passenger,
.cfw-simple-head,
.cfw-simple-prepared,
.cfw-simple-row,
.cfw-simple-labels,
.cfw-simple-ref {
    display: flex;
    align-items: center;
}

.cfw-real-brand {
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #253349;
}
.cfw-real-brand > div { gap: 10px; }
.cfw-real-brand > div > b {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #e9f1fc;
    color: #1a5fc8;
    font-size: 22px;
}
.cfw-real-brand span { display: grid; gap: 2px; }
.cfw-real-brand span strong { color: #111c32; font-size: 20px; }
.cfw-real-brand small { color: #53657d; font-size: 9px; letter-spacing: .1em; }
.cfw-real-brand p { margin: 0; color: #53657d; font-size: 11px; line-height: 1.6; text-align: right; }
.cfw-real-brand em,
.cfw-real-destination em { color: #d92d20; font-style: normal; font-weight: 900; }

.cfw-real-panel {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #d5dbe4;
    background: rgba(255,255,255,.82);
}
.cfw-real-panel h3,
.cfw-real-service h3,
.cfw-real-rules h3 { margin: 0 0 8px; color: #101828; font-size: 14px; }
.cfw-real-panel p,
.cfw-real-service p,
.cfw-real-rules p { margin: 4px 0; color: #344054; font-size: 11px; line-height: 1.45; }
.cfw-real-destination { display: grid; gap: 5px; }
.cfw-real-destination strong { color: #101828; font-size: 24px; }
.cfw-real-destination span { color: #667085; font-size: 11px; }

.cfw-real-route {
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 13px 16px;
    border: 1px solid #d5dbe4;
    background: rgba(255,255,255,.82);
}
.cfw-real-route h2 { margin: 0 0 4px; color: #101828; font-size: 17px; }
.cfw-real-route span { color: #667085; font-size: 11px; }
.cfw-real-route > b { padding: 8px 12px; border: 1px solid #64a7c7; color: #087443; font-size: 11px; letter-spacing: .07em; }

.cfw-real-columns {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(150px, 1fr);
    gap: 14px;
    margin-top: 14px;
}
.cfw-real-columns .cfw-real-panel { margin-top: 0; }
.cfw-real-columns aside { display: grid; align-content: start; gap: 12px; }
.cfw-real-columns aside .cfw-ticket-price { margin: 0; border: 1px solid #d5dbe4; border-radius: 0; background: rgba(255,255,255,.86); }
.cfw-real-service { padding: 14px; border: 1px solid #d5dbe4; background: rgba(255,255,255,.82); }
.cfw-real-passenger { justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid #e3e7ed; font-size: 11px; }
.cfw-real-passenger strong { color: #101828; }
.cfw-real-passenger span { color: #475467; }
.cfw-real-panel > small { display: block; margin-top: 7px; color: #667085; font-size: 9px; line-height: 1.4; }
.cfw-real-departure { margin: 14px 0 7px; color: #101828; font-size: 14px; }
.cfw-real-flight {
    position: relative;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 14px 32px;
    border: 1px solid #d5dbe4;
    background: rgba(255,255,255,.82);
}
.cfw-real-flight > div { display: grid; gap: 3px; min-width: 120px; }
.cfw-real-flight > div:last-of-type { text-align: right; }
.cfw-real-flight small,
.cfw-real-flight span { color: #667085; font-size: 10px; }
.cfw-real-flight strong { color: #101828; font-size: 17px; }
.cfw-real-flight i { color: #1d63cb; font-size: 20px; font-style: normal; }
.cfw-real-flight footer { position: absolute; right: 14px; bottom: 8px; left: 14px; color: #475467; font-size: 9px; text-align: center; }
.cfw-real-rules { padding: 14px 2px; }

.cfw-simple-head { gap: 10px; padding-bottom: 11px; border-bottom: 2px solid #222; font-size: 13px; }
.cfw-simple-head span { color: #8a8f98; font-size: 10px; letter-spacing: .1em; }
.cfw-simple-head b { font-size: 14px; letter-spacing: .04em; }
.cfw-simple-prepared { align-items: flex-start; flex-direction: column; gap: 5px; padding: 14px 0; }
.cfw-simple-prepared span,
.cfw-simple-prepared b { color: #59616c; font-size: 10px; letter-spacing: .1em; }
.cfw-simple-prepared strong { color: #181b20; font-size: 12px; }
.cfw-simple-departure { margin: 6px 0 10px; padding-top: 13px; border-top: 2px solid #222; font-size: 13px; }
.cfw-simple-departure small { margin-left: 12px; color: #8a8f98; font-size: 9px; font-weight: 400; }
.cfw-simple-grid { display: grid; grid-template-columns: 1fr 2fr 1.1fr; border: 1px solid #cfd3d8; background: rgba(255,255,255,.84); }
.cfw-simple-grid > div { padding: 14px; border-right: 1px solid #cfd3d8; }
.cfw-simple-grid > div:last-child { border-right: 0; }
.cfw-simple-grid > div:first-child { background: rgba(243,243,243,.82); }
.cfw-simple-grid small { color: #5d6570; font-size: 10px; letter-spacing: .09em; }
.cfw-simple-grid strong { display: block; margin: 7px 0 10px; font-size: 16px; }
.cfw-simple-grid p { margin: 5px 0; color: #303640; font-size: 10px; line-height: 1.35; }
.cfw-simple-grid p span { display: block; color: #7b828c; }
.cfw-simple-grid > div:nth-child(2) { padding: 0; }
.cfw-simple-grid > div:nth-child(2) header,
.cfw-simple-grid > div:nth-child(2) footer { display: grid; grid-template-columns: 1fr 1fr; }
.cfw-simple-grid > div:nth-child(2) header { padding: 10px 14px 0; }
.cfw-simple-grid > div:nth-child(2) header:nth-child(2) { padding-top: 0; padding-bottom: 9px; border-bottom: 1px dashed #cfd3d8; color: #59616c; font-size: 10px; }
.cfw-simple-grid > div:nth-child(2) footer p { padding: 0 14px; }
.cfw-simple-grid > div:nth-child(2) footer strong { margin: 3px 0 8px; }
.cfw-simple-labels,
.cfw-simple-row { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr; padding: 9px 13px; border: 1px solid #cfd3d8; border-top: 0; font-size: 10px; }
.cfw-simple-labels { background: rgba(234,234,234,.9); }
.cfw-simple-row { background: rgba(255,255,255,.84); }
.cfw-simple-ref { justify-content: space-between; margin-top: 14px; padding: 10px 12px; border: 1px solid #f1b8b3; border-left: 4px solid #d92d20; background: rgba(255,246,245,.94); font-size: 10px; }
.cfw-simple-ref strong { color: #d92d20; letter-spacing: .07em; }

.cfw-ticket-route {
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #cdd8e7;
}
.cfw-ticket-route > div { display: grid; gap: 4px; }
.cfw-ticket-route small { color: var(--cfw-blue); font-weight: 900; letter-spacing: .11em; }
.cfw-ticket-route strong { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; }
.cfw-ticket-route strong i { color: var(--cfw-blue); font-style: normal; }
.cfw-ticket-route span { color: #64748b; font-size: 13px; }
.cfw-ticket-route time { color: var(--cfw-navy); font-size: 14px; font-weight: 850; white-space: nowrap; }

.cfw-ticket-flight {
    justify-content: space-between;
    gap: 22px;
    margin: 22px 0;
    padding: 20px;
    border: 1px solid #cbd8e9;
    border-radius: 12px;
    background: rgba(247,250,255,.9);
}
.cfw-ticket-flight > div:not(.cfw-ticket-path) { display: grid; gap: 3px; min-width: 105px; }
.cfw-ticket-flight small, .cfw-ticket-meta small { color: #718198; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.cfw-ticket-flight strong { color: var(--cfw-navy); font-size: 29px; }
.cfw-ticket-flight span { color: #52627a; font-weight: 800; }
.cfw-ticket-path { position: relative; flex: 1; justify-content: center; border-top: 1px dashed #7ca5de; }
.cfw-ticket-path span { position: absolute; top: -25px; font-size: 11px; }
.cfw-ticket-path i { margin-top: -11px; padding: 0 10px; background: #f7faff; color: var(--cfw-blue); font-size: 20px; font-style: normal; }

.cfw-ticket-meta {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #cdd8e7;
}
.cfw-ticket-meta > div { display: grid; gap: 5px; }
.cfw-ticket-meta strong { color: var(--cfw-navy); font-size: 13px; }

.cfw-ticket-ref {
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0;
    padding: 12px 14px;
    border: 1px solid #f1b8b3;
    border-left: 5px solid #d92d20;
    border-radius: 8px;
    background: rgba(255,246,245,.95);
}
.cfw-ticket-ref span { color: #7a271a; font-weight: 800; }
.cfw-ticket-ref strong { color: #d92d20; font-size: 12px; letter-spacing: .08em; }

.cfw-ticket-passengers h3 {
    margin: 0 0 8px;
    color: var(--cfw-navy);
    font-size: 15px;
}
.cfw-ticket-passenger {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid #d9e2ef;
    background: rgba(255,255,255,.82);
    font-size: 12px;
}
.cfw-ticket-passenger span { color: #64748b; }
.cfw-ticket-passenger strong { color: var(--cfw-navy); }
.cfw-ticket-passenger em { color: #137a49; font-size: 10px; font-style: normal; font-weight: 900; }

.cfw-ticket-price {
    justify-content: space-between;
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 9px;
    background: rgba(233,243,255,.92);
    color: var(--cfw-navy);
}
.cfw-ticket-price strong { font-size: 18px; }

.cfw-ticket-content footer {
    justify-content: space-between;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #cdd8e7;
    color: #718198;
    font-size: 10px;
    letter-spacing: .06em;
}
.cfw-ticket-content footer strong { color: var(--cfw-blue-dark); }

.cfw-stage-actions {
    margin-top: 16px;
}

.cfw-review-btn {
    width: 100%;
    min-height: 60px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cfw-blue), var(--cfw-blue-dark));
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(23,105,224,.25);
}

.cfw-review-note {
    margin: 9px 0 0;
    color: var(--cfw-muted);
    font-size: 12px;
    text-align: center;
}

body.cfw-preview[data-cfw-step="3"] #print-btn { display: none !important; }
body.cfw-preview[data-cfw-step="4"] .cfw-stage-actions { display: none !important; }
body.cfw-preview[data-cfw-step="4"] #print-btn {
    display: flex !important;
    min-height: 66px !important;
    border-radius: 16px !important;
}

.cfw-review-banner {
    display: none;
    margin: 0 18px 8px;
    padding: 16px 18px;
    border: 1px solid #b9dfcb;
    border-radius: 16px;
    background: #ecfaf3;
    color: #146a42;
    font-weight: 850;
}

body.cfw-preview[data-cfw-step="4"] .cfw-review-banner { display: block; }

@media (max-width: 1180px) {
    .cfw-local-ribbon { display: none; }

    body.cfw-preview #popupFlight > .card-body > .row {
        flex-wrap: wrap !important;
    }

    body.cfw-preview #popupFlight > .card-body > .row > .col-lg-7,
    body.cfw-preview #popupFlight > .card-body > .row > .col-lg-5 {
        position: static;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.cfw-preview #popupFlight > .card-body > .row > .col-lg-5 {
        margin-top: 20px;
    }

    .cfw-ticket-alert,
    .cfw-ticket-ref {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    body.cfw-preview .ticket-mode-wrap {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    body.cfw-preview .tmode-btn {
        width: 100% !important;
        min-height: 52px !important;
        padding: 8px 10px !important;
    }

    body.cfw-preview .tmode-content {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }

    body.cfw-preview .tmode-badge { margin-left: auto; }

    .cfw-real-brand,
    .cfw-real-route,
    .cfw-real-passenger {
        align-items: flex-start;
        flex-direction: column;
    }

    .cfw-real-brand p { text-align: left; }
    .cfw-real-columns { grid-template-columns: 1fr; }
    .cfw-real-flight > div { min-width: 84px; }
    .cfw-simple-grid { grid-template-columns: 1fr; }
    .cfw-simple-grid > div { border-right: 0; border-bottom: 1px solid #cfd3d8; }
    .cfw-simple-grid > div:last-child { border-bottom: 0; }
    .cfw-simple-departure small { display: block; margin: 5px 0 0; }
}

@media (max-width: 800px) {
    .cfw-shell { top: 8px; padding: 15px; }
    .cfw-shell-top { align-items: flex-start; }
    .cfw-brand-mark { width: 38px; height: 38px; border-radius: 12px; }
    .cfw-title { font-size: 15px; }
    .cfw-step-copy { display: none; }
    .cfw-steps { gap: 4px; }
    .cfw-step-item { justify-content: center; font-size: 0; }
    .cfw-step-dot { font-size: 10px; }
    body.cfw-preview .single-slider { padding-top: 14px !important; }
    body.cfw-preview[data-cfw-step="1"] .single-slider { padding: 8px 0 18px !important; }
    body.cfw-preview .search-main { padding: 18px !important; }
    body.cfw-preview[data-cfw-step="1"] .search-main { margin-top: 6px !important; }
    body.cfw-preview #popupFlight > .card-body > .row > .col-lg-7,
    body.cfw-preview #popupFlight > .card-body > .row > .col-lg-5 {
        position: static;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .cfw-ticket-paper,
    .cfw-ticket-content { min-height: 650px; }
    .cfw-ticket-route strong { font-size: 25px; }
}

@media (max-width: 480px) {
    .cfw-local-ribbon { display: none; }
    body.cfw-preview .ticket-mode-wrap {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    body.cfw-preview .tmode-btn {
        width: 100% !important;
        min-height: 52px !important;
        padding: 8px 10px !important;
    }
    body.cfw-preview .tmode-content {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }
    body.cfw-preview .tmode-badge {
        margin-left: auto;
    }
    body.cfw-preview #popupFlight > .card-body > .row { padding: 10px !important; }
    .cfw-ticket-content { padding: 18px; }
    .cfw-ticket-brand strong { font-size: 18px; }
    .cfw-ticket-brand b { width: 38px; height: 38px; }
    .cfw-ticket-route { align-items: flex-start; flex-direction: column; }
    .cfw-ticket-route strong { font-size: 22px; }
    .cfw-ticket-flight { gap: 10px; padding: 16px 10px; }
    .cfw-ticket-flight strong { font-size: 21px; }
    .cfw-ticket-flight > div:not(.cfw-ticket-path) { min-width: 70px; }
    .cfw-ticket-meta { grid-template-columns: 1fr; }
    .cfw-ticket-ref { align-items: flex-start; flex-direction: column; }
    .cfw-ticket-passenger { grid-template-columns: 1fr; gap: 3px; }
    .cfw-watermark-grid { grid-template-columns: repeat(3, 1fr); }
}

/* The form is intentionally preview-free. The exact PDF render appears only
   after Review, using the production renderer captured as an image. */
body.cfw-preview[data-cfw-step="3"] #popupFlight > .card-body > .row > .col-lg-7 {
    display: block !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.cfw-preview[data-cfw-step="3"] #popupFlight > .card-body > .row > .col-lg-5 {
    display: none !important;
}

body.cfw-preview[data-cfw-step="4"] #popupFlight > .card-body > .row > .col-lg-7 {
    display: none !important;
}

body.cfw-preview[data-cfw-step="4"] #popupFlight > .card-body > .row > .col-lg-5 {
    display: block !important;
    position: static !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
}

.cfw-final-download {
    display: none;
    width: calc(100% - 28px);
    min-height: 64px;
    margin: 18px 14px 14px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #0c8a49, #10a55a);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(12,138,73,.25);
    cursor: pointer;
}

.cfw-final-download:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: wait;
    opacity: .9;
}

.cfw-download-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -3px;
    animation: cfwDownloadSpin .75s linear infinite;
}

@keyframes cfwDownloadSpin { to { transform: rotate(360deg); } }

body.cfw-preview[data-cfw-step="4"] .cfw-final-download { display: block; }
body.cfw-preview.cfw-exact-building #cf-post-dl { display: none !important; }
body.cfw-preview.cfw-review-draft-ready #cf-post-dl { display: none !important; }

body.cfw-preview #popupFlight .cf-fullname-input {
    height: 60px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.92) !important;
    color: #1a1a2e !important;
    padding: 5px 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

body.cfw-preview #popupFlight .cf-fullname-input::placeholder,
body.cfw-preview #emailPayment::placeholder {
    color: #667085 !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.cfw-exact-loading,
.cfw-exact-error {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 420px;
    padding: 40px;
    border: 1px dashed #afc3df;
    border-radius: 14px;
    background: #f8fbff;
    color: #50627a;
    text-align: center;
}
.cfw-exact-loading b { color: #1d63cb; font-size: 36px; animation: cfwExactFly 1.25s ease-in-out infinite; }
.cfw-exact-loading strong,
.cfw-exact-error strong { color: #14213d; font-size: 18px; }
.cfw-exact-error { border-color: #f1b8b3; background: #fff5f4; color: #b42318; }
@keyframes cfwExactFly { 50% { transform: translateX(24px); } }

.cfw-exact-page {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    border: 1px solid #bdcbe0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15,31,70,.16);
}
.cfw-exact-page > img { position: relative; z-index: 2; display: block; width: 100%; height: auto; }
.cfw-exact-page .cfw-security-lines { z-index: 3; }
.cfw-exact-page .cfw-watermark-grid { z-index: 4; }
.cfw-exact-badge {
    position: absolute;
    z-index: 5;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border: 1px solid rgba(180,35,24,.45);
    border-radius: 999px;
    background: rgba(255,245,244,.94);
    color: #b42318;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
    white-space: nowrap;
}
