/* =============================================================================
   SECTION — GET A QUOTE
   Step two of the funnel. The cabin pages ask for dates; this page asks for a
   name and shows what the request adds up to.

   The field atoms (.ct-field, .ct-row, .ct-error, .ct-hint, .ct-submit,
   .ct-status, .ct-pot) come from contact-form.css, which is loaded rather than
   copied - two stylesheets describing the same input is how a site ends up
   with two different inputs. This file is the crumb, the hero, the fieldsets,
   the summary panel and the three bands underneath it.

   The one rule the layout rests on: the summary is an aside that becomes a
   sticky second column at 1040px and sits under the form below that. It is
   never the first thing in the source, because a visitor with a screen reader
   wants the form, not the arithmetic.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   THE STEP RAIL

   What is left of this page's old hero. The banner itself is now
   common/page-banner.css, shared with every other page; the rail stayed
   because it belongs to this funnel and no other page has one.

   It sits directly under the banner and carries its own dark ground so the
   two read as one band. Inside the hero it could lean on the hero's
   background; standing on its own it cannot.
   --------------------------------------------------------------------------- */
.qt-flow{
  list-style:none;
  display:flex;flex-wrap:wrap;align-items:center;
  gap:clamp(10px,1.4vw,20px);
  margin:0;
  padding:clamp(14px,1.5vw,20px) var(--gutter);
  background:var(--forest-deep);
  border-top:1px solid rgba(245,240,230,.14);
}
.qt-flow li{
  display:flex;align-items:center;gap:9px;
  font-family:var(--font-body);
  font-size:12px;font-weight:var(--fw-bold);
  letter-spacing:.1em;text-transform:uppercase;
  color:rgba(245,240,230,.58);
}
.qt-flow li span{
  display:grid;place-items:center;
  width:24px;height:24px;flex:0 0 auto;
  border:1px solid rgba(245,240,230,.3);
  border-radius:var(--r-round);
  font-size:11px;letter-spacing:0;
}
.qt-flow li.is-done{color:rgba(183,200,150,.92)}
.qt-flow li.is-done span{border-color:rgba(183,200,150,.6);background:rgba(183,200,150,.14)}
.qt-flow li.is-on{color:#fff}
.qt-flow li.is-on span{border-color:var(--rust);background:var(--rust);color:#fff}
/* The connector is drawn on the item rather than between items, so the last
   one does not trail a line into nothing. */
.qt-flow li:not(:last-child)::after{
  content:"";width:clamp(12px,2vw,30px);height:1px;
  margin-left:clamp(2px,.6vw,8px);
  background:rgba(245,240,230,.26);
}

/* The kicker is still used by the bands further down this page and by the
   payment step, so it stays - it is no longer the banner's. */
.qt-kicker{
  margin:0 0 clamp(12px,1.3vw,18px);
  font-family:var(--font-body);
  font-size:clamp(11px,.85vw,12px);font-weight:var(--fw-bold);
  letter-spacing:var(--track-kicker);text-transform:uppercase;
  color:var(--accent);
}

/* ---------------------------------------------------------------------------
   MAIN — form + summary
   --------------------------------------------------------------------------- */
.qt-main{
  background:var(--cream);
  color:var(--ink);
  padding-block:clamp(40px,4.6vw,76px);
}
.qt-main-in{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(28px,3.4vw,56px);
  align-items:start;
}

/* ---- the form ---- */
/* position:relative anchors .ct-pot, the absolutely-positioned honeypot from
   contact-form.css. Without a positioned ancestor it resolves against the
   nearest one it finds and lands somewhere down the document - clipped
   either way, but anchoring it is one less thing a layout change can move. */
.qt-form{
  position:relative;
  background:var(--white);
  border:1px solid rgba(40,52,38,.14);
  border-radius:var(--r-card);
  padding:clamp(22px,2.8vw,44px);
}
/* The groups are div[role=group] labelled by their heading, not <fieldset>
   and <legend> - see the note in the markup. Nothing to reset. */
.qt-set{min-width:0}
.qt-set + .qt-set{
  margin-top:clamp(26px,3vw,42px);
  padding-top:clamp(24px,2.8vw,38px);
  border-top:1px solid rgba(40,52,38,.14);
}
.qt-legend{
  display:flex;align-items:center;gap:11px;
  margin:0 0 clamp(16px,1.8vw,24px);
  font-family:var(--font-body);
  font-size:12px;font-weight:var(--fw-bold);
  letter-spacing:var(--track-kicker);text-transform:uppercase;
  color:var(--ink);
}
.qt-legend span{
  display:grid;place-items:center;
  width:26px;height:26px;flex:0 0 auto;
  border-radius:var(--r-round);
  background:var(--forest);color:var(--accent);
  font-size:10.5px;letter-spacing:0;
}
.qt-submit{margin-top:clamp(22px,2.4vw,32px)}

/* ---------------------------------------------------------------------------
   SUMMARY PANEL
   Ships hidden; the script unhides it. Everything in it is derived from the
   fields beside it, so with no script there is nothing to show.
   --------------------------------------------------------------------------- */
.qt-side{min-width:0}
.qt-sum{
  background:var(--forest);
  color:var(--cream);
  border-radius:var(--r-card);
  padding:clamp(22px,2.4vw,32px);
}
.qt-sum-title{
  margin:0 0 clamp(16px,1.8vw,22px);
  font-family:var(--font-body);
  font-size:12px;font-weight:var(--fw-bold);
  letter-spacing:var(--track-kicker);text-transform:uppercase;
  color:var(--accent);
}
.qt-sum-empty{
  margin:0;
  font-family:var(--font-body);
  font-size:14px;line-height:var(--lh-body);
  color:rgba(245,240,230,.72);
}
.qt-sum-rows{margin:0;padding:0}
.qt-sum-rows > div{
  display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-md);
  padding-block:10px;
  border-bottom:1px solid rgba(245,240,230,.14);
}
.qt-sum-rows dt{
  margin:0;
  font-family:var(--font-body);
  font-size:12px;font-weight:var(--fw-bold);
  letter-spacing:.08em;text-transform:uppercase;
  color:rgba(245,240,230,.62);
}
.qt-sum-rows dd{
  margin:0;text-align:right;
  font-family:var(--font-body);
  font-size:14.5px;font-weight:var(--fw-semi);
  color:#fff;
}

/* ---- the estimate ----
   The one number on this page a visitor will remember, and the one that is
   not confirmed. It is sized to be read, and the sentence under it is sized
   to be read too - a caveat in 10px grey is a caveat nobody agreed to. */
.qt-est{
  margin-top:clamp(18px,2vw,26px);
  padding-top:clamp(16px,1.8vw,22px);
  border-top:1px solid rgba(245,240,230,.2);
}
.qt-est-label{
  margin:0;
  font-family:var(--font-body);
  font-size:11.5px;font-weight:var(--fw-bold);
  letter-spacing:var(--track-kicker);text-transform:uppercase;
  color:var(--accent);
}
.qt-est-fig{
  margin:6px 0 0;
  font-family:var(--font-display);
  font-size:clamp(34px,3.6vw,46px);
  line-height:1.05;letter-spacing:-.02em;
  font-weight:var(--fw-medium);
  color:#fff;
}
.qt-est-calc{
  margin:7px 0 0;
  font-family:var(--font-body);
  font-size:13px;color:rgba(245,240,230,.76);
}
.qt-est-note{
  margin:clamp(12px,1.4vw,18px) 0 0;
  font-family:var(--font-body);
  font-size:12.5px;line-height:1.55;
  color:rgba(245,240,230,.82);
}
.qt-est-note b{color:#fff;font-weight:var(--fw-bold)}

.qt-warn{
  margin:clamp(14px,1.6vw,20px) 0 0;
  padding:11px 13px;
  border-left:3px solid var(--rust);
  background:rgba(185,91,53,.18);
  font-family:var(--font-body);
  font-size:12.5px;line-height:1.5;
  color:#fff;
}

.qt-sum-points{
  list-style:none;
  margin:clamp(18px,2vw,26px) 0 0;padding:0;
}
.qt-sum-points li{
  display:flex;align-items:flex-start;gap:9px;
  font-family:var(--font-body);
  font-size:13px;line-height:1.5;
  color:rgba(245,240,230,.88);
}
.qt-sum-points li + li{margin-top:9px}
.qt-sum-points svg{
  width:15px;height:15px;flex:0 0 auto;margin-top:2px;
  fill:none;stroke:var(--accent);stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}

/* ---------------------------------------------------------------------------
   WHAT HAPPENS NEXT
   --------------------------------------------------------------------------- */
.qt-next{
  background:var(--cream-warm);
  color:var(--ink);
  padding-block:clamp(48px,5.4vw,88px);
  border-top:1px solid rgba(40,52,38,.1);
}
.qt-kicker-dark{color:var(--rust-deep)}
.qt-next-head h2,
.qt-rates-copy h2,
.qt-faq-in h2{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(26px,2.8vw,40px);
  line-height:var(--lh-snug);letter-spacing:-.015em;
  font-weight:var(--fw-medium);
  color:var(--forest);
  text-wrap:balance;
}
.qt-step-list{
  list-style:none;
  display:grid;grid-template-columns:minmax(0,1fr);
  gap:clamp(20px,2.4vw,34px);
  margin:clamp(28px,3.2vw,46px) 0 0;padding:0;
  counter-reset:none;
}
.qt-step{
  padding-top:clamp(16px,1.8vw,22px);
  border-top:2px solid var(--forest);
}
.qt-step-n{
  margin:0 0 10px;
  font-family:var(--font-body);
  font-size:12px;font-weight:var(--fw-bold);
  letter-spacing:var(--track-kicker);
  color:var(--rust-deep);
}
.qt-step h3{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(19px,1.6vw,23px);
  line-height:var(--lh-snug);
  font-weight:var(--fw-medium);
  color:var(--forest);
}
.qt-step p:not(.qt-step-n){
  margin:9px 0 0;
  font-family:var(--font-body);
  font-size:14.5px;line-height:var(--lh-body);
  color:var(--ink-soft);
}
.qt-next-note{
  margin:clamp(26px,3vw,40px) 0 0;
  font-family:var(--font-body);
  font-size:14.5px;line-height:var(--lh-body);
  color:var(--ink-soft);
}
.qt-next-note a{
  color:var(--rust-deep);
  border-bottom:1px solid rgba(139,55,29,.35);
}

/* ---------------------------------------------------------------------------
   FROM-RATES
   The rates sit on the page where the estimate is explained rather than where
   it is shown, so the caveat is next to the arithmetic in both places.
   --------------------------------------------------------------------------- */
.qt-rates{
  background:var(--cream);
  color:var(--ink);
  padding-block:clamp(48px,5.4vw,88px);
  border-top:1px solid rgba(40,52,38,.1);
}
.qt-rates-in{
  display:grid;grid-template-columns:minmax(0,1fr);
  gap:clamp(26px,3vw,56px);align-items:start;
}
.qt-rates-copy p{
  margin:clamp(14px,1.6vw,20px) 0 0;
  max-width:52ch;
  font-family:var(--font-body);
  font-size:15.5px;line-height:var(--lh-body);
  color:var(--ink-soft);
}
.qt-rates-link a{
  color:var(--rust-deep);
  border-bottom:1px solid rgba(139,55,29,.35);
}
.qt-rate-list{list-style:none;margin:0;padding:0}
.qt-rate-list li{
  display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-md);
  padding-block:13px;
  border-bottom:1px solid rgba(40,52,38,.14);
  font-family:var(--font-body);
  font-size:15px;color:var(--ink);
}
.qt-rate-list li:first-child{border-top:1px solid rgba(40,52,38,.14)}
.qt-rate-list b{
  font-family:var(--font-display);
  font-size:19px;font-weight:var(--fw-medium);
  color:var(--forest);
}
/* "From" sits on the figure rather than in the row label, because the row
   label is the cabin's name and that is what a scan is looking for. */
.qt-rate-list b::before{
  content:"from ";
  font-family:var(--font-body);
  font-size:11px;font-weight:var(--fw-bold);
  letter-spacing:.1em;text-transform:uppercase;
  color:var(--ink-soft);
}

/* ---------------------------------------------------------------------------
   FAQ LINE
   --------------------------------------------------------------------------- */
.qt-faq{
  background:var(--forest);
  color:var(--cream);
  padding-block:clamp(38px,4.2vw,62px);
}
.qt-faq-in h2{color:#fff}
.qt-faq-in p{
  margin:clamp(12px,1.4vw,18px) 0 0;
  max-width:62ch;
  font-family:var(--font-body);
  font-size:15.5px;line-height:var(--lh-body);
  color:rgba(245,240,230,.84);
}
.qt-faq-in a{
  color:var(--accent);
  border-bottom:1px solid rgba(183,200,150,.4);
}

/* ---------------------------------------------------------------------------
   BREAKPOINTS
   --------------------------------------------------------------------------- */
@media (max-width:599px){
  /* The connectors are there to read as one line. Wrapped onto four rows
     they leave a dash dangling off the end of each one, so they go. */
  .qt-flow li:not(:last-child)::after{display:none}
  .qt-flow{gap:10px 16px;padding-inline:var(--gutter)}
}
@media (max-width:1039px){
  /* Single column, and the summary goes first. Someone arriving from a cabin
     page should see the cabin and the dates they picked confirmed back at
     them before they start typing - below a form this long they would not
     reach it until after the submit button. Nothing in the panel is
     focusable, so showing it ahead of its source position costs a keyboard
     user nothing. */
  .qt-side{order:-1}
}
@media (min-width:680px){
  .qt-step-list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:1040px){
  .qt-main-in{grid-template-columns:minmax(0,1.5fr) minmax(300px,.85fr)}
  /* Sticky only where there is a second column to be sticky in. The offset
     clears the stuck header; without it the panel's title hides under it. */
  .qt-side{position:sticky;top:calc(var(--hdr-h-sm,60px) + 18px)}
  .qt-rates-in{grid-template-columns:minmax(0,1fr) minmax(0,.9fr)}
}

@media (hover:hover) and (pointer:fine){
  .qt-next-note a:hover,
  .qt-rates-link a:hover,
  .qt-faq-in a:hover{border-bottom-color:currentColor}
}

