/* Air Business Fares — secure checkout (lite). No build step; plain CSS with custom properties. */
@font-face { font-family: "SBC"; src: url("../fonts/sbc-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SBC"; src: url("../fonts/sbc-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #111e26; --ink-2: #4e5159; --muted: #838d95; --line: #e3e7ea; --line-2: #cdd3d7;
  --bg: #f4f6f7; --card: #ffffff; --accent: #4a94ec; --accent-2: #3c7fd2; --accent-soft: #eef5fd;
  --ok: #50b57b; --ok-soft: #e9f6ee; --warn: #d88d00; --warn-soft: #fff8e6; --err: #e5191c; --err-soft: #fceeed;
  --gold: #eebc70; --radius: 14px; --radius-s: 9px; --shadow: 0 1px 2px rgba(17,30,38,.06), 0 8px 24px rgba(17,30,38,.06);
  --font: "SBC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); min-height: 100vh; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* header */
.hd { background: var(--card); border-bottom: 1px solid var(--line); }
.hd__in { max-width: 1180px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 14px; }
.hd__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 17px; }
.hd__logo svg { width: 34px; height: 34px; }
.hd__logo small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.hd__secure { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.hd__secure svg { width: 15px; height: 15px; }
.hd__phone { display: none; font-weight: 700; text-decoration: none; color: var(--ink); }
@media (min-width: 720px) { .hd__phone { display: inline-flex; align-items: center; gap: 6px; } }

/* steps */
.steps { max-width: 1180px; margin: 18px auto 0; padding: 0 16px; display: flex; gap: 6px; }
.steps__i { flex: 1; font-size: 12px; color: var(--muted); padding-top: 8px; border-top: 3px solid var(--line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps__i--done { border-color: var(--ok); color: var(--ink-2); }
.steps__i--on { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.steps__i b { display: inline-block; min-width: 18px; }
@media (max-width: 560px) { .steps__i span { display: none; } .steps__i--on span { display: inline; } }

/* layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 16px 16px 60px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .wrap { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .aside { position: sticky; top: 16px; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px; }
@media (min-width: 720px) { .card { padding: 28px; } }
.card + .card { margin-top: 16px; }
.sec__t { font-size: 21px; font-weight: 700; }
.sec__s { color: var(--muted); margin-top: 4px; font-size: 14px; }
.sec__h { margin-bottom: 18px; }
.center { text-align: center; }

/* messages */
.msg { padding: 14px 16px; border-radius: var(--radius-s); font-size: 14px; }
.msg--err { background: var(--err-soft); color: #9b1214; }
.msg--warn { background: var(--warn-soft); color: #7a5000; }
.msg--ok { background: var(--ok-soft); color: #2d6b47; }
.msg--info { background: var(--accent-soft); color: #2b5d95; }

/* loading + notfound */
.state { max-width: 560px; margin: 60px auto; padding: 0 16px; text-align: center; }
.state h1 { font-size: 26px; margin-bottom: 10px; }
.state p { color: var(--ink-2); }
.spin { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 18px; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* flight quote */
.quote { border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 14px; cursor: pointer; position: relative; transition: border-color .15s, box-shadow .15s; background: var(--card); }
.quote:hover { border-color: var(--line-2); }
.quote--on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.quote--sold { opacity: .55; cursor: default; }
.quote__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.quote__radio { width: 20px; height: 20px; border: 2px solid var(--line-2); border-radius: 50%; display: inline-block; position: relative; flex: none; }
.quote--on .quote__radio { border-color: var(--accent); }
.quote--on .quote__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.quote__id { font-size: 12px; color: var(--muted); }
.badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-2); }
.badge--gold { background: #fff3dd; color: #8f653b; }
.badge--ok { background: var(--ok-soft); color: #2d6b47; }
.quote__price { margin-left: auto; text-align: right; }
.quote__price b { font-size: 22px; }
.quote__price small { display: block; color: var(--muted); font-size: 12px; }
.part { border-top: 1px dashed var(--line); padding: 12px 0 4px; }
.part__h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.seg { display: grid; grid-template-columns: 52px 1fr; gap: 10px 12px; padding: 8px 0; align-items: start; }
.seg__logo { width: 52px; height: 30px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.seg__logo--txt { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.seg__route { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.seg__route .ar { color: var(--muted); font-weight: 400; }
.seg__meta { font-size: 13px; color: var(--ink-2); }
.seg__meta span + span::before { content: "·"; margin: 0 6px; color: var(--line-2); }
.layover { font-size: 12px; color: var(--warn); padding: 2px 0 2px 64px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12px; background: var(--bg); border-radius: 20px; padding: 3px 10px; color: var(--ink-2); }

/* forms */
.f { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .f--2 { grid-template-columns: 1fr 1fr; } .f--3 { grid-template-columns: 1fr 1fr 1fr; } .span2 { grid-column: span 2; } }
.fl { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.fl small { font-weight: 400; color: var(--muted); }
.in { width: 100%; height: 46px; padding: 0 13px; border: 1.5px solid var(--line-2); border-radius: var(--radius-s); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.in--err { border-color: var(--err) !important; }
select.in { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23838d95' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.err { color: var(--err); font-size: 12px; margin-top: 4px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.chk { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.chk input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.chk--big { padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); }
.chk--err { border-color: var(--err); }
.dob { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pax { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 14px; }
.pax__h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; }
.pax__h .badge { margin-left: auto; }
.seg-ctl { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; }
.seg-ctl label { padding: 0 16px; height: 43px; display: inline-flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--ink-2); }
.seg-ctl input { position: absolute; opacity: 0; }
.seg-ctl label.on { background: var(--ink); color: #fff; }
.more { background: none; border: 0; color: var(--accent); padding: 0; cursor: pointer; font-weight: 700; font-size: 14px; }
.more::after { content: " ▾"; font-size: 12px; }
.more.on::after { content: " ▴"; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: var(--radius-s); border: 0; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn--p { background: var(--accent); color: #fff; }
.btn--p:hover { background: var(--accent-2); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink-2); border: 1.5px solid var(--line-2); }
.btn--ghost:hover { background: var(--bg); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn--full { width: 100%; }
.actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.actions .btn--p { flex: 1; min-width: 200px; }
.btn .spin { width: 18px; height: 18px; border-width: 2px; margin: 0; border-color: rgba(255,255,255,.4); border-top-color: #fff; }

/* protection plans */
.plans { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 1200px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 16px; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; }
@media (min-width: 640px) and (max-width: 1199px) { .plan { display: grid; grid-template-columns: 150px 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 18px; } .plan__t { grid-column: 1; } .plan__p { grid-column: 1; } .plan ul { grid-column: 2; grid-row: 1 / span 3; columns: 2; column-gap: 18px; } .plan li { break-inside: avoid; margin-bottom: 7px; } .plan .hint { grid-column: 1; } .plan .btn { grid-column: 1; margin-top: 6px; } }
.plan--on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan--pop::before { content: "Most popular"; position: absolute; top: -11px; left: 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--gold); color: var(--ink); padding: 2px 9px; border-radius: 20px; }
.plan__t { font-weight: 700; font-size: 17px; }
.plan__p { font-size: 22px; font-weight: 700; }
.plan__p small { font-size: 12px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; }
.plan li { padding-left: 22px; position: relative; color: var(--ink-2); line-height: 1.35; }
.plan li b { color: var(--ink); }
.plan li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%2350b57b' stroke-width='1.8'/%3E%3C/svg%3E") center/10px no-repeat; }
.plan li.no { color: var(--muted); text-decoration: line-through; }
.plan li.no::before { background: var(--bg); }
.plan .btn { margin-top: auto; height: 42px; font-size: 14px; }
.plan--on .btn { background: var(--accent); color: #fff; }
.decline { text-align: center; margin-top: 16px; }
.opt { display: flex; gap: 14px; align-items: center; border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 14px; cursor: pointer; }
.opt--on { border-color: var(--accent); background: var(--accent-soft); }
.opt__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex: none; }
.opt__ic svg { width: 26px; height: 26px; }
.opt__b { flex: 1; }
.opt__b b { display: block; }
.opt__b small { color: var(--ink-2); }
.opt__p { font-weight: 700; white-space: nowrap; }
.opt input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }

/* payment */
.pm { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .pm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.pm label { border: 2px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.pm label.on { border-color: var(--accent); background: var(--accent-soft); }
.pm input { accent-color: var(--accent); width: 18px; height: 18px; }
.pm svg { width: 26px; height: 20px; }
.ccard { position: relative; border-radius: var(--radius); background: var(--ink) url("../img/credit-card-bg.svg") right top/cover no-repeat; color: #fff; padding: 20px 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 16px; }
.ccard__n { font-size: 20px; letter-spacing: .12em; font-family: ui-monospace, Menlo, monospace; }
.ccard__r { display: flex; justify-content: space-between; font-size: 13px; text-transform: uppercase; opacity: .9; gap: 12px; }
.ccard__r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard__brand { position: absolute; top: 16px; right: 18px; font-weight: 700; font-size: 14px; letter-spacing: .06em; opacity: .9; }
.detail { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.detail span:first-child { color: var(--muted); }
.detail b { text-align: right; word-break: break-all; }
.copy { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0 0 0 6px; font-size: 12px; }
.split { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.split__h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; }
.split__h .x { margin-left: auto; }
.x { background: none; border: 0; color: var(--err); cursor: pointer; font-size: 13px; }
.tips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tips label { border: 1.5px solid var(--line-2); border-radius: 20px; padding: 6px 16px; cursor: pointer; font-weight: 700; }
.tips label.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tips input { position: absolute; opacity: 0; }
.tips .in { width: 130px; height: 38px; }

/* aside summary */
.sum { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.sum__t { font-weight: 700; font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sum__l { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.sum__l small { display: block; color: var(--muted); font-size: 12px; }
.sum__l--tot { border: 0; font-size: 18px; font-weight: 700; padding-top: 12px; }
.sum__l--tot small { font-weight: 400; }
.agent { display: flex; gap: 12px; align-items: center; margin-top: 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.agent img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.agent b { display: block; }
.agent small { color: var(--muted); display: block; }
.agent a { font-size: 13px; }
.trust { margin-top: 16px; font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.trust svg { width: 16px; height: 16px; flex: none; }

/* summary toggle on phones */
.sum__tog { display: none; }
@media (max-width: 959px) {
  .aside { order: -1; }
  .sum__body { display: none; }
  .sum--open .sum__body { display: block; }
  .aside:not(.aside--open) .agent, .aside:not(.aside--open) .trust { display: none; }
  .sum__tog { display: flex; width: 100%; background: none; border: 0; padding: 0; align-items: center; justify-content: space-between; font-weight: 700; font-size: 15px; cursor: pointer; }
  .sum__tog small { font-weight: 400; color: var(--accent); }
  .sum__t { display: none; }
}

/* done */
.done { text-align: center; padding: 30px 10px; }
.done__ic { width: 74px; height: 74px; border-radius: 50%; background: var(--ok-soft); margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.done__ic svg { width: 36px; height: 36px; }
.done h2 { font-size: 26px; margin-bottom: 8px; }
.done p { color: var(--ink-2); max-width: 520px; margin: 0 auto 8px; }

/* footer */
.ft { max-width: 1180px; margin: 0 auto; padding: 20px 16px 40px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ft a { color: var(--muted); }
.ft span:first-child { flex: 1 1 100%; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(17,30,38,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal__box { background: #fff; border-radius: var(--radius); padding: 26px 24px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; }
.modal__box h3 { font-size: 20px; margin-bottom: 8px; }
.modal__box p { color: var(--ink-2); }
.terms { font-size: 14px; color: var(--ink-2); }
.terms h4 { margin: 16px 0 6px; color: var(--ink); }
.terms ul { padding-left: 18px; }

/* agent view */
.view-banner { background: var(--ink); color: #fff; padding: 10px 16px; font-size: 13px; text-align: center; }
.view-banner b { color: var(--gold); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 8px; } }

@media print { .hd, .steps, .ft, .btn, .aside { display: none !important; } body { background: #fff; } .card { box-shadow: none; border: 1px solid #ddd; } }
