@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@200;300;400;500&display=swap');
/*!
 * Queen Referral Partner Application - the page shell.
 *
 * DERIVED FROM THE APPROVED INQUIRE FOR YOUR CLIENT SHELL, renamed .qadv-.
 * Same hero proportions, same ivory sheet, same text hierarchy, same field
 * rhythm. Queen's rule is to reuse the established pages rather than invent a
 * design language per form, and an application from a stranger should look
 * like it belongs to the same company as everything else.
 *
 * WHAT IS NOT IN HERE, AND MUST NEVER BE COPIED IN
 *   The design tokens and every shared component - the field rule, the
 *   dropdown panel, the buttons, the error styling, the phone row - live in
 *   Queen Forms Core's queen-ui.css, which loads first. Everything named
 *   .qej-* below is a CONTEXT for one of those, never a redefinition.
 *
 * This form is ONE SCREEN, so the step frame, the progress header and the
 * review panel inherited from the four-step form are unused here. They are
 * left in place rather than pruned by guesswork; see the readme.
 */


/* ==========================================================================
   THE PAGE
   ========================================================================== */
.qadv-app{
  /* ------------------------------------------------------------------
     TEXT HIERARCHY

     Four levels, deliberately spaced, measured against the ivory sheet:

       value        #211B18  15.6:1   what the advisor entered - dominant
       label        #2B2521  13.9:1   the question - clearly present
       helper       #776D62   4.7:1   asides under a field - quiet
       placeholder  #8A8073   3.6:1   the empty prompt - quietest

     Core's shared tone for the bottom two is #5C5248 at 7.0:1, close enough
     to the label to compete with it - and a placeholder set at 17.5px carries
     far more weight than a 14px label does at the same contrast.

     WHY THE TWO ARE NOT THE SAME VALUE
     Helper text is real content the advisor should read, and it is set small
     at 13.5px, so it stays above the 4.5:1 floor for normal text. A
     placeholder is a disposable prompt that disappears the moment anything is
     typed, is never the only way a field is described - every field here has
     a real <label> - and is set large at 17.5px. It sits at 3.6:1, above the
     3:1 floor, which is the lightest this can go before it starts to be hard
     to read on the ivory sheet.

     Scoped to this form only; Core and Plan My Journey are untouched.
     ------------------------------------------------------------------ */
  --qadv-placeholder:#8A8073;
  --qadv-helper:#776D62;

  position:relative;
  color:var(--qej-espresso);background:var(--qej-ivory);
  font-family:var(--qej-sans);font-size:16px;font-weight:400;line-height:1.7;
  -webkit-font-smoothing:antialiased;
  /* As wide as the column it is placed in. No viewport-escaping margin and no
     overflow rule: `overflow-x:clip` with a visible Y axis silently promotes Y
     to `auto`, which is what boxes a form inside its own scrollbar. The
     WordPress page does all the scrolling.
     For edge-to-edge ivory, set the Elementor SECTION background to #F9F5ED
     and give the section Full Width / no padding. */
  width:100%;max-width:100%;padding:0;
}
.qadv-app *,.qadv-app *::before,.qadv-app *::after{box-sizing:border-box;}
.qadv-app [hidden]{display:none !important;}

.qadv-body{
  padding:clamp(18px,2.6vw,40px) clamp(14px,3.2vw,44px) clamp(22px,3vw,48px);
  background-color:#241A12;
  background-image:
    linear-gradient(to bottom, rgba(26,18,11,.34) 0%, rgba(26,18,11,.22) 38%,
                               rgba(26,18,11,.30) 70%, rgba(26,18,11,.50) 100%),
    var(--qej-photo, var(--qej-photo-fallback));
  background-repeat:no-repeat,no-repeat;
  background-size:cover,cover;
  background-position:center,center 32%;}

/* THE SHEET - the form sits on the photograph as a sheet of warm ivory. */
.qadv-wrap{
  width:100%;max-width:680px;margin:0 auto;
  background-color:var(--qej-ivory);
  background-image:
    radial-gradient(120% 58% at 50% -6%, rgba(255,253,248,.98) 0%, rgba(255,253,248,0) 62%),
    radial-gradient(150% 120% at 50% 42%, rgba(255,253,248,0) 52%, rgba(146,120,74,.05) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23g)' opacity='.085'/%3E%3C/svg%3E");
  background-repeat:no-repeat,no-repeat,repeat;
  background-size:auto,auto,150px 150px;
  background-position:center top,center center,center top;
  border-radius:5px;
  padding:clamp(24px,2.8vw,44px) clamp(22px,3vw,48px) clamp(24px,2.8vw,40px);
  box-shadow:0 40px 90px -46px rgba(18,12,6,.72),
             0 2px 10px rgba(18,12,6,.16),
             inset 0 1px 0 rgba(255,255,255,.5);}

/* ==========================================================================
   HERO - a shallow cinematic band above the inquiry.

   Identical to the approved Plan My Journey hero in every proportion. Only two
   things differ, and both are content: the eyebrow reads "Inquire for Your
   Client" and the heading reads "Your Client. An Extraordinary Journey."
   ========================================================================== */
.qadv-hero{position:relative;display:flex;align-items:center;
  width:100%;height:clamp(320px,25vw,400px);overflow:hidden;
  /* sampled from the footage itself, so there is never a black or blank flash
     while the poster decodes */
  background:#3E78A5;}
.qadv-hero__video{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:50% 50%;border:0;pointer-events:none;
  display:block;}
.qadv-hero__scrim{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to bottom,
    rgba(18,26,32,.26) 0%, rgba(18,26,32,.15) 44%,
    rgba(18,26,32,.03) 76%, rgba(18,26,32,0) 100%);}
/* the seam into the warm ivory: one gold hairline, nothing else */
.qadv-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;
  background:rgba(205,166,93,.62);z-index:3;}
.qadv-hero__inner{position:relative;z-index:2;width:100%;
  padding:0 clamp(20px,5vw,56px);}
.qadv-hero__box{width:100%;max-width:680px;margin:0 auto;}

