/*!
 * Queen FAM Application 2.0.0 - the approved four-step form.
 *
 * PORTED, NOT REWRITTEN. Every rule below is the design Dianah approved on
 * 8 October 2026 (design/fam/queen-fam-application-preview.html, artifact
 * v18), mechanically scoped under .qfam-app by scripts/scope_css.py. Nothing
 * was restyled in the move, because a hand-retyped stylesheet is how an
 * approved design quietly becomes a different one.
 *
 * WHY EVERY SELECTOR IS PREFIXED. The preview owned a whole page and could
 * use names like .sheet, .f and .opt freely. A WordPress plugin shares the
 * document with a theme, so an unprefixed .band or .go would style the
 * theme's markup and the theme's rules would style ours. Scoping cuts both
 * directions at once and lets the approved class names survive unchanged.
 *
 * FONTS ARE NOT FETCHED FROM HERE. Cormorant Garamond and Jost are the Queen
 * site's own faces, already loaded by the theme, and the stack falls back
 * through Georgia and the system sans if they are not. The plugin does not
 * add a request to fonts.googleapis.com: a third-party font call from a
 * plugin is a performance cost on every page view and sends every visitor's
 * IP address to Google, which is a consent question, not a styling one. A
 * site that needs them can enqueue them from the theme.
 */

/* ---- DEFENSIVE RESET -------------------------------------------------------
   The preview relied on browser defaults for anything it did not set. A theme
   sets those defaults instead - rounded buttons, injected margins, inherited
   text-transform - so the few properties the approved design assumes are
   restated here. This block sits FIRST on purpose: every approved rule below
   it carries higher specificity and wins. */
.qfam-app button{border-radius:0;box-shadow:none;text-shadow:none;margin:0;
  width:auto;min-width:0;min-height:0;line-height:1.7;letter-spacing:normal;
  text-transform:none;-webkit-appearance:none;appearance:none}
.qfam-app button:hover,.qfam-app button:focus{box-shadow:none}
.qfam-app p,.qfam-app h1,.qfam-app h2,.qfam-app h3{margin:0;padding:0}
.qfam-app a{text-decoration:none;box-shadow:none}
.qfam-app input,.qfam-app textarea{box-shadow:none;max-width:none;margin:0}
.qfam-app [hidden]{display:none !important}

/* Layout: espresso trip band above one ivory sheet; four steps inside the sheet,
   the last one a review. Single theme by choice — Queen's fixed brand. */
.qfam-app{--espresso:#1A1512; --ink:#211B18; --ivory:#F9F5ED; --sheet:#FFFDF8;
  --gold:#CDA65D; --gold-deep:#8F6216; --helper:#776D62; --hint:#8A8073;
  --rule:rgba(33,27,24,.16); --line:rgba(33,27,24,.55); --bad:#8C3A24;
  --serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --sans:"Jost",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color-scheme:light;}
.qfam-app *, .qfam-app *::before, .qfam-app *::after{box-sizing:border-box}
/* The preview was a bare page, so this lived on `body`. In the plugin it is
   the wrapper, and it deliberately does NOT paint a background: .band and
   .stage paint themselves, and an espresso wrapper would bleed Queen's hero
   colour across whatever the theme puts around the shortcode. */
.qfam-app{color:var(--ink);font-family:var(--sans);font-size:16px;font-weight:300;
  line-height:1.7;-webkit-font-smoothing:antialiased;text-align:left}


/* ---------------------------------------------------------------- the hero
   An editorial opening, not a schedule panel. The name dominates; the season
   reads like an edition; the three countries run as one line of a curated
   series rather than three rows of a table. Every value is still read from the
   departures — only the treatment changed. */
.qfam-app .band{position:relative;background:var(--espresso);overflow:hidden;
  padding:clamp(40px,5.5vw,68px) 16px clamp(32px,4vw,48px)}

/* A topographic wash, not a photograph: contours at four per cent, drifting off
   the edges. Type stays the hero and nothing behind it competes for contrast. */
.qfam-app .band::before{content:"";position:absolute;inset:-10% -5%;pointer-events:none;
  background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='600' viewBox='0 0 1200 600'>\
<g fill='none' stroke='%23CDA65D' stroke-width='1.1'>\
<path d='M-50 130 C 180 60, 420 190, 640 120 S 1060 40, 1250 120'/>\
<path d='M-50 180 C 180 110, 430 240, 650 172 S 1070 92, 1250 172'/>\
<path d='M-50 232 C 190 164, 440 292, 660 226 S 1080 146, 1250 226'/>\
<path d='M-50 288 C 200 222, 450 346, 670 282 S 1090 204, 1250 282'/>\
<path d='M-50 348 C 210 284, 460 404, 680 342 S 1100 266, 1250 342'/>\
<path d='M-50 412 C 220 350, 470 466, 690 406 S 1110 332, 1250 406'/>\
<path d='M-50 480 C 230 420, 480 532, 700 474 S 1120 402, 1250 474'/>\
</g></svg>");
  background-size:cover;background-position:center;opacity:.055}
