/* GIR partner portal. Font: Century Gothic like the quote templates, served from static/fonts so every visitor gets it. */
@font-face { font-family: "Century Gothic GIR"; src: url("fonts/CenturyGothicPaneuropeanLight.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Century Gothic GIR"; src: url("fonts/CenturyGothicPaneuropeanRegular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Century Gothic GIR"; src: url("fonts/CenturyGothicPaneuropeanItalic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Century Gothic GIR"; src: url("fonts/CenturyGothicPaneuropeanSemiBold.ttf") format("truetype"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Century Gothic GIR"; src: url("fonts/CenturyGothicPaneuropeanBold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Century Gothic GIR"; src: url("fonts/CenturyGothicPaneuropeanBoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Century Gothic GIR"; src: url("fonts/CenturyGothicPaneuropeanExtraBold.ttf") format("truetype"); font-weight: 800 900; font-style: normal; font-display: swap; }
/* Country flags: Windows has no flag emoji - this font (Twemoji, CC-BY 4.0, via country-flag-emoji-polyfill, MIT) only
   draws the flag characters (unicode-range), everything else stays Century Gothic. */
@font-face {
  font-family: "Twemoji Country Flags"; src: url("fonts/TwemojiCountryFlags.woff2") format("woff2"); font-display: swap;
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
}
:root {
  --font: "Twemoji Country Flags", "Century Gothic GIR", "Century Gothic", CenturyGothic, AppleGothic, "Segoe UI", Arial, sans-serif;
  --blue: #04488e; --blue-2: #0a5cad; --navy: #062f5c; --blue-soft: #eaf1fa; --blue-line: #c9dcf1;
  --ink: #16202b; --ink-2: #3a4757; --muted: #6b7887; --line: #e3e8ee; --bg: #f4f6f9; --card: #fff;
  --ok: #1f7a37; --ok-soft: #e3f4e7; --bad: #b8322a; --bad-soft: #fdebea; --warn: #8a5d00; --warn-soft: #fff4d6;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.05);
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--blue-2); }
code { background: #f1f4f8; padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
h1 { font-size: 28px; line-height: 1.2; margin: 6px 0 8px; letter-spacing: -.3px; }
h2 { font-size: 19px; margin: 0 0 12px; }
h3 { font-size: 12px; margin: 18px 0 6px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.lead { font-size: 13px; color: var(--ink-2); margin: 0; }
.small-lead { font-size: 14px; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .8px; font-size: 12px; font-weight: 700; color: var(--blue-2); }
.eyebrow.light { color: #bcd6f3; }
.muted { color: var(--muted); } .small { font-size: 13px; } .xsmall { font-size: 12px; } .center { text-align: center; }
.hint { color: var(--muted); font-size: 13px; margin: 4px 0 0; }

/* ---------------------------------------------------------------- header / footer */
.top { background: #fff; border-top: 4px solid var(--blue); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--blue); padding: 8px 0; }
.brand-logo { display: block; height: 68px; width: auto; }
.brand-t strong { display: block; font-size: 16px; letter-spacing: -.1px; }
.brand-t small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
.top-nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.top-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.top-nav a:hover { color: var(--blue); }
.top-nav form { margin: 0; } .who { color: var(--muted); font-size: 13px; }
.btn-out { font: inherit; font-size: 13px; font-weight: 700; color: var(--bad); background: #fff; border: 1px solid var(--bad);
  border-radius: 8px; padding: 6px 14px; cursor: pointer; }
.btn-out:hover { background: var(--bad-soft); }
.test-banner { background: var(--warn-soft); color: #5c4300; text-align: center; font-size: 13px; font-weight: 600; padding: 7px 16px; border-bottom: 1px solid #f0d78c; }
.test-banner a { color: #5c4300; }
main.wrap { padding: 40px 20px 56px; }   /* main.wrap: plain "main" lost to .wrap's padding: 0 20px */
.foot { border-top: 1px solid var(--line); background: #fff; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; padding: 16px 20px; }
.foot-top { display: flex; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; padding: 28px 20px 22px; border-bottom: 1px solid var(--line); font-size: 13px; }
.foot-top h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--blue); margin: 0 0 10px; }
.foot-top ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.foot-top a { color: var(--ink-2); text-decoration: none; } .foot-top a:hover { color: var(--blue); text-decoration: underline; }
.foot-note { display: block; color: var(--muted); font-size: 11px; }

/* ---------------------------------------------------------------- building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; margin-bottom: 18px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.page-head { margin-bottom: 26px; }
/* section titles inside cards: blue */
.card-head h2, .card > h2, .fold summary h2, .sec-title { font-size: 17px; color: var(--blue); }
.sec-title { margin: 8px 0 12px; }
.title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.title-row h1 { margin: 6px 0; }
.lead-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.lead-row .lead { flex: 1; padding-right: 48px; }   /* up to the PDF button */
.page-head.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
main:has(> .solo) { display: flex; flex-direction: column; justify-content: center; }   /* short pages: in the middle */
.solo { max-width: 460px; width: 100%; margin: 0 auto; }
.check-mail h1 { font-size: 22px; color: var(--blue); }
.check-mail .lead { margin-bottom: 14px; }
.solo.wide { max-width: 600px; }
.solo-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 26px; margin: 0 auto 8px; }
.notice { background: var(--blue-soft); border: 1px solid var(--blue-line); color: var(--navy); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.notice.warn { background: var(--warn-soft); border-color: #f0d78c; color: #5c4300; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; font-size: 14px; }
.flash.ok { background: var(--ok-soft); color: var(--ok); } .flash.bad { background: var(--bad-soft); color: var(--bad); }

.btn, button.btn { font: inherit; font-weight: 700; font-size: 15px; border-radius: 10px; padding: 11px 20px; cursor: pointer; border: 1px solid var(--blue);
  background: #fff; color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; }
.btn:hover { background: var(--blue-soft); }
.btn.primary { background: var(--blue); color: #fff; } .btn.primary:hover { background: var(--navy); }
.btn.ghost { border-color: var(--line); color: var(--ink-2); } .btn.ghost:hover { border-color: var(--blue-line); background: var(--blue-soft); color: var(--blue); }
.btn.block { width: 100%; margin-top: 8px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.link-btn { background: none; border: 0; color: var(--blue-2); font: inherit; font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; background: #eef1f5; color: var(--muted); }
.badge.big { font-size: 13px; padding: 7px 14px; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-left: 8px; }
.tag.ok { color: var(--ok); } .tag.warn { color: var(--warn); }
.doc-ok { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 8px; background: var(--ok-soft); color: var(--ok);
  font-size: 13px; font-weight: 700; }
.doc-ok .muted { font-weight: 400; }

/* ---------------------------------------------------------------- form fields */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.f-textarea, .field.f-file, .field.f-checkbox, .field.f-wide { grid-column: 1 / -1; }
.field[hidden] { display: none; }
label, .label { font-weight: 700; font-size: 14px; }
.label-link { float: right; font-weight: 400; font-size: 13px; }
.req { color: var(--bad); font-weight: 700; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1px solid #cdd6e0; border-radius: 10px; background: #fff; color: var(--ink); min-height: 46px; }
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #aebccc; }
input:focus, select:focus, textarea:focus { outline: 3px solid #d3e4f7; border-color: var(--blue-2); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.check:has(input:checked) { border-color: var(--blue-line); background: var(--blue-soft); }
.check input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.has-error input, .has-error select, .has-error textarea, .has-error .check, .has-error .drop, .has-error .opt-card { border-color: var(--bad); }
.err { color: var(--bad); font-size: 13px; margin: 0; font-weight: 700; }

.drop { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; text-align: center;
  border: 1.5px dashed #b9c6d4; border-radius: 12px; padding: 16px 18px; background: #fafbfd; cursor: pointer; font-weight: 400; }
.drop.has-file .drop-t { display: none; }   /* a file was chosen: its name instead of "Choose file" */
.drop.has-file .drop-n { color: var(--ink); font-weight: 700; font-size: 14px; }
.drop.has-file .drop-n::before { content: "📄 "; }
.drop:hover, .drop.over { border-color: var(--blue-2); background: var(--blue-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.drop-t { font-weight: 700; color: var(--blue); }
.drop-t::before { content: "⇪"; margin-right: 8px; }
.small-drop { padding: 10px 14px; }
.files { list-style: none; padding: 0; margin: 0; }
.files li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid #f0f3f6; }
.files li.gone { opacity: .55; }
.doc { font-weight: 700; overflow-wrap: anywhere; }
.doc::before { content: "📄 "; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 700; }
.chip:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.chip input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--blue); }
.chips.even .chip { min-width: 112px; }   /* every membership as wide as LACMA */
.chips.even.wide .chip { min-width: 176px; }   /* every service as wide as Pet Transport */
.chip-own { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); cursor: default; }
.chip-x { border: 0; background: none; color: var(--blue); font: inherit; font-size: 17px; line-height: 1; padding: 0 0 0 2px; cursor: pointer; }
.chip-x:hover { color: var(--bad); }
.chip-add { display: inline-flex; gap: 6px; align-items: center; }
.chip-add[hidden] { display: none; }
.chip-add input { width: 180px; min-height: 38px; padding: 7px 14px; border-radius: 999px; }
.f-sep { grid-column: 1 / -1; width: 100%; border: 0; border-top: 1px solid var(--line); margin: 10px 0; }

.opt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.opt-card { position: relative; display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; font-weight: 400; }
.opt-card:hover { border-color: var(--blue-line); }
.opt-card:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px #d3e4f7; }
.opt-card input { position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; min-height: 0; accent-color: var(--blue); }
.opt-body { display: flex; flex-direction: column; gap: 4px; padding-right: 34px; }
.opt-title { font-weight: 700; }
.opt-price { font-size: 22px; font-weight: 700; color: var(--blue); }

/* ---------------------------------------------------------------- quotation */
.lines { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.lines td { padding: 6px 0; vertical-align: top; border-bottom: 1px solid #f0f3f6; }
.lines .num, .num { text-align: right; white-space: nowrap; padding-left: 12px; }
.lines .total td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--blue); padding-top: 9px; }
.est { margin: 8px 0 0; }
.qmini-route { font-size: 12px; font-weight: 700; margin: 6px 0 2px; line-height: 1.35; }
.qmini .eyebrow { font-size: 17px; }   /* in the quotation card the reference is the big line, the route the small one */
.qmini-total { display: flex; flex-direction: column; margin: 14px 0 10px; padding: 12px 14px; background: var(--blue-soft); border-radius: 10px; }
.qmini-total strong { font-size: 24px; color: var(--blue); line-height: 1.2; }
.qmini-more summary { cursor: pointer; color: var(--blue-2); font-weight: 700; font-size: 14px; padding: 4px 0; }
.qmini-more[open] summary { margin-bottom: 6px; }
.qmini-opt { font-weight: 700; margin: 12px 0 2px; font-size: 14px; }
.review { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; background: #fbfcfe; }
.review-q { margin-bottom: 10px; }

/* status card / backoffice quote card */
.quote-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 4px; }
.quote h2 { margin: 4px 0 2px; } .route { margin: 0; font-weight: 700; }
.option { padding: 10px 0; border-bottom: 1px solid var(--line); }
.option h3 { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 14px; margin: 4px 0; }

/* ---------------------------------------------------------------- wizard */
.wizard { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.wz-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.side-card { padding: 20px; margin: 0; }
.side-list { padding-left: 18px; margin: 8px 0 0; color: var(--ink-2); }
.side-card p { text-align: justify; hyphens: auto; }
.side-note { color: var(--muted); font-size: 12px; margin: 0 4px; }
.wz-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.wz-steps a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; }
.wz-steps a:hover { background: #fff; }
.wz-num { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #c3cdd8; display: grid; place-items: center; font-size: 13px; flex: none; background: #fff; }
.wz-steps a.current { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.wz-steps a.current .wz-num { background: var(--blue); border-color: var(--blue); color: #fff; }
.wz-steps a.done .wz-num { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); font-size: 0; }
.wz-steps a.done .wz-num::after { content: "✓"; font-size: 14px; }
.wz-steps a.error .wz-num { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.wz-main { min-width: 0; }
.wizard[data-wizard] { margin-top: 44px; }   /* room for the progress bar under the page title */
/* the bar sits in the space above, so the step card starts level with the sidebar */
.wz-progress { display: none; height: 4px; background: #e2e8ef; border-radius: 4px; margin: -20px 0 16px; overflow: hidden; }
.wz-progress span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .25s; }
.wz-step { padding: 30px 32px; }
.wz-head { margin-bottom: 22px; }
.wz-head h2 { font-size: 23px; margin: 4px 0 6px; outline: none; }
.wz-count { font-size: 12px; font-weight: 700; color: var(--blue-2); text-transform: uppercase; letter-spacing: .7px; }
.wz-block + .wz-block { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.wz-sub { font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--blue); margin: 0 0 12px; }
.block-hint { margin: -6px 0 14px; }
.coord-card .coord { display: flex; gap: 12px; align-items: center; margin: 10px 0 4px; }
.coord-card .coord div { display: flex; flex-direction: column; min-width: 0; }
.coord-card .coord a { overflow-wrap: anywhere; }
.coord-ref { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.coord-card .coord-ref + .eyebrow { display: block; }
.coord-row { padding: 12px 0; border-bottom: 1px solid var(--line); align-items: end; }
.coord-row.off { opacity: .6; }
.sec-note { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--blue-line); background: var(--blue-soft); border-radius: 0 8px 8px 0; font-size: 13px; color: var(--ink-2); }
.wz-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wz-nav-r { display: flex; gap: 10px; flex-wrap: wrap; }
/* with JavaScript: one step at a time */
.js .wz-step[hidden] { display: none; }
.js .wz-progress { display: block; }
html:not(.js) .js-only { display: none; }
.wizard.static .wz-side { position: static; }

/* ---------------------------------------------------------------- sign in / register */
main:has(> .auth) { display: flex; flex-direction: column; justify-content: center; }   /* the card in the middle of the page */
.auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 960px; width: 100%; margin: 0 auto; border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(6,47,92,.12); background: #fff; border: 1px solid var(--line); }
.auth-brand { background: linear-gradient(160deg, var(--blue) 0%, var(--navy) 100%); color: #fff; padding: 44px 44px; position: relative; overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: url("globe.png") center / 70% no-repeat, rgba(255,255,255,.08); opacity: .35; }
.auth-brand .eyebrow { text-transform: none; letter-spacing: .3px; font-size: 13px; }   /* "Partner Portal" as written */
.auth-brand h1 { font-size: 30px; margin: 10px 0 12px; }
.auth-brand p { color: #dbe8f7; margin: 0 0 18px; }
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; color: #e9f1fb; }
.auth-points li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.18); margin-right: 10px; font-size: 12px; }
.auth-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.auth-steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: grid; place-items: center; font-weight: 700; }
.auth-steps span { color: #cfe0f3; font-size: 14px; }
.auth-form { padding: 44px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-form form { display: flex; flex-direction: column; gap: 14px; }
.auth-form h2 { font-size: 22px; margin-bottom: 4px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 22px 0 6px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.solo form, form.solo { display: block; }
.solo .field { margin-bottom: 14px; }

.offices { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 8px; }
.office { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.office:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.office input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; accent-color: var(--blue); flex: none; }
.office strong, .office .small { display: block; }

/* ---------------------------------------------------------------- account / status */
.dash { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.blist { display: flex; flex-direction: column; }
.bitem { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f3f6; }
.empty-state { text-align: center; padding: 28px 10px; border: 1.5px dashed var(--line); border-radius: 12px; }
.empty-state p { margin: 0 0 4px; }
.people { list-style: none; padding: 0; margin: 0 0 8px; }
.people li { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 700; flex: none; }
.fold summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary h2 { margin: 0; }
.fold summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
.fold[open] summary::after { content: "▴"; }
.fold-body { margin-top: 8px; }
.tracker { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 0; margin: 40px 0 40px; }   /* any number of steps */
.tracker li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.tracker li::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: #dbe2ea; z-index: 0; }
.tracker li:first-child::before { display: none; }
.tracker li.done::before, .tracker li.now::before { background: var(--blue); }
.tracker .dot { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid #cfd8e2; z-index: 1; }
.tracker li.done .dot { background: var(--blue); border-color: var(--blue); }
.tracker li.now .dot { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px #d3e4f7; }
.doc-list { display: flex; flex-direction: column; }
.doc-row { display: grid; grid-template-columns: 1fr 260px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f3f6; }
dl.kv { display: grid; grid-template-columns: 210px 1fr; margin: 0; }
dl.kv dt, dl.kv dd { padding: 7px 0; border-bottom: 1px solid #f0f3f6; margin: 0; }
dl.kv dt { color: var(--muted); font-size: 14px; } dl.kv dd { white-space: pre-wrap; overflow-wrap: anywhere; }
/* booking details on the status page: one card per section, no lines between the fields */
.detail-card dl.kv dt, .detail-card dl.kv dd, .company-details dl.kv dt, .company-details dl.kv dd { border-bottom: 0; padding: 5px 0; }
/* company details (My account): a line only between the sections */
.company-details .fold-body h3 { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.company-details .fold-body h3:first-child { border-top: 0; margin-top: 12px; padding-top: 0; }
.detail-card dl.kv dt, .company-details dl.kv dt { color: var(--ink); font-weight: 700; }
.accepted { list-style: none; margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--blue-line); background: var(--blue-soft);
  border-radius: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.accepted li { display: flex; gap: 10px; }
.accepted li::before { content: "✓"; color: var(--blue); font-weight: 700; }

/* ---------------------------------------------------------------- backoffice (team) */
.layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.layout.admin { grid-template-columns: 1fr 380px; }
.layout.admin .quote { position: static; }
.back { display: inline-block; margin-bottom: 14px; font-weight: 700; text-decoration: none; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.head-right { display: flex; gap: 8px; align-items: center; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { padding: 6px 12px; border-radius: 999px; background: #f1f4f8; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.pill span { color: var(--muted); margin-left: 4px; } .pill.active { background: var(--blue); color: #fff; } .pill.active span { color: #cfe0f5; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 6px; border-bottom: 1px solid #f0f3f6; vertical-align: top; }
.table a { text-decoration: none; }
.empty { color: var(--muted); text-align: center; padding: 24px; }
.s-recebido, .s-reaceitar, .c-pendente { background: var(--warn-soft); color: var(--warn); }
.s-revisao, .s-cancelado, .m-erro, .c-rejeitada { background: var(--bad-soft); color: var(--bad); }
.s-verificado, .s-aberto { background: var(--blue-soft); color: var(--blue); }
.s-confirmado, .m-enviado, .c-aprovada { background: var(--ok-soft); color: var(--ok); }
.todo { background: var(--warn-soft); color: #5c4300; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.map-link { margin-top: 6px; } .map-link a { font-weight: 700; }
.mails, .events { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.mails li, .events li { padding: 8px 0; border-bottom: 1px solid #f0f3f6; overflow-wrap: anywhere; }
.mails form { margin: 4px 0 0; }
form.inline { display: inline; margin-left: 8px; }
.row-form { display: flex; gap: 8px; margin-top: 10px; }
.row-form input { flex: 1; }
.copy { display: inline-block; margin-top: 6px; user-select: all; word-break: break-all; }
.section .field + .field { margin-top: 12px; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.5 var(--font); margin: 8px 0 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .wizard, .dash, .layout, .layout.admin { grid-template-columns: minmax(0, 1fr); }
  .wz-side { position: static; min-width: 0; }
  .wz-steps ol { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .wz-steps a { white-space: nowrap; padding: 8px 10px; }
  .wz-steps a:not(.current) .wz-t { display: none; }
  .wz-progress { margin-top: 0; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand, .auth-form { padding: 30px 26px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  main.wrap { padding: 24px 16px 40px; }
  .foot-top { padding: 24px 16px 18px; } .foot-in { padding: 14px 16px; }
  .grid { grid-template-columns: 1fr; }
  .card, .wz-step { padding: 18px; }
  h1 { font-size: 23px; } .auth-brand h1 { font-size: 24px; }
  .brand-logo { height: 52px; } .who { display: none; }
  .wz-nav { flex-direction: column-reverse; align-items: stretch; }
  .wz-nav-r { flex-direction: column-reverse; }
  .wz-nav .btn { width: 100%; }
  dl.kv { grid-template-columns: 1fr; } dl.kv dt { border: 0; padding-bottom: 0; }
  .doc-row { grid-template-columns: 1fr; }
  .tracker strong { font-size: 13px; } .tracker .small { display: none; }
  .table thead { display: none; } .table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table td { display: block; border: 0; padding: 2px 0; } .table td.num { text-align: left; }
}

/* Sign in with Google (Google's branding: white, coloured G) */
.btn.google { background: #fff; border: 1px solid #dadce0; color: #3c4043; gap: 10px; margin-top: 4px; }
.btn.google:hover { background: #f8faff; border-color: #c6d4ec; }
.auth-form > .hint.center { margin: 6px 0 0; }
.auth-form > .divider { margin: 18px 0 14px; }

/* invoicing: who is invoiced for each charge */
.charges { margin-bottom: 26px; }
.charges-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.charges-head p { margin: 0; }
.seg-all { display: flex; gap: 8px; white-space: nowrap; }
.seg-all [data-all=client] { border-color: #5b3fa0; color: #5b3fa0; } .seg-all [data-all=client]:hover { background: #efeafb; }
.charges-opt[hidden], .review [data-option][hidden] { display: none; }
.ctable { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ctable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ctable td { padding: 9px 6px; border-bottom: 1px solid #f0f3f6; vertical-align: middle; }
.ctable .who { width: 180px; text-align: right; }
.ctable .cgroup td { background: #f6f8fb; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-2); padding: 7px 8px; }
.seg { display: inline-flex; border: 1px solid #cdd6e0; border-radius: 9px; overflow: hidden; }
.seg label { font-weight: 700; font-size: 13px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.seg span { display: block; padding: 6px 14px; color: var(--muted); }
.seg label + label span { border-left: 1px solid #cdd6e0; }
.seg input:checked + span { background: var(--blue); color: #fff; }
.seg input[value=client]:checked + span { background: #5b3fa0; }   /* same purple as the "Client" badge */
.seg input:focus-visible + span { outline: 3px solid #d3e4f7; }
.from-q { white-space: nowrap; margin-left: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #0f7a6c;
  background: #e2f4f1; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
@media (max-width: 600px) {
  .ctable thead { display: none; }
  .ctable tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid #f0f3f6; }
  .ctable td { border: 0; padding: 0 4px; }
  .ctable .who { grid-column: 1 / -1; text-align: left; width: auto; }
  .ctable .cgroup { display: block; } .ctable .cgroup td { display: block; }
}
.payer { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.p-agent { background: var(--blue-soft); color: var(--blue); } .p-client { background: #efeafb; color: #5b3fa0; }
.ctable.static .who { width: 110px; }
.qmini-total > div { display: flex; flex-direction: column; } .qmini-total > div[hidden] { display: none; }
[data-pick-b][hidden] { display: none; }
.pick-first { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pick-first[hidden] { display: none; }
.small-btn { min-height: 36px; padding: 6px 14px; font-size: 14px; }

/* backoffice home: one card per company */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar input[type=search] { max-width: 360px; }
button.pill { border: 0; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ccard { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ccard:hover { border-color: var(--blue-line); box-shadow: 0 6px 22px rgba(6,47,92,.12); transform: translateY(-1px); }
.ccard.attention { border-left: 4px solid var(--warn); }
.ccard[hidden] { display: none; }
.ccard-top { display: flex; gap: 12px; align-items: flex-start; }
.ccard-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ccard-name strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clogo { width: 42px; height: 42px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center;
  font-weight: 700; font-size: 15px; flex: none; letter-spacing: .5px; }
.clogo.big { width: 56px; height: 56px; font-size: 19px; border-radius: 14px; }
.company-head { display: flex; gap: 16px; align-items: center; }
.company-head h1 { margin: 0 0 2px; }
.ccard-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tagchip { font-size: 11px; font-weight: 700; letter-spacing: .4px; color: var(--navy); background: #eef3f9; border-radius: 6px; padding: 2px 8px; }
.ccard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ccard-stats.wide { grid-template-columns: repeat(5, 1fr); margin: 14px 0 4px; }
.ccard-stats > div { background: #f6f8fb; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.ccard-stats strong { font-size: 20px; line-height: 1.2; }
.ccard-stats span { font-size: 12px; color: var(--muted); }
.ccard-stats .hot { background: var(--warn-soft); } .ccard-stats .hot strong { color: var(--warn); }
.ccard-foot { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #f0f3f6; padding-top: 10px; }
.ghost-card { background: transparent; border-style: dashed; box-shadow: none; }
@media (max-width: 700px) { .ccard-stats.wide { grid-template-columns: repeat(2, 1fr); } }

/* accounts: company validation */
.validation .checklist { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.validation .check { padding: 10px 12px; font-size: 14px; }
.vbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.vbtns .btn.primary { grid-column: 1 / -1; }
.btn.danger { border-color: #e7b9b5; color: var(--bad); background: #fff; }
.btn.danger:hover { background: var(--bad-soft); }

/* account: bookings are links */
a.bitem { color: var(--ink); text-decoration: none; border-radius: 10px; padding: 14px 10px; margin: 0 -10px; }
a.bitem:hover { background: var(--blue-soft); }
.bitem-r { display: flex; align-items: center; gap: 10px; }
.chev { color: var(--muted); font-size: 22px; line-height: 1; }
.row-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- phone with country code, address suggestions */
.phone-row { display: flex; gap: 8px; }
.phone-row .phone-cc { flex: 0 0 116px; }
.phone-row input { flex: 1; min-width: 0; }
.ac-wrap { position: relative; }
.ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--card); border: 1px solid var(--blue-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16,24,40,.12);
  max-height: 280px; overflow: auto; }
.ac-list li { padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; line-height: 1.35; }
.ac-list li small { display: block; color: var(--muted); font-size: 12px; }
.ac-list li:hover, .ac-list li[aria-selected="true"] { background: var(--blue-soft); }
.ac-list .ac-note { cursor: default; color: var(--muted); font-size: 11px; text-align: right; padding: 4px 8px 2px; }
.ac-list .ac-note:hover { background: none; }
.ac-list .ac-wait { text-align: left; font-size: 13px; padding: 8px 10px; }

/* ---------------------------------------------------------------- Terms & Conditions page */
.terms { padding: 26px 30px; }
.terms h2 { font-size: 16px; margin: 22px 0 8px; color: var(--navy); }
.terms h2:first-child { margin-top: 0; }
.terms ol { margin: 0; padding-left: 26px; }
.terms li { margin: 0 0 10px; line-height: 1.6; color: var(--ink-2); }
.terms .scope { color: var(--muted); font-size: 13px; font-style: italic; }
@media (max-width: 560px) { .terms { padding: 18px 16px; } }


/* credit terms: automatic, only the value that applies */
.credit-val { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--blue-soft); border: 1px solid var(--blue-line); }
.credit-val[hidden] { display: none; }

/* 2026-11-17: office chooser (same domain, several offices) + move a person in the backoffice */
.office.static { cursor: default; }
.btn.center { text-align: center; text-decoration: none; display: block; }
.people li > span:last-child { flex: 1; min-width: 0; }
.people form.move { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; }
.people form.move select { flex: 1 1 160px; width: auto; max-width: 100%; min-height: 32px; padding: 4px 8px; font-size: 13px; }
.people form.move .link-btn { white-space: nowrap; }