/* The eyebrow. Title case in the markup; the uppercase and the gold
   letter-spacing are applied here, exactly as Plan My Journey does it.

   NO max-width, deliberately. A `ch` cap was tried and wrapped this onto two
   lines: the ch unit measures a zero character and knows nothing about
   letter-spacing, so at .34em of tracking a 26ch cap computes to roughly 138px
   while the text actually needs about 216px. The hero box is 680px, so the
   line has ample room and needs no cap at all. */
.qadv-hero__eyebrow{display:block;margin:0 0 13px;
  font-family:var(--qej-sans);font-size:10.5px;font-weight:400;letter-spacing:.34em;
  text-transform:uppercase;color:#F0DBB0;
  text-shadow:0 1px 2px rgba(12,22,30,.5), 0 1px 14px rgba(12,22,30,.55);}

/* The heading. Same face, same scale, same shadow as the approved hero.
   38 characters against Plan My Journey's 29, so the measure is 22ch rather
   than 20ch. The type size is NOT reduced. */
.qadv-hero__title{margin:0;font-family:var(--qej-serif);font-weight:400;
  font-size:clamp(30px,4.2vw,50px);line-height:1.06;letter-spacing:-.012em;
  color:#FFFCF5;max-width:22ch;
  text-shadow:0 1px 2px rgba(12,22,30,.42), 0 2px 30px rgba(12,22,30,.5);}

/* ==========================================================================
   THE INTRODUCTION
   Plan My Journey has none; it goes straight to the first question. This one
   line belongs to the advisor form. Set in the serif italic used by the
   progress label, so it reads as an aside rather than as a second heading.
   ========================================================================== */
.qadv-intro{margin:0 0 clamp(20px,2.6vw,30px);
  font-family:var(--qej-serif);font-size:clamp(17px,1.6vw,19.5px);
  font-style:italic;font-weight:400;line-height:1.55;letter-spacing:.005em;
  color:var(--qej-muted);max-width:52ch;}

/* ==========================================================================
   PROGRESS - 01 - 04 and one hairline. Nothing more.
   ========================================================================== */
.qadv-prog{position:relative;display:flex;align-items:baseline;gap:14px;
  padding-bottom:11px;margin-bottom:clamp(24px,3vw,34px);
  border-bottom:1px solid var(--qej-rule);}
.qadv-prog__count{font-size:11px;font-weight:400;letter-spacing:.26em;
  color:var(--qej-espresso);font-variant-numeric:tabular-nums;}
.qadv-prog__count b{font-weight:600;}
.qadv-prog__count i{font-style:normal;color:rgba(33,27,24,.62);}
.qadv-prog__label{margin-left:auto;font-family:var(--qej-serif);
  font-size:17px;font-style:italic;font-weight:400;letter-spacing:.01em;
  color:var(--qej-charcoal);}
.qadv-prog__track{position:absolute;left:0;right:0;bottom:-1px;height:1px;
  background:transparent;}
.qadv-prog__track i{display:block;height:1px;background:var(--qej-gold);
  width:25%;transition:width .6s var(--qej-ease);}

/* ==========================================================================
   THE STEP AND ITS QUESTION
   ========================================================================== */
.qadv-step{display:none;}
.qadv-step.qej-on{display:block;}
@keyframes qifcRise{from{opacity:0;transform:translateY(14px);}
                    to{opacity:1;transform:none;}}
.qadv-step.qej-on{animation:qifcRise .6s var(--qej-ease) backwards;}
.qadv-q{margin:0 0 clamp(26px,3.6vw,42px);
  font-family:var(--qej-serif);font-weight:500;
  font-size:clamp(32px,5.4vw,52px);line-height:1.05;letter-spacing:-.017em;
  color:var(--qej-espresso);max-width:17ch;}
.qadv-q em{font-style:italic;font-weight:400;}

/* a standfirst under a question, used on the review step */
.qadv-lede{margin:-14px 0 clamp(24px,3vw,32px);max-width:52ch;
  font-size:15.5px;line-height:1.7;color:var(--qej-soft);}

/* a quiet aside under a field: what we are not asking for, and why */
.qadv-note{margin:10px 0 0;font-size:13.5px;line-height:1.6;
  color:var(--qadv-helper);max-width:56ch;}

/* a control sized to its answer rather than stretched across the measure */
.qadv-narrow{max-width:260px;}

/* ==========================================================================
   THE TRAVELLER COUNT

   Shown as it is worked out rather than sprung on the advisor at the review.
   The client party and the expected total are deliberately two sentences,
   because they are two different numbers and one of them may be uncertain.
   ========================================================================== */
.qadv-count{margin:0 0 clamp(26px,3.2vw,38px);padding:13px 0 0;
  border-top:1px solid var(--qej-rule);
  font-size:14.5px;line-height:1.7;color:var(--qej-muted);}
.qadv-count b{font-weight:500;color:var(--qej-espresso);
  font-variant-numeric:tabular-nums;}
.qadv-count em{font-style:italic;color:var(--qej-soft);}

/* ==========================================================================
   THE ROUTING PANEL

   Shown when the visitor says they are not a travel advisor. They are on the
   wrong form. Nothing redirects on its own: a mis-tap must be recoverable.
   ========================================================================== */
.qadv-route{margin:clamp(26px,3.2vw,38px) 0 0;
  animation:qifcRise .5s var(--qej-ease) backwards;}
.qadv-route__rule{display:block;width:48px;height:1px;background:var(--qej-gold);
  margin:0 0 clamp(18px,2.4vw,26px);}
.qadv-route h3{margin:0;font-family:var(--qej-serif);font-weight:400;
  font-size:clamp(24px,3.4vw,34px);line-height:1.12;letter-spacing:-.012em;
  color:var(--qej-charcoal);max-width:20ch;}