.qfam-app .band::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(205,166,93,.55),transparent)}
.qfam-app .band__inner{position:relative;z-index:2;max-width:780px;margin:0 auto;
  text-align:center}
.qfam-app .band__eyebrow{display:block;font-size:10px;letter-spacing:.36em;
  text-transform:uppercase;color:var(--gold);margin:0 0 clamp(12px,1.6vw,16px)}
.qfam-app .band__title{margin:0;font-family:var(--serif);font-weight:300;
  font-size:clamp(40px,7vw,72px);line-height:1;letter-spacing:-.012em;
  color:#FCF9F2;text-wrap:balance}
.qfam-app .band__tag{margin:clamp(12px,1.6vw,16px) 0 0;font-family:var(--serif);
  font-style:italic;font-weight:300;font-size:clamp(17px,2.2vw,22px);
  line-height:1.4;color:rgba(252,249,242,.82);text-wrap:balance}


/* The season reads as an edition: a short rule on either side of a small word. */
/* The season is the edition line, so it carries weight rather than whispering:
   gold, a step larger, on rules that reach to full strength at the text. */
.qfam-app .season{display:flex;align-items:center;gap:16px;
  margin:clamp(26px,3.4vw,36px) auto clamp(14px,1.8vw,19px);max-width:420px;
  font-size:12.5px;font-weight:500;letter-spacing:.3em;text-transform:uppercase;
  color:var(--gold);white-space:nowrap}
.qfam-app .season::before{content:"";flex:1;height:1px;
  background:linear-gradient(90deg,transparent,rgba(205,166,93,.75))}
.qfam-app .season::after{content:"";flex:1;height:1px;
  background:linear-gradient(90deg,rgba(205,166,93,.75),transparent)}


/* COMPACT. One line per departure, three across on desktop and three short
   rows on a phone. The hero introduces the series; the calendar immediately
   below is where an advisor actually chooses, so this must not grow into a
   second schedule. */
.qfam-app .legs{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;
  gap:6px clamp(20px,3.4vw,42px)}
.qfam-app .leg{display:flex;align-items:baseline;gap:9px;white-space:nowrap;
  font-family:var(--sans);font-size:12.5px;line-height:1.5}
.qfam-app .leg__n{font-weight:400;letter-spacing:.2em;text-transform:uppercase;color:#FCF9F2}
/* The separator between a country and its dates. At .6 it measured 3.64:1
   against the espresso — technically exempt, being decorative and
   aria-hidden, but it also simply did not read. Lifted until it does. */
.qfam-app .leg__s{color:rgba(205,166,93,.85)}
.qfam-app .leg__d{font-weight:300;letter-spacing:.11em;text-transform:uppercase;
  color:var(--gold)}
.qfam-app .legs__none{margin:0;max-width:40ch;font-family:var(--serif);font-weight:300;
  font-size:clamp(16px,2vw,19px);line-height:1.5;color:rgba(252,249,242,.68)}


/* The one thing to do on this screen, so it is the brightest small element:
   full-strength gold rule, a step larger, and the arrow nudges on hover. */
.qfam-app .band__go{margin:clamp(24px,3vw,32px) 0 0;background:none;border:0;
  font-family:var(--sans);font-size:12.5px;font-weight:500;letter-spacing:.24em;
  text-transform:uppercase;color:#FCF9F2;cursor:pointer;padding:10px 2px;
  border-bottom:1px solid var(--gold);transition:color .15s}
.qfam-app .band__go:hover{color:var(--gold)}
.qfam-app .band__go:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.qfam-app .band__go span{display:inline-block;margin-left:9px;color:var(--gold);
  transition:transform .18s}
.qfam-app .band__go:hover span{transform:translateY(3px)}
@media (prefers-reduced-motion:reduce){
.qfam-app .band__go span{transition:none}

}
@media (max-width:640px){

  /* Three short rows, not three blocks. */
.qfam-app .legs{flex-direction:column;align-items:center;gap:7px}

}
@media (prefers-reduced-motion:reduce){
.qfam-app *{scroll-behavior:auto}

}
.qfam-app .stage{padding:clamp(16px,3vw,40px) 16px clamp(28px,4vw,56px);
  background:radial-gradient(130% 90% at 50% 8%,#3A2A1C 0%,#241A12 52%,#1A120B 100%)}
.qfam-app .sheet{max-width:660px;margin:0 auto;background:var(--sheet);
  padding:clamp(26px,4vw,46px) clamp(20px,3.4vw,42px) clamp(28px,4vw,44px);
  box-shadow:0 30px 70px rgba(0,0,0,.34)}
.qfam-app .prog{display:flex;align-items:center;gap:14px;margin:0 0 clamp(22px,3vw,30px)}
.qfam-app .prog__n{font-size:10.5px;letter-spacing:.26em;text-transform:uppercase;
  color:var(--gold-deep);white-space:nowrap}
.qfam-app .prog__bars{display:flex;gap:6px;flex:1;min-width:0}
.qfam-app .prog__bar{height:2px;flex:1;background:var(--rule)}
.qfam-app .prog__bar.on{background:var(--gold)}
.qfam-app h2.step__h{margin:0 0 clamp(20px,2.6vw,26px);font-family:var(--serif);font-weight:500;
  font-size:clamp(28px,3.8vw,36px);line-height:1.15;color:#160F0A;text-wrap:balance}
.qfam-app h2.step__h+.step__sub{margin-top:calc(-1 * clamp(14px,1.8vw,18px))}
.qfam-app .step__sub{margin:0 0 clamp(22px,3vw,30px);font-size:14.5px;color:var(--helper)}
.qfam-app .grid{display:grid;gap:clamp(16px,2.4vw,22px)}
.qfam-app .grid--2{grid-template-columns:1fr 1fr}
@media (max-width:540px){
.qfam-app .grid--2{grid-template-columns:1fr}

}
.qfam-app .f{display:flex;flex-direction:column;gap:6px;min-width:0}

/* The question carries the weight. At 300 against a pale ground every label,
   placeholder and helper line sat at the same strength and the page read as
   unfinished rather than restrained. */
.qfam-app .lb{font-size:15px;font-weight:500;color:#1A1512;letter-spacing:.005em}
.qfam-app .hint{font-size:13.5px;font-weight:300;color:var(--helper);margin:-2px 0 2px}
.qfam-app .req{color:var(--gold-deep)}
.qfam-app input[type=text], .qfam-app input[type=email], .qfam-app input[type=tel], .qfam-app textarea{width:100%;font-family:var(--sans);font-size:16.5px;font-weight:300;color:var(--ink);
  background:transparent;border:0;border-bottom:1px solid var(--line);
  border-radius:0;padding:7px 0;appearance:none}
.qfam-app input:focus, .qfam-app textarea:focus{outline:2px solid var(--gold);outline-offset:3px}
.qfam-app ::placeholder{color:var(--hint);opacity:1}
.qfam-app textarea{resize:vertical;min-height:80px;line-height:1.6}
.qfam-app .count{font-size:12.5px;color:var(--helper);text-align:right}


/* ---- Queen's dropdown. Not the browser's: a native select paints its open
   list in the operating system's own blue, which belongs to no brand. ---- */
.qfam-app .sel{position:relative}
.qfam-app .sel__btn{width:100%;display:flex;align-items:center;gap:10px;text-align:left;
  font-family:var(--sans);font-size:16.5px;font-weight:300;color:var(--ink);
  background:transparent;border:0;border-bottom:1px solid var(--line);
  padding:7px 0;cursor:pointer}
.qfam-app .sel__btn[data-empty="1"]{color:var(--hint)}
.qfam-app .sel__val{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qfam-app .sel__car{width:9px;height:9px;flex:none;border-right:1px solid var(--gold-deep);
  border-bottom:1px solid var(--gold-deep);transform:rotate(45deg) translate(-2px,-2px)}
.qfam-app .sel.open .sel__car{transform:rotate(225deg) translate(-3px,-3px)}
.qfam-app .sel__btn:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.qfam-app .sel__panel{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 4px);
  background:var(--sheet);border:1px solid var(--rule);
  box-shadow:0 18px 40px rgba(26,21,18,.22);max-height:280px;overflow:auto;
  padding:5px}
.qfam-app .sel:not(.open) .sel__panel{display:none}
.qfam-app .sel__find{width:100%;font-family:var(--sans);font-size:15px;font-weight:300;
  padding:8px 9px;margin:0 0 4px;border:0;border-bottom:1px solid var(--rule);
  background:var(--ivory);color:var(--ink)}
.qfam-app .sel__opt{display:block;width:100%;text-align:left;background:transparent;border:0;
  font-family:var(--sans);font-size:15.5px;font-weight:300;color:var(--ink);
  padding:9px 10px;cursor:pointer}
.qfam-app .sel__opt:hover, .qfam-app .sel__opt.cursor{background:rgba(205,166,93,.16)}
.qfam-app .sel__opt[aria-selected="true"]{color:var(--gold-deep)}
.qfam-app .sel__none{padding:10px;font-size:14px;color:var(--helper)}
.qfam-app .tel{display:flex;gap:12px;align-items:flex-end}
.qfam-app .tel .sel{flex:0 0 118px}
.qfam-app .tel input{flex:1;min-width:0}
.qfam-app .opts{display:flex;flex-wrap:wrap;gap:9px}
.qfam-app .opt{position:relative}
.qfam-app .opt input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0}

/* A DELIBERATE CHOICE, NOT AN EMPTY BOX. Chosen is gold on espresso text and
   unmistakable at a glance; unchosen is paper with a gold-tinted edge. Square,
   because Queen's geometry is square. */
.qfam-app .opt span{display:block;padding:11px 20px;border:1px solid rgba(143,98,22,.32);
  background:var(--ivory);font-size:14px;font-weight:400;letter-spacing:.06em;
  color:#2B2521;cursor:pointer;
  transition:border-color .14s,background-color .14s,color .14s}
.qfam-app .opt span:hover{border-color:var(--gold);background:rgba(205,166,93,.1)}
.qfam-app .opt input:checked+span{background:var(--gold);border-color:#B88F43;color:#1F1B17;
  font-weight:500}
.qfam-app .opt input:checked+span:hover{background:#C9A057}
.qfam-app .opt input:focus-visible+span{outline:2px solid var(--gold-deep);outline-offset:2px}
.qfam-app .opt--wide{flex:1 1 230px}
.qfam-app .opt--wide span{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.qfam-app .opt__price{font-size:13px;letter-spacing:.03em;color:var(--gold-deep);white-space:nowrap;
  font-style:normal;font-weight:500}
.qfam-app .opt input:checked+span .opt__price{color:#5A3E0B}
.qfam-app .opt__price--none{color:var(--bad);font-weight:400}

/* THE CONSEQUENCE OF THE ANSWER, BESIDE IT. "Will you share a room?" is a
   yes/no whose meaning is a rooming decision, so each option carries what it
   actually books - one Double, or two Singles - rather than leaving the
   advisor to infer it. A quiet note, never a second label. */
.qfam-app .opt__note{font-size:13px;letter-spacing:.01em;color:var(--helper);
  font-style:normal;font-weight:300;text-align:right}
.qfam-app .opt input:checked+span .opt__note{color:#5A3E0B}

/* A ROOM THAT WAS DECIDED, NOT ASKED. With a companion the room follows the
   one rooming answer, so the departure states it. Deliberately NOT styled as
   a control: nothing here is clickable, because a second control is how the
   two answers would come to disagree. */
.qfam-app .trip__roomset{margin:0;font-size:15px;font-weight:400;color:var(--ink);
  display:flex;justify-content:space-between;gap:12px;align-items:baseline;
  padding:10px 14px;border:1px solid rgba(31,27,23,.14);border-radius:2px;
  background:rgba(205,166,93,.07)}
.qfam-app .trip__roomset em{font-size:13px;letter-spacing:.03em;font-style:normal;
  font-weight:500;color:var(--gold-deep);white-space:nowrap}


/* THE PRICE SUMMARY. Informational at application stage, and Salesforce's
   figure either way: the browser multiplies for display and sends nothing but
   the departure, the room and the party size. */
.qfam-app .sum{margin:2px 0 0;padding:14px 16px;background:rgba(205,166,93,.13);
  display:grid;gap:3px}
.qfam-app .sum__k{font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;
  color:var(--gold-deep)}
.qfam-app .sum__l{font-size:14.5px;color:#1A1512}
.qfam-app .sum__t{font-size:16px;font-weight:500;color:#1A1512;
  font-variant-numeric:tabular-nums}


/* ONE BLOCK PER SELECTED TRIP. Three FAMs are three journeys with their own
   approval, capacity, room and price, so the form shows them apart rather than
   merging them into a single choice. */
/* YEAR TABS — a rule with the chosen year sitting on it, not a row of pills. */
.qfam-app .years{display:flex;gap:clamp(18px,3vw,34px);align-items:flex-end;
  border-bottom:1px solid var(--rule);margin:0 0 clamp(18px,2.4vw,24px)}
.qfam-app .year{background:none;border:0;padding:0 0 12px;margin-bottom:-1px;cursor:pointer;
  font-family:var(--serif);font-size:clamp(22px,2.8vw,27px);font-weight:400;
  color:var(--hint);border-bottom:2px solid transparent;
  font-variant-numeric:tabular-nums;transition:color .15s,border-color .15s}
.qfam-app .year:hover{color:#2B2521}
.qfam-app .year[aria-selected="true"]{color:#1A1512;border-bottom-color:var(--gold)}
.qfam-app .year:focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px}
.qfam-app .year__n{font-family:var(--sans);font-size:12px;font-weight:400;letter-spacing:.06em;
  color:var(--gold-deep)}


/* Preview data, marked wherever it appears. */
.qfam-app .tag{display:inline-block;font-family:var(--sans);font-size:9.5px;font-weight:400;
  letter-spacing:.2em;text-transform:uppercase;color:#6B5A3A;
  background:rgba(33,27,24,.08);padding:3px 7px;vertical-align:2px}
.qfam-app .band .tag{color:rgba(252,249,242,.75);background:rgba(252,249,242,.14)}
.qfam-app .hero__list{display:grid;gap:7px;margin:clamp(16px,2.2vw,22px) auto 0;
  max-width:30ch;text-align:left}
.qfam-app .hero__row{display:flex;justify-content:space-between;gap:14px;align-items:baseline;
  font-size:14px;letter-spacing:.09em;text-transform:uppercase;
  color:rgba(252,249,242,.88)}
.qfam-app .hero__row b{font-weight:400;color:#FCF9F2}
.qfam-app .hero__k{display:block;margin:clamp(18px,2.4vw,24px) 0 0;font-size:10.5px;
  letter-spacing:.26em;text-transform:uppercase;color:var(--gold)}


/* A DEPARTURE, NOT A CARD IN A GRID. A row the whole width of the sheet, with
   the country leading and the choice at the end. */
.qfam-app .dep{display:flex;align-items:baseline;gap:14px;width:100%;text-align:left;
  background:none;border:0;border-bottom:1px solid var(--rule);
  padding:clamp(15px,2vw,19px) 0;cursor:pointer;font-family:var(--sans);
  transition:background-color .14s}
.qfam-app .dep:first-child{border-top:1px solid var(--rule)}
.qfam-app .dep:hover{background:rgba(205,166,93,.07)}
.qfam-app .dep:focus-visible{outline:2px solid var(--gold-deep);outline-offset:-2px}
.qfam-app .dep__name{font-size:15px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;
  color:#1A1512;flex:0 0 auto}
.qfam-app .dep__when{flex:1;min-width:0;font-size:15px;font-weight:300;color:var(--helper)}
.qfam-app .dep__pick{flex:0 0 auto;font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--gold-deep);white-space:nowrap}
.qfam-app .dep[aria-pressed="true"]{background:rgba(205,166,93,.14)}
.qfam-app .dep[aria-pressed="true"] .dep__when{color:#2B2521}
.qfam-app .dep[aria-pressed="true"] .dep__pick{color:#1F1B17;background:var(--gold);
  padding:4px 11px}
@media (max-width:540px){
.qfam-app .dep{flex-wrap:wrap;gap:4px 12px}
.qfam-app .dep__when{flex:1 1 100%;order:3}

}
.qfam-app .picked__h{display:flex;align-items:baseline;gap:12px;
  margin:clamp(28px,3.4vw,36px) 0 0;padding:0 0 8px;
  border-bottom:1px solid rgba(205,166,93,.4)}
.qfam-app .picked__h span{font-size:11px;letter-spacing:.24em;text-transform:uppercase;
  color:var(--gold-deep)}
.qfam-app .picked__none{margin:14px 0 0;font-size:14.5px;color:var(--helper)}
.qfam-app .trip{display:grid;gap:12px;padding:clamp(16px,2.2vw,20px) 0;
  border-top:1px solid var(--rule)}
.qfam-app .trip:first-child{border-top:0}
/* REMOVE WAS A 20px TAP TARGET. The underline has to stay on the words, so
   the target is grown with padding and the rule is drawn on an inner span
   instead — the link looks identical and a thumb can actually hit it. */
.qfam-app .trip__drop{background:none;border:0;padding:12px 4px;margin:-12px -4px 0;
  cursor:pointer;justify-self:start;min-height:44px;display:inline-flex;
  align-items:center;font-family:var(--sans);font-size:11px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--helper)}
.qfam-app .trip__drop > span{border-bottom:1px solid var(--rule);padding-bottom:2px}
.qfam-app .trip__drop:hover{color:var(--bad)}
.qfam-app .trip__drop:hover > span{border-bottom-color:var(--bad)}
.qfam-app .trip__drop:focus-visible{outline:2px solid var(--gold-deep);outline-offset:2px}
.qfam-app .trip__name{font-size:11px;font-weight:400;letter-spacing:.26em;text-transform:uppercase;
  color:var(--gold-deep)}
.qfam-app .trip__when{font-size:15.5px;color:#1A1512}
.qfam-app .trip__when strong{font-weight:500}
.qfam-app .trip__room .lb{font-size:13.5px;font-weight:400;color:var(--helper);
  display:block;margin:0 0 7px}

/* This line is the ANSWER to "why is Uganda $1,300 more", so it is set to be
   read rather than noticed in passing — espresso at the body size, with the
   gold kept to a short rule. Not a badge and not an alert: still a sentence in
   the flow of the trip. */
.qfam-app .trip__inc{margin:-4px 0 0;padding:0 0 0 13px;position:relative;
  font-size:15px;font-weight:400;color:#1A1512;letter-spacing:.005em;line-height:1.5}
.qfam-app .trip__inc::before{content:"";position:absolute;left:0;top:.42em;bottom:.42em;
  width:2px;background:var(--gold)}
.qfam-app .check{display:flex;gap:11px;align-items:flex-start;cursor:pointer;font-size:14.5px;
  line-height:1.6;color:#2B2521}
.qfam-app .check input{margin:4px 0 0;accent-color:var(--gold-deep);width:16px;height:16px;flex:none}
.qfam-app .err{font-size:13px;color:var(--bad)}
.qfam-app .f.bad input, .qfam-app .f.bad textarea, .qfam-app .f.bad .sel__btn{border-bottom-color:var(--bad)}


/* ---- review ---- */
.qfam-app .rev{display:grid;gap:clamp(20px,2.6vw,26px)}
.qfam-app .rev__grp{display:grid;gap:10px}
.qfam-app .rev__h{display:flex;align-items:baseline;gap:12px;
  border-bottom:1px solid var(--rule);padding-bottom:8px}
.qfam-app .rev__h span{flex:1;font-size:11px;letter-spacing:.24em;text-transform:uppercase;
  color:var(--gold-deep)}
.qfam-app .rev__edit{background:none;border:0;font-family:var(--sans);font-size:11.5px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--helper);cursor:pointer;padding:0}
.qfam-app .rev__edit:hover{color:var(--gold-deep)}
.qfam-app .rev__row{display:flex;gap:16px;align-items:baseline;flex-wrap:wrap}
.qfam-app .rev__k{flex:0 0 190px;font-size:13.5px;color:var(--helper)}
@media (max-width:540px){
.qfam-app .rev__k{flex:1 1 100%}

}
.qfam-app .rev__v{flex:1;min-width:0;font-size:15.5px;color:var(--ink)}
.qfam-app .rev__v em{font-style:normal;color:var(--hint)}


/* ---- the eligibility gate ---- */
/* A CHANGE OF DIRECTION, NOT A REJECTION.
   This was a large cream card with a gold rule and two heavy buttons, which read
   as an error panel and gave the exit more presence than the application itself.
   Now it is two quiet lines and two text links, directly under the answer that
   produced them. */
/* A CHANGE OF DIRECTION THAT STILL HAS PRESENCE.
   First it was a cream card with a gold rule, which read as an error. Then it
   was two grey lines, which read as nothing at all. This sits on espresso: the
   same ground as the trip band, so it belongs to the page rather than
   interrupting it, and the two journeys are what the eye lands on. */
.qfam-app .gate{margin:6px 0 0;padding:clamp(22px,2.8vw,28px) clamp(22px,2.8vw,30px);
  background:var(--espresso);position:relative}
.qfam-app .gate::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;
  background:linear-gradient(90deg,var(--gold),rgba(205,166,93,.15))}
.qfam-app .gate__h{margin:0 0 6px;font-family:var(--serif);font-weight:400;
  font-size:clamp(20px,2.5vw,25px);line-height:1.3;color:#FCF9F2;max-width:28ch}
.qfam-app .gate__p{margin:0 0 clamp(16px,2vw,20px);font-size:14.5px;
  color:rgba(252,249,242,.68)}
.qfam-app .gate__ctas{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center}
/* ON A PHONE THEY STACK AND FILL THE WIDTH. Side by side at 320px the second
   button wrapped onto two lines and lost its shape, and a 22px-padded link is
   a small target for a thumb. */
@media (max-width:460px){
  .qfam-app .gate__ctas{display:grid;grid-template-columns:1fr;gap:10px}
  .qfam-app .cta{text-align:center;padding:15px 18px;letter-spacing:.14em}
}
/* THE SECONDARY BUTTON TAKES ITS COLOUR FROM WHAT IT SITS ON.
   It was written once, for the espresso gate panel, in near-white — and then
   reused on the ivory sheet, where near-white on #FFFDF8 is invisible. A
   button nobody can see is worse than no button: the page offers a way out
   and then hides it.

   Two custom properties fix it structurally rather than by patching one
   screen. PAPER IS THE DEFAULT, deliberately: a CTA dropped anywhere new
   lands on the sheet far more often than on espresso, so the safe case is
   the one that needs no thought. .gate overrides them for its dark ground. */
.qfam-app{--cta-ink:#2B2521;--cta-edge:rgba(143,98,22,.5)}
.qfam-app .gate{--cta-ink:#F6EEDC;--cta-edge:rgba(205,166,93,.55)}
.qfam-app .cta{display:inline-block;font-family:var(--sans);font-size:11.5px;font-weight:500;
  letter-spacing:.18em;text-transform:uppercase;text-decoration:none;cursor:pointer;
  padding:13px 22px;border:1px solid var(--cta-edge);color:var(--cta-ink);
  background:transparent;transition:background-color .15s,color .15s,border-color .15s}
.qfam-app .cta:hover{background:var(--gold);border-color:var(--gold);color:#1F1B17}
.qfam-app .cta:focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px}
.qfam-app .cta--first{background:var(--gold);border-color:var(--gold);color:#1F1B17}
.qfam-app .cta--first:hover{background:#DDB871;border-color:#DDB871}
.qfam-app .cta::after{content:" \2192"}


/* chips for a multi-select */
.qfam-app .chips{display:flex;flex-wrap:wrap;gap:7px;margin:2px 0 0}
.qfam-app .chip{font-size:12.5px;letter-spacing:.04em;padding:5px 11px;
  background:rgba(205,166,93,.16);color:#2B2521}
.qfam-app .sel__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:8px 10px 4px;margin:4px 0 0;border-top:1px solid var(--rule);
  font-size:12.5px;color:var(--helper)}
.qfam-app .sel__done{background:none;border:0;font-family:var(--sans);font-size:11.5px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--gold-deep);cursor:pointer;padding:4px}
.qfam-app .nav{display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  margin-top:clamp(28px,3.6vw,38px);padding-top:clamp(20px,2.6vw,26px);
  border-top:1px solid var(--rule)}
.qfam-app .go{font-family:var(--sans);font-size:12px;font-weight:400;letter-spacing:.2em;
  text-transform:uppercase;color:#1F1B17;background:var(--gold);border:0;
  padding:15px 30px;cursor:pointer;transition:background-color .15s}
.qfam-app .go:hover{background:#BC9350}
.qfam-app .back{background:none;border:0;font-family:var(--sans);font-size:12px;
  letter-spacing:.18em;text-transform:uppercase;color:var(--helper);cursor:pointer;padding:15px 0}
.qfam-app .back:hover{color:var(--ink)}
.qfam-app .spacer{flex:1}
.qfam-app .msg{width:100%;font-size:14px;color:var(--bad);margin:0}
.qfam-app .done__eyebrow{font-size:11px;letter-spacing:.26em;text-transform:uppercase;
  color:var(--gold-deep);margin:0 0 10px}
.qfam-app .done__title{margin:0 0 18px;font-family:var(--serif);font-weight:400;
  font-size:clamp(26px,3.6vw,34px);line-height:1.22;text-wrap:balance}
.qfam-app .refs{display:grid;margin:0 0 clamp(20px,2.6vw,26px);
  border-top:1px solid rgba(205,166,93,.35);
  border-bottom:1px solid rgba(205,166,93,.35)}
.qfam-app .refs__k{padding:12px 0 6px;font-size:10.5px;letter-spacing:.24em;
  text-transform:uppercase;color:var(--gold-deep)}
.qfam-app .refs__r{display:flex;justify-content:space-between;gap:16px;align-items:baseline;
  padding:13px 0;font-size:15.5px;color:#1A1512}
.qfam-app .refs__r+.refs__r{border-top:1px solid rgba(33,27,24,.1)}
.qfam-app .refs__n{font-weight:500;letter-spacing:.04em;font-variant-numeric:tabular-nums;
  white-space:nowrap}
.qfam-app .done__lede{margin:0;color:var(--helper);font-size:15.5px}
.qfam-app .note{max-width:660px;margin:clamp(18px,2.4vw,26px) auto 0;font-size:12.5px;
  line-height:1.7;color:rgba(252,249,242,.55);text-align:center}

/* ---- REVIEW MODE -----------------------------------------------------------
   Only an administrator ever sees this, and only while qfam_live_submit is
   off. Deliberately loud: the one thing worse than a form that cannot submit
   is a form that cannot submit and does not say so. */
.qfam-app .qfam-ribbon{margin:0 0 clamp(18px,2.4vw,24px);padding:0 0 0 11px;
  border-left:2px solid var(--gold);font-size:11.5px;letter-spacing:.04em;
  line-height:1.5;color:var(--helper)}

/* ---- PRIMATE TREKKING ------------------------------------------------------
   Sits inside a selected departure, below the room, because it belongs to
   that trip and to nobody else's. Quieter than the room question on purpose:
   the room decides what the advisor pays, this decides what Queen buys, and
   the hierarchy should say which is which. */
.qfam-app .trek{margin:clamp(14px,1.8vw,18px) 0 0;padding:clamp(14px,1.8vw,17px) 0 0;
  border-top:1px solid var(--rule)}
.qfam-app .trek__h{margin:0 0 3px;font-size:13.5px;font-weight:500;color:#1A1512;
  letter-spacing:.005em}
.qfam-app .trek__p{margin:0 0 clamp(11px,1.4vw,14px);font-size:12.5px;font-weight:300;
  line-height:1.55;color:var(--helper);max-width:52ch}
.qfam-app .trek__who{margin:0 0 clamp(10px,1.2vw,13px)}
.qfam-app .trek__who:last-child{margin-bottom:0}
/* 2.5.2 paid primate permits: the refund note under the question, small and quiet. */
.qfam-app .trek--paid .trek__who:last-of-type{margin-bottom:0}
.qfam-app .trek__note{margin:clamp(10px,1.2vw,12px) 0 0;font-size:12px;font-weight:300;font-style:italic;
  line-height:1.55;color:var(--helper);max-width:56ch}
.qfam-app .trek__who .lb{font-size:13px;font-weight:400;color:var(--helper)}
/* A tick, not a radio: more than one permit can be chosen per person. The
   chip treatment is the approved one, so it reads as the same family of
   control as every other choice on the page. */
.qfam-app .trek .opt span{padding:10px 17px;font-size:13.5px}


/* A ROOM QUEEN CANNOT GIVE.  12 Oct 2026.
   Shown, not hidden: an option that vanishes makes the applicant wonder what
   they missed, while a visibly unavailable one answers the question before it
   is asked. Muted and unclickable, never styled as an error - nothing has
   gone wrong, there simply is not one left.

   THE NUMBER IS NEVER HERE. Queen's room limits are operational; the count is
   not sent to the browser at all, so it cannot leak into the page. */
.qfam-app .opt--gone span{
  opacity:.42;cursor:not-allowed;
  border-style:dashed;
  background:transparent;
}
.qfam-app .opt--gone span:hover{
  border-color:var(--rule);background:transparent;
}
.qfam-app .hint--gone{
  margin-top:10px;color:var(--helper);
  border-left:2px solid var(--gold);padding-left:12px;
}

/* AN OPTION THAT CARRIES A NOTE. Name and price share the top line; the
   explanation sits beneath them, full width. All three in one flex row
   crushed "I'm comfortable sharing with another FAM participant" into a
   column one word wide. */
.qfam-app .opt--wide span{flex-wrap:wrap;row-gap:2px}
.qfam-app .opt__name{flex:1 1 auto;font-weight:inherit}
.qfam-app .opt--wide .opt__note{flex:0 0 100%;text-align:left;
  font-size:13px;font-style:normal;font-weight:300;color:var(--helper);
  line-height:1.45}
.qfam-app .opt input:checked+span .opt__note{color:#5A3E0B}

/* THE DIALLING-CODE LIST NEEDS ITS OWN WIDTH.  13 Oct 2026.
   Queen found it: opening the country code produced a 38px strip with the
   country names broken one letter per line and a scrollbar down the middle.

   The panel is left:0;right:0 of its control, and that control is the narrow
   "+1" button beside the number - so the list inherited the button's width.
   Every other select on the form is full width, which is why only this one
   looked broken.

   Core already solved this for its own markup:
       .qej-tel .qej-sel__panel{width:min(340px,calc(100vw - 56px));}
   FAM uses its own class names and never got the equivalent. Same rule,
   same numbers: wide enough for the longest country name, and never wider
   than the phone it is being read on. */
.qfam-app .tel .sel__panel{
  width:min(340px, calc(100vw - 56px));
  right:auto;
}

/* ==========================================================================
   2.4.4 (19 Nov 2026) LIGHT, LUXURY. Queen: "the interface is so dark and
   weird - make it seamless and ultra luxury". The espresso band and the dark
   stage become warm ivory with gold hairlines; the sheet is white on a soft
   shadow. Approved from a preview of the live form. Wording, layout and
   behaviour are unchanged - colour, light and depth only.
   ========================================================================== */
.qfam-app{--ink:#2A2119;--espresso:#2A2119}
.qfam-app .band{background:linear-gradient(180deg,#FCF9F3 0%,#F5EEE2 100%);
  border-top:1px solid rgba(176,138,72,.35);border-bottom:1px solid rgba(176,138,72,.35)}
.qfam-app .band::before{opacity:.035}
.qfam-app .band *{color:#4A3B2C}
.qfam-app .band__title{color:#2A2119;font-weight:300;letter-spacing:.005em}
.qfam-app .band__tag{color:#7A6650}
.qfam-app .band [class*="eyebrow"], .qfam-app .band [class*="kicker"], .qfam-app .band small{color:#A07A3C;letter-spacing:.32em}
.qfam-app .band__go{color:#2A2119;border-bottom:1px solid #B08A48}
.qfam-app .band [class*="legs"] b, .qfam-app .band [class*="legs"] strong{color:#2A2119}
.qfam-app .band [class*="legs"] span{color:#9A7A45}
.qfam-app .stage{background:radial-gradient(120% 80% at 50% 0%,#FFFDF9 0%,#F7F1E7 55%,#EFE6D7 100%)}
.qfam-app .sheet{background:#FFFFFF;border:1px solid rgba(176,138,72,.22);border-radius:2px;
  box-shadow:0 40px 90px -30px rgba(74,52,24,.22),0 2px 0 #C9A25A inset}
.qfam-app h2.step__h{color:#2A2119;letter-spacing:.01em}
.qfam-app .go{background:linear-gradient(180deg,#D3AF68,#B8924B);color:#1F1810;border:0;letter-spacing:.22em;
  box-shadow:0 10px 24px -12px rgba(140,100,40,.55)}

/* ==========================================================================
   2.5.0 — PRIVATE FAM (23 Nov 2026)
   The May series and the private dates sit on the same sheet as two plainly
   labelled lists, rows not cards, in the house colours. Legible sizes and
   strong contrast throughout (Queen's readability rule).
   ========================================================================== */
.qfam-app .legs__priv{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;
  gap:6px 10px;margin:14px 0 0;text-align:center}
.qfam-app .deps__h{margin:clamp(26px,3vw,32px) 0 10px;font-size:12px;font-weight:500;
  letter-spacing:.24em;text-transform:uppercase;color:#7A5414}
.qfam-app .deps__h:first-child{margin-top:0}
.qfam-app .deps__h + .dep,
.qfam-app .tier__name + .dep{border-top:1px solid var(--rule)}
.qfam-app .privs__lede{margin:0 0 4px;max-width:62ch;font-size:15px;line-height:1.55;color:#2B2530}
.qfam-app .tier{margin:clamp(16px,2vw,20px) 0 0}
.qfam-app .tier__name{margin:0 0 6px;font-family:var(--serif);font-size:23px;font-weight:500;
  color:#2A2230}
.qfam-app .tier--focus{border-left:2px solid var(--gold);padding-left:14px}
.qfam-app .dep--priv .dep__when{color:#2B2530;font-weight:400}
.qfam-app .privs{margin-top:clamp(30px,3.4vw,40px)}
/* Legibility (Queen's rule, 23 Nov 2026): no pale labels on the form. */
.qfam-app .picked__h span{color:#7A5414;font-size:12px;font-weight:500}
.qfam-app .trip__name{color:#7A5414;font-weight:500}
.qfam-app p.hint{color:#5E5560;font-weight:400}