.qadv-route p{margin:clamp(14px,1.8vw,20px) 0 0;max-width:50ch;
  font-size:16px;line-height:1.75;color:#3E362F;}
.qadv-route__go{margin-top:clamp(20px,2.6vw,28px) !important;}
.qadv-route__btn{display:inline-flex;align-items:center;height:52px;padding:0 30px;
  background:var(--qej-gold);color:#1F1B17;border:1px solid var(--qej-gold);
  font-family:var(--qej-sans);font-size:11px;font-weight:500;letter-spacing:.22em;
  text-transform:uppercase;text-decoration:none;
  transition:background-color .35s var(--qej-ease),border-color .35s var(--qej-ease);}
.qadv-route__btn:hover{background:#BC9350;border-color:#BC9350;color:#1F1B17;}
.qadv-route__btn:focus-visible{outline:1px solid var(--qej-gold-ink);outline-offset:4px;}
.qadv-route__back{font-size:13.5px !important;color:var(--qadv-helper) !important;}

/* ==========================================================================
   THE REVIEW

   A page of short answers, set as a definition list so a value is always tied
   to its question for a screen reader as well as for the eye. Sections carry
   a link back to the step that owns them, so nothing has to be reached by
   pressing Back three times.
   ========================================================================== */
.qadv-review{margin:0 0 clamp(24px,3vw,32px);}
.qadv-review__sec{margin:0 0 clamp(20px,2.4vw,28px);
  padding-bottom:clamp(16px,2vw,22px);border-bottom:1px solid var(--qej-rule);}
.qadv-review__sec:last-child{border-bottom:0;padding-bottom:0;margin-bottom:0;}
.qadv-review__head{display:flex;align-items:baseline;gap:14px;margin:0 0 12px;}
.qadv-review__head h3{margin:0;font-family:var(--qej-sans);font-size:11px;
  font-weight:500;letter-spacing:.22em;text-transform:uppercase;
  color:var(--qej-gold-ink);}
.qadv-review__edit{margin-left:auto;padding:0;background:none;border:0;
  cursor:pointer;font-family:var(--qej-sans);font-size:12px;font-weight:400;
  letter-spacing:.06em;color:var(--qej-muted);text-decoration:underline;
  text-underline-offset:3px;text-decoration-color:var(--qej-rule);
  transition:color .3s var(--qej-ease);}
.qadv-review__edit:hover{color:var(--qej-gold-ink);}
.qadv-review__edit:focus-visible{outline:1px solid var(--qej-gold-ink);outline-offset:3px;}
.qadv-review__list{display:grid;grid-template-columns:minmax(140px,34%) 1fr;
  gap:9px 22px;margin:0;}
.qadv-review__list dt{margin:0;font-size:14px;font-weight:400;line-height:1.55;
  color:var(--qej-soft);}
.qadv-review__list dd{margin:0;font-size:15.5px;font-weight:400;line-height:1.55;
  color:var(--qej-espresso);overflow-wrap:anywhere;}
.qadv-review__list dd.qadv-empty{color:var(--qej-soft);font-style:italic;}

/* Core styles .qej-checks, .qej-terms and .qej-check. Only the spacing above
   the block belongs to this form's review step. */
.qadv-review + .qej-checks{margin-top:clamp(18px,2.2vw,24px);
  padding-top:clamp(14px,1.8vw,18px);border-top:1px solid var(--qej-rule);}

/* ==========================================================================
   THE CLOSE
   ========================================================================== */
.qadv-done{display:none;padding:clamp(30px,6vw,80px) 0;}
.qadv-app.qadv-sent .qadv-done{display:block;animation:qifcRise .7s var(--qej-ease) both;}
.qadv-app.qadv-sent .qadv-form,
.qadv-app.qadv-sent .qadv-prog,
.qadv-app.qadv-sent .qadv-intro{display:none;}
.qadv-done__rule{display:block;width:48px;height:1px;background:var(--qej-gold);
  margin:0 0 clamp(24px,3.4vw,34px);}
/* The panel is given focus when the inquiry succeeds, so a screen reader
   announces the outcome rather than leaving the user on a button that has
   vanished. It carries tabindex="-1" and is not reachable by keyboard, so the
   browser's default focus ring here is decoration on a non-interactive
   element - it drew a hard black rectangle around the whole panel. Removed
   for this element only. Nothing focusable loses its ring. */
.qadv-done:focus{outline:none;}
.qadv-done p{margin:clamp(20px,2.8vw,30px) 0 0;max-width:46ch;
  font-size:16.5px;line-height:1.8;color:#3E362F;}
/* with the heading gone, the first line sits directly under the gold rule */
.qadv-done__rule + p{margin-top:0;}
/* the inquiry reference, when and only when a server returns one */
.qadv-ref{font-size:13.5px !important;letter-spacing:.04em;color:var(--qej-muted) !important;}
.qadv-ref[hidden]{display:none !important;}

/* THE CONSULTATION CALENDAR
   Sits under the thank-you wording. It appears only after the inquiry has been
   received, and only for inquiry forms. */
.qadv-cal{margin-top:clamp(20px,2.6vw,30px);}
.qadv-cal[hidden]{display:none !important;}
/* Shown in full: no fixed height, nothing clipped, no scrollbar inside it -
   the page grows and the page scrolls. Calendly's own stylesheet pins its
   widget to a fixed height, so that is overridden here; the exact height is
   then set from the height the widget reports. The floors below only matter if
   that message never arrives. */
.qadv-cal__frame{width:100%;min-height:1100px;height:auto;overflow:visible;}
.qadv-cal__frame.calendly-inline-widget{height:auto !important;min-height:1100px;}
.qadv-cal__frame iframe{width:100% !important;border:0 !important;display:block;
  height:100%;min-height:1100px;overflow:visible;}
/* The recovery path, shown only when no scheduler could be rendered. A quiet
   underlined link, deliberately NOT the gold button treatment: on this screen
   the calendar is the call to action, and a filled button competes with it. */
.qadv-cal__fallback{margin:0;}
.qadv-cal__fallback a{font-family:var(--qej-sans);font-size:15px;
  color:var(--qej-gold-ink);text-decoration:underline;text-underline-offset:3px;}
.qadv-cal__fallback a:hover{color:#8A5F12;}
@media (max-width:900px){
  .qadv-cal__frame,.qadv-cal__frame.calendly-inline-widget,
  .qadv-cal__frame iframe{min-height:1250px;}
}
@media (max-width:600px){
  .qadv-cal__frame,.qadv-cal__frame.calendly-inline-widget,
  .qadv-cal__frame iframe{min-height:1450px;}
}

/* ==========================================================================
   TABLET
   ========================================================================== */
@media (max-width:900px){
  .qadv-review__list{grid-template-columns:minmax(130px,38%) 1fr;}
}

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width:600px){
  .qadv-app{padding:0;}
  /* on a phone the sheet takes the screen, with the photograph still framing it */
  .qadv-body{padding:14px 12px 22px;}
  .qadv-wrap{padding:22px 18px 26px;border-radius:4px;
    box-shadow:0 18px 44px -26px rgba(18,12,6,.7),0 1px 6px rgba(18,12,6,.14);}
  .qadv-hero{height:340px;align-items:flex-start;padding-top:46px;}
  .qadv-hero__inner{padding:0 20px;}
  /* Tracking eased from .34em to .28em ONLY at this width. The eyebrow is six
     characters longer than Plan My Journey's and would otherwise wrap to two
     lines on a 360px screen. Size and colour are unchanged; it still reads as
     the same element, and it is still permitted to wrap on the narrowest
     phones rather than being shrunk. */
  .qadv-hero__eyebrow{font-size:10px;letter-spacing:.28em;margin-bottom:11px;}
  /* The measure opens up rather than the type coming down: the heading stays
     large and serif, as approved, and takes the extra line it needs. */
  .qadv-hero__title{font-size:clamp(28px,7.6vw,34px);max-width:18ch;}
  .qadv-intro{font-size:16.5px;margin-bottom:24px;}
  .qadv-prog{margin-bottom:28px;}
  .qadv-prog__label{font-size:14px;}
  .qadv-q{font-size:clamp(29px,8.4vw,38px);max-width:100%;margin-bottom:26px;}
  .qadv-lede{margin:-10px 0 24px;}
  .qadv-narrow{max-width:none;}
  .qadv-count{margin-bottom:28px;}
  .qadv-route h3{font-size:clamp(22px,6.4vw,28px);}
  .qadv-route__btn{width:100%;justify-content:center;}
  /* the review reads as label-above-value rather than two cramped columns */
  .qadv-review__list{grid-template-columns:1fr;gap:3px;}
  .qadv-review__list dt{font-size:13px;}
  .qadv-review__list dd{margin-bottom:11px;}
  .qadv-review__list dd:last-child{margin-bottom:0;}
}

/* ==========================================================================
   THEME ARMOUR

   A WordPress theme or an Elementor global style will happily repaint a form
   control, and most of ours are <button> elements. Each rule restates our own
   intent at a weight no theme rule can beat, scoped to .qadv-app. Carried over
   from the approved Plan My Journey armour, which was arrived at against this
   theme and is not speculative.
   ========================================================================== */
.qadv-app button,.qadv-app input,.qadv-app textarea{
  -webkit-appearance:none !important;appearance:none !important;
  border-radius:0 !important;box-shadow:none !important;text-shadow:none !important;
  background-image:none !important;letter-spacing:inherit;}
.qadv-app .qej-sel__btn,.qadv-app .qej-sel__btn:hover,.qadv-app .qej-sel__btn:focus,
.qadv-app .qej-back,.qadv-app .qej-back:hover{
  background-color:transparent !important;text-transform:none;}
.qadv-app .qej-back{text-transform:uppercase !important;}
.qadv-app .qej-in,.qadv-app .qej-area,
.qadv-app .qej-in:focus,.qadv-app .qej-area:focus{
  background-color:transparent !important;color:var(--qej-espresso) !important;}
.qadv-app .qej-sel__opt,.qadv-app .qej-sel__find,
.qadv-app .qej-sel__opt:hover{
  color:var(--qej-espresso) !important;text-transform:none !important;}
.qadv-app .qej-sel__find{background-color:var(--qej-sheet) !important;}
.qadv-app .qej-sel__opt{background-color:transparent !important;}
.qadv-app .qej-sel__opt:hover,.qadv-app .qej-sel__opt.qej-cursor{
  background-color:rgba(205,166,93,.13) !important;}
.qadv-app .qej-chip button{background-color:transparent !important;}
.qadv-app .qej-go,.qadv-app .qej-go:visited{
  background-color:var(--qej-gold) !important;color:#1F1B17 !important;
  background-image:none !important;box-shadow:none !important;
  text-transform:uppercase !important;}
.qadv-app .qej-go:hover,.qadv-app .qej-go:focus{
  background-color:#BC9350 !important;color:#1F1B17 !important;}
.qadv-app .qadv-route__btn{
  background-color:var(--qej-gold) !important;color:#1F1B17 !important;}
.qadv-app input:invalid,.qadv-app textarea:invalid{box-shadow:none !important;}
/* themes love to give h1 and video their own margins and rounded corners */
.qadv-app .qadv-hero__title{margin:0 !important;padding:0 !important;
  color:#FCF9F2 !important;text-transform:none !important;}
.qadv-app .qadv-hero__eyebrow{margin:0 0 13px !important;padding:0 !important;}
.qadv-app .qadv-hero__video{margin:0 !important;padding:0 !important;
  border-radius:0 !important;box-shadow:none !important;max-width:none !important;
  background:transparent !important;}
.qadv-app .qadv-hero{margin:0 !important;}

/* ANSWER VISIBILITY
   Every value the advisor types or chooses is pinned to espresso in every
   state - idle, hover, focus, after focus leaves, and on returning to an
   earlier step. `color` alone is not enough: WebKit's -webkit-text-fill-color
   and its autofill repaint both beat it, and an Elementor global can set
   `opacity` or `color:inherit` on anything inside a button. Placeholders are
   pinned one step lighter, so an answered field always reads darker than an
   empty one. */
.qadv-app .qej-sel__val,.qadv-app .qej-in,.qadv-app .qej-area{
  color:var(--qej-espresso) !important;
  -webkit-text-fill-color:var(--qej-espresso) !important;opacity:1 !important;}
/* THE EMPTY PROMPT, one step quieter than everything around it.

   Applied to every control the form uses, so the hierarchy does not hold in
   one place and break in another: text inputs, textareas, the closed state of
   every dropdown, the dropdown search boxes, and the phone number field.
   `opacity` is pinned to 1 because several browsers dim placeholders by
   default, which would compound the softening and push it below the readable
   floor rather than land on it. */
.qadv-app .qej-sel__val.qej-ph{
  color:var(--qadv-placeholder) !important;
  -webkit-text-fill-color:var(--qadv-placeholder) !important;opacity:1 !important;}
.qadv-app .qej-in::placeholder,
.qadv-app .qej-area::placeholder,
.qadv-app .qej-sel__find::placeholder{
  color:var(--qadv-placeholder) !important;
  -webkit-text-fill-color:var(--qadv-placeholder) !important;
  opacity:1 !important;}
/* the "optional" marker beside a label is an aside, not a second label */
.qadv-app .qej-opt{color:var(--qadv-helper) !important;}

@media (prefers-reduced-motion:reduce){
  .qadv-step.qej-on,.qadv-app.qadv-sent .qadv-done,.qadv-route{animation:none;}
  .qadv-prog__track i{transition:none;}
}

/* ===========================================================================
   STEP 1 TOP
   ---------------------------------------------------------------------------
   THE FORM'S LANGUAGE IS A HAIRLINE, NOT A BOX.

   Every other control here is an underline: the text fields, the selects, the
   phone row. A bordered segmented toggle was the only boxed thing on the page,
   and it read as a generic interface component dropped into an editorial
   layout. These are two words on two rules - the chosen one carried by gold,
   the other quiet - so the question matches everything around it.
   =========================================================================== */
.qadv-section-lb{margin:clamp(26px,3vw,36px) 0 clamp(16px,2vw,22px);
  font-family:var(--qej-serif);
  font-size:clamp(21px,2.3vw,25px);line-height:1.25;letter-spacing:.004em;
  color:var(--qej-espresso);}
.qadv-step .qadv-section-lb:first-child{margin-top:0;}

/* the two qualification questions sit closer together than fields do */
.qadv-q{margin-bottom:clamp(20px,2.4vw,26px);}
.qadv-q .qej-lb{margin-bottom:10px;}

.qadv-app .qadv-choice{display:flex;gap:clamp(26px,3.4vw,40px);}

/* SCOPED, AND ARMOURED AGAINST THE THEME.

   A bare <button> inherits whatever the WordPress theme says buttons look
   like, and clicking one selects its label - which the theme then paints in
   its own selection colour. On queensafaris.com that is pink, so choosing
   "Yes" lit up pink. Three defences: every rule is scoped under .qadv-app so
   it outranks a generic theme rule, the label cannot be selected at all, and
   the background is stated explicitly in every state rather than left to
   inheritance. */
.qadv-app .qadv-choice__opt{
  appearance:none;-webkit-appearance:none;
  background:transparent;background-color:transparent;background-image:none;
  border:0;border-radius:0;box-shadow:none;
  padding:7px 1px 10px;margin:0;cursor:pointer;text-align:left;
  font-family:var(--qej-sans);font-size:15.5px;font-weight:400;line-height:1.4;
  letter-spacing:.02em;color:var(--qej-soft);text-transform:none;
  -webkit-user-select:none;user-select:none;
  -webkit-tap-highlight-color:transparent;
  /* THE RULE IS THE ANSWER. An unchosen option carried a short grey rule of
     its own, and under a word as short as "No" that read as a stray dash
     rather than a choice not taken. Only the chosen one is underlined. */
  border-bottom:2px solid transparent;
  transition:color .3s var(--qej-ease),border-color .3s var(--qej-ease);}
.qadv-app .qadv-choice__opt::selection{background:transparent;}
.qadv-app .qadv-choice__opt:hover,
.qadv-app .qadv-choice__opt:focus,
.qadv-app .qadv-choice__opt:active{background:transparent;background-color:transparent;
  box-shadow:none;}
.qadv-app .qadv-choice__opt:hover{color:var(--qej-espresso);
  border-bottom-color:var(--qej-rule-2);}
.qadv-app .qadv-choice__opt.is-on{color:var(--qej-espresso);font-weight:500;
  border-bottom-color:var(--qej-gold);}
.qadv-app .qadv-choice__opt:focus-visible{outline:none;color:var(--qej-espresso);
  border-bottom-color:var(--qej-gold);box-shadow:0 1px 0 0 var(--qej-gold);}
.qadv-app .qej-block.qej-bad .qadv-choice__opt{border-bottom-color:var(--qej-err);}
.qadv-app .qej-block.qej-bad .qadv-choice__opt.is-on{border-bottom-color:var(--qej-gold);}

/* ---------------------------------------------------------------------------
   THE PARTNER WELCOME
   A greeting, one line, one action, a quiet way past it.
   --------------------------------------------------------------------------- */
/* A NEW MOMENT, NOT THE NEXT FIELD.
   The welcome answers the question above it, so it needs a breath and a
   hairline to separate the qualifying from the greeting. */
.qadv-welcome-panel{margin:clamp(30px,3.6vw,42px) 0 0;
  padding-top:clamp(26px,3vw,34px);
  border-top:1px solid var(--qej-rule);}
.qadv-welcome{margin:0;font-family:var(--qej-serif);
  font-size:clamp(24px,2.7vw,30px);line-height:1.2;letter-spacing:.004em;
  color:var(--qej-espresso);}
.qadv-welcome__sub{margin:10px 0 0;font-family:var(--qej-sans);
  font-size:15px;line-height:1.65;color:var(--qej-muted);max-width:44ch;}
.qadv-signin-row{margin:clamp(20px,2.4vw,26px) 0 0;}
/* THE ONE GOLD ACTION ON THE PAGE.
   Solid gold, letterspaced small caps, and a fine rule that draws forward on
   hover - the arrow moves, the surface deepens, nothing bounces. Queen's gold
   is punctuation, so it is used once here and nowhere else on this step. */
.qadv-app .qadv-signin{display:inline-flex;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;align-items:center;gap:14px;
  padding:15px 30px;cursor:pointer;position:relative;
  background:var(--qej-gold);color:#FFFCF5;text-decoration:none;
  font-family:var(--qej-sans);font-size:11.5px;font-weight:500;
  letter-spacing:.2em;text-transform:uppercase;
  border:1px solid var(--qej-gold);
  box-shadow:0 10px 26px -18px rgba(93,70,28,.85);
  transition:background .4s var(--qej-ease),border-color .4s var(--qej-ease),
             box-shadow .4s var(--qej-ease),transform .4s var(--qej-ease);}
.qadv-app .qadv-signin__arrow{flex:0 0 auto;
  transition:transform .4s var(--qej-ease);}
.qadv-app .qadv-signin:hover{background:var(--qej-gold-ink);border-color:var(--qej-gold-ink);
  box-shadow:0 16px 34px -18px rgba(93,70,28,.9);transform:translateY(-1px);}
.qadv-app .qadv-signin:hover .qadv-signin__arrow{transform:translateX(5px);}
.qadv-app .qadv-signin:active{transform:translateY(0);}
.qadv-app .qadv-signin:focus-visible{outline:1px solid var(--qej-espresso);outline-offset:4px;}
@media (prefers-reduced-motion:reduce){
  .qadv-signin,.qadv-signin__arrow{transition:none;}
  .qadv-signin:hover{transform:none;}
  .qadv-signin:hover .qadv-signin__arrow{transform:none;}
}

.qadv-manual-row{margin:clamp(16px,1.8vw,20px) 0 0;font-family:var(--qej-sans);
  font-size:14.5px;color:var(--qej-muted);}
/* THE QUIET ACTION BESIDE THE GOLD ONE.

   Same armour as the choices: a <button> inherits the WordPress theme's own
   button styling, and clicking one selects its label, which the theme then
   paints in its selection colour - pink, on queensafaris.com. Scoped,
   un-selectable, and with the background stated in every state. */
.qadv-app .qej-link{
  appearance:none;-webkit-appearance:none;
  background:transparent;background-color:transparent;background-image:none;
  border:0;border-radius:0;box-shadow:none;
  padding:0 0 2px;margin:0;cursor:pointer;
  font:inherit;color:var(--qej-espresso);text-transform:none;
  -webkit-user-select:none;user-select:none;
  -webkit-tap-highlight-color:transparent;
  border-bottom:1px solid var(--qej-gold);
  transition:border-color .3s var(--qej-ease);}
.qadv-app .qej-link:hover,
.qadv-app .qej-link:focus,
.qadv-app .qej-link:active{background:transparent;background-color:transparent;
  box-shadow:none;color:var(--qej-espresso);}
.qadv-app .qej-link:hover{border-bottom-color:var(--qej-gold-ink);}
.qadv-app .qej-link:focus-visible{outline:none;border-bottom-width:2px;}

/* Nothing the plugin adds should ever be painted by the theme's text
   selection. These are controls, not prose: there is nothing here to copy. */
.qadv-app .qadv-choice__opt,
.qadv-app .qadv-choice__opt *,
.qadv-app .qej-link,
.qadv-app .qej-link *,
.qadv-app .qadv-signin,
.qadv-app .qadv-signin *{-webkit-user-select:none;user-select:none;}
.qadv-app .qadv-choice__opt::selection,
.qadv-app .qadv-choice__opt *::selection,
.qadv-app .qej-link::selection,
.qadv-app .qej-link *::selection,
.qadv-app .qadv-signin::selection,
.qadv-app .qadv-signin *::selection{background:transparent;color:inherit;}

@media (max-width:640px){
  .qadv-signin{flex:1 1 auto;text-align:center;}
}


/* ==========================================================================
   WHAT THIS FORM ADDS TO THE INHERITED SHELL
   ========================================================================== */

/* THE SHEET IS SHORT WHEN THE APPLICATION HAS BEEN SENT.
   One screen of questions becomes four lines of thank-you, and the
   photographic band collapsed to a strip with white page below it. A floor
   keeps the band looking deliberate whatever the sheet is carrying. */
.qadv-body{min-height:clamp(560px,52vh,760px);}

/* THE FREE-TEXT ANSWERS.
   The two questions that matter most here are free text - a referral
   partner's value is who they know and how they talk about Queen, which no
   dropdown captures. They are given room to be answered properly rather than
   a single line that implies one is wanted. */
.qadv-app .qej-area{
  min-height:118px;resize:vertical;line-height:1.55;padding-top:10px;
  font-family:var(--qej-sans);}

/* One screen, so the single section carries the rhythm the steps used to. */
.qadv-sec{display:block;}
.qadv-sec > .qej-block,
.qadv-sec > .qej-cols{margin-bottom:clamp(18px,2.2vw,26px);}

/* The withheld block. Hidden by the template until Salesforce declares the
   fields; this only keeps it from leaving a gap when it is revealed. */
.qadv-ext[hidden]{display:none;}
.qadv-ext > .qej-block{margin-bottom:clamp(18px,2.2vw,26px);}

/* THE SUCCESS PANEL.
   Deliberately quiet. The applicant has just asked for something and does not
   yet know the answer, so this says what happens next and nothing that reads
   as though they have been accepted. */
/* THE INHERITED SHELL SETS .qadv-done{display:none} and reveals it with a
   class; this form reveals it with the `hidden` attribute instead. Without
   this line the panel was shown, had its hidden attribute removed, and stayed
   invisible - a thank-you nobody could see, while the suite passed because it
   asked whether `hidden` was false rather than whether anything was on screen.
   `[hidden]` still wins: the shell's own rule carries !important. */
.qadv-done{display:block;
  text-align:left;padding:clamp(8px,1.4vw,18px) 0 clamp(4px,1vw,10px);}
.qadv-done__title{margin:0 0 14px;font-family:var(--qej-serif);font-weight:400;
  font-size:clamp(26px,3.4vw,36px);line-height:1.18;color:#211B18;
  letter-spacing:.002em;}
.qadv-done__ref{margin:0 0 12px;font-family:var(--qej-sans);font-size:15px;
  color:#2B2521;letter-spacing:.01em;}
.qadv-done__note{margin:0;font-family:var(--qej-sans);font-size:16px;
  line-height:1.62;color:#5C5248;max-width:52ch;}

/* THE THANK-YOU, as the last thing Queen says to someone who just asked to
   represent it. Same ivory sheet, same type, no new design language. */
.qadv-done__eyebrow{margin:0 0 10px;font-family:var(--qej-sans);font-weight:500;
  font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#8A7A5E;}
.qadv-done__lede{margin:0 0 18px;font-family:var(--qej-sans);font-size:17px;
  line-height:1.6;color:#4A413A;max-width:54ch;}
/* THE REFERENCE IS THE ONE THING SOMEBODY COPIES OFF THIS PAGE, so it sits in
   its own ruled band rather than in the run of prose. */
.qadv-done__ref{margin:0 0 20px;padding:12px 16px;
  background:rgba(138,122,94,.08);
  border-left:2px solid rgba(138,122,94,.55);
  font-family:var(--qej-sans);font-size:15px;color:#3A322C;letter-spacing:.015em;}
.qadv-done__note strong{font-weight:500;color:#3A322C;}


/* The section rule above "Your referral profile", matching the live form. */
.qadv-sechead{display:flex;align-items:center;gap:14px;
  margin:clamp(26px,3vw,36px) 0 clamp(16px,2vw,22px);
  font-family:var(--qej-sans);font-weight:500;font-size:12px;
  letter-spacing:.18em;text-transform:uppercase;color:#8A7A5E;}
.qadv-sechead::after{content:"";flex:1 1 auto;height:1px;
  background:rgba(146,120,74,.28);}

/* The consent error sits outside a .qej-block, so it is shown explicitly
   rather than by Core's bad-class. */
.qadv-app .qej-err[data-qadv-consent-err]{display:none;margin-top:6px;}
.qadv-app .qej-err[data-qadv-consent-err].qadv-err--on{display:block;}


/* ==========================================================================
   HOLDING THE QUEEN FIELD AGAINST THE THEME  (1.4.0, 6 Oct 2026)

   On the live page the theme's own input rules won: name, email and the
   handle came out as BOXES while the dropdowns stayed as underlines, and that
   mixture is what made the form look unfinished. Core's .qej-in is a single
   underline, and these restate it at a specificity the theme cannot reach -
   deliberately scoped to .qadv-app so nothing else on the site is touched.
   ========================================================================== */
.qadv-app .qej-in,
.qadv-app input.qej-in,
.qadv-app textarea.qej-in,
.qadv-app .qej-sel__btn{
  background:none !important;
  background-color:transparent !important;
  border:0 !important;
  border-bottom:1px solid var(--qej-rule-2) !important;
  border-radius:0 !important;
  box-shadow:none !important;
  outline:none;}
.qadv-app .qej-in:focus,
.qadv-app .qej-sel__btn:focus{
  border-bottom-color:var(--qej-gold) !important;}
/* The search box inside an open dropdown is a real field and keeps its frame. */
.qadv-app .qej-sel__find{background:#fff !important;}

/* ==========================================================================
   SHORTER, AND IN FEWER BLOCKS

   Ten questions down a single column read as a long list of unrelated things.
   The pairs below are the ones that genuinely belong together, and tightening
   the rhythm takes roughly a third off the height without crowding anything.
   ========================================================================== */
.qadv-app .qej-block{margin-bottom:0;}
.qadv-sec > .qej-block,
.qadv-sec > .qej-cols{margin-bottom:clamp(14px,1.6vw,20px);}
.qadv-app .qej-cols{gap:clamp(16px,2vw,28px);}
.qadv-app .qej-lb{margin-bottom:2px;}
.qadv-app .qej-in{padding:6px 0 9px;}

/* The free-text answer is optional and should not dominate the form. */
.qadv-app .qej-area{min-height:84px;}

.qadv-sechead{margin:clamp(20px,2.2vw,26px) 0 clamp(12px,1.4vw,16px);}

/* The consents sit closer to the button they gate. */
.qadv-app .qej-checks{margin-top:clamp(14px,1.8vw,20px);}
.qadv-app .qej-check{margin-top:10px;}
.qadv-app .qej-nav{margin-top:clamp(16px,2vw,24px);}


/* A two-up row carrying only one question uses the whole width rather than
   leaving a hole beside it. Set by syncState when State is not applicable. */
.qadv-app .qej-cols.qadv-cols--solo{grid-template-columns:1fr;}

/* Email is a long value and reads better across the sheet; the row above it is
   two-up, so a full-width field here is a deliberate change of rhythm rather
   than an orphan. */
.qadv-app [data-qej-block="email"] .qej-in,
.qadv-app [data-qej-block="socialHandle"] .qej-in{width:100%;}


/* ==========================================================================
   WORK WITH QUEEN - the few pieces this form adds to the shared shell.
   ========================================================================== */

/* THE PAGE OFFERS BEFORE IT ASKS. The kicker and intro are the only thing an
   advisor reads before deciding whether the eleven questions are worth her
   time, so they sit above the first field and go away once she has sent. */
.qadv-kicker{margin:0 0 8px;font-family:var(--qej-sans);font-weight:500;
  font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#8A7A5E;}
.qadv-app.qadv-sent .qadv-kicker{display:none;}

/* The independent-advisor tick belongs to the agency question, so it is
   indented under it rather than floating as a consent of its own. */
.qadv-app .qej-check.qadv-check--sub{margin:10px 0 0;align-items:center;}
.qadv-app .qej-check.qadv-check--sub .qej-second{font-size:14.5px;color:#5C5248;}

/* Queen's own reassurance line, under the button where it is read last. */
.qadv-reassure{margin:14px 0 0;text-align:center;font-family:var(--qej-sans);
  font-size:13px;line-height:1.5;color:#7A6E62;}
.qadv-app.qadv-sent .qadv-reassure{display:none;}

/* A disabled agency field must still look like Queen's, not like the
   browser's default grey box. */
.qadv-app .qej-in:disabled{opacity:.72;color:#5C5248;cursor:default;
  -webkit-text-fill-color:#5C5248;}


/* ==========================================================================
   ONE TYPEFACE, ONE RHYTHM  (1.2.0, 7 Oct 2026)

   On the live page the theme reached into the controls Core does NOT set a
   font on: the dropdown's closed value and the submit button came out serif
   while every text input stayed sans. Two typefaces alternating down one
   column is most of what "flat and disorganised" actually was - the eye reads
   the inconsistency long before it reads the questions.

   Restated here at a specificity the theme cannot reach, scoped to .qadv-app
   so nothing else on the site is touched.
   ========================================================================== */
.qadv-app .qej-sel__btn,
.qadv-app .qej-sel__val,
.qadv-app .qej-sel__opt,
.qadv-app .qej-sel__find,
.qadv-app .qej-check .qej-second,
.qadv-app .qej-lb,
.qadv-app .qej-in{
  font-family:var(--qej-sans) !important;
  letter-spacing:.005em !important;}
.qadv-app .qej-sel__val{font-size:17px !important;font-weight:400 !important;
  font-style:normal !important;color:#211B18 !important;}
/* The placeholder state of a dropdown must read as a placeholder, exactly as
   an empty input does, rather than as an answer somebody already gave. */
.qadv-app .qej-sel__val:empty::before,
.qadv-app .qej-sel:not(.qej-has) .qej-sel__val{color:#9A8F84 !important;}
.qadv-app .qej-go{font-family:var(--qej-sans) !important;
  font-style:normal !important;}

/* THE DIALLING CODE MUST NEVER BE AN EMPTY BOX.
   The flag is an emoji, and on a machine whose font has no flag glyphs it
   renders as nothing at all - which left the phone row opening with a blank
   underline and a lone chevron. The code itself is text and always shows, so
   the column is sized for the code and the flag is a bonus. */
.qadv-app .qej-tel .qej-sel{min-width:104px;}
.qadv-app .qej-tel .qej-sel__btn{display:flex;align-items:center;gap:7px;
  min-height:38px;}
.qadv-app .qej-tel .qej-sel__val{font-variant-numeric:tabular-nums;
  min-width:30px;}
.qadv-app .qej-sel__flag:empty{display:none;}

/* ==========================================================================
   SHORTER, AND IN TWO GROUPS RATHER THAN ONE LIST

   Eleven questions down a single column read as a wall. They are two different
   subjects - who you are, and how you trade - so the page says so, with the
   same rule Queen already uses on the Referral form. Pairing the four short
   answers removes two full rows at the same time.
   ========================================================================== */
.qadv-sechead{display:flex;align-items:center;gap:14px;
  margin:clamp(22px,2.6vw,30px) 0 clamp(14px,1.8vw,18px);
  font-family:var(--qej-sans);font-weight:500;font-size:12px;
  letter-spacing:.18em;text-transform:uppercase;color:#8A7A5E;}
.qadv-sechead::after{content:"";flex:1 1 auto;height:1px;
  background:rgba(138,122,94,.3);}
.qadv-app.qadv-sent .qadv-sechead{display:none;}

/* Tighter than the shell's default: the shell was built for a four-step form
   with three questions a screen, not eleven on one. */
.qadv-app .qej-block{margin-bottom:clamp(14px,1.7vw,19px);}
.qadv-app .qej-cols{gap:clamp(16px,2vw,26px);}
.qadv-app .qej-checks{margin-top:clamp(16px,2vw,22px);}
.qadv-intro{max-width:46ch;}


/* ==========================================================================
   READABLE BY THE PEOPLE WHO ACTUALLY FILL THIS IN  (1.3.0, 7 Oct 2026)

   Queen's advisors are working professionals, many of them long-sighted, and
   the shell's greys were chosen for a short consumer form read on a bright
   phone. On a laptop at the end of a working day the labels and placeholders
   were simply hard to read.

   Everything below raises contrast against the ivory sheet. The label greys go
   to near-black, the placeholder stops being a whisper, and the type goes up a
   step. Nothing here changes layout - it is legibility only.
   ========================================================================== */
.qadv-app .qej-lb{color:#1A1512 !important;font-weight:500 !important;
  font-size:14.5px !important;letter-spacing:.01em !important;
  opacity:1 !important;}
.qadv-app .qej-in,
.qadv-app .qej-sel__val{font-size:17.5px !important;color:#1A1512 !important;}
/* A placeholder must read as a hint, not as a stain. #6F6358 on this ivory is
   comfortably past the AA contrast line; the inherited grey was not. */
.qadv-app .qej-in::placeholder{color:#6F6358 !important;opacity:1 !important;}
.qadv-app .qej-sel:not(.qej-has) .qej-sel__val{color:#6F6358 !important;}
.qadv-app .qej-check .qej-second{color:#2B2521 !important;font-size:15px !important;
  line-height:1.55 !important;}
.qadv-app .qej-sel__opt{color:#1A1512 !important;font-size:16px !important;}
.qadv-app .qadv-reassure{color:#5C5248;font-size:13.5px;}
.qadv-sechead{color:#6B5C44;font-size:12.5px;}
/* The underline itself was almost invisible, so a field did not read as a
   field until it was clicked. */
.qadv-app .qej-in,
.qadv-app .qej-sel__btn{border-bottom-color:rgba(60,50,40,.42) !important;}
.qadv-app .qej-in:hover,
.qadv-app .qej-sel__btn:hover{border-bottom-color:rgba(60,50,40,.7) !important;}

/* With the introduction gone the sheet needs its own breathing room at the
   top, or the first question sits against the edge. */
.qadv-app .qadv-sec > .qadv-sechead:first-child{margin-top:clamp(4px,1vw,10px);}


/* ==========================================================================
   THE MULTI-SELECT FOOTER  (1.5.0, 7 Oct 2026)

   Core keeps a multi-select panel open while several answers are being chosen,
   which is right - but with nothing in the panel to close it, the list simply
   sat there with no obvious way out. The Done button is that way out, and it
   needs to look like a deliberate control rather than stray text.
   ========================================================================== */
.qadv-app .qej-sel__foot{display:flex;align-items:center;
  justify-content:space-between;gap:12px;margin:0;
  padding:10px 14px;border-top:1px solid rgba(138,122,94,.26);
  background:#FBF9F5;}
.qadv-app .qej-sel__foot [data-qej-sel-count]{font-family:var(--qej-sans);
  font-size:13px;color:#6F6358;}
.qadv-app .qej-sel__foot button{appearance:none;border:0;cursor:pointer;
  background:var(--qej-gold);color:#2B2008;
  font-family:var(--qej-sans);font-weight:500;font-size:13px;
  letter-spacing:.08em;text-transform:uppercase;
  padding:9px 20px;border-radius:0;}
.qadv-app .qej-sel__foot button:hover{filter:brightness(1.05);}
.qadv-app .qej-sel__foot button:focus-visible{outline:1px solid var(--qej-gold-ink);
  outline-offset:2px;}
/* A chosen row must be obvious at a glance when several can be on at once. */
.qadv-app .qej-sel__opt[aria-checked="true"]{font-weight:500;}
