/* ==========================================================================
   Phase — instant website quote
   The poster theme's sticker hero (css/home.css, js/home.js) with a yellow
   disc, which swells straight into the page the quiz sits on: a note and
   the package prices on the left, the quiz in a paper card on the right.
   One question at a time (js/quote.js); the estimate is emailed by
   /api/quote and never shown on the page.
   ========================================================================== */

body.quote-page{--hm-ground:var(--p-yellow)}

/* ==========================================================================
   HERO — short: the quiz is the point
   ========================================================================== */
.js .quote-page .hm-hero{height:180vh}
.quote-page .hm-sun{--s:clamp(240px,26vw,440px);left:66%;top:50%}
.quote-page .hm-hero h1{font-size:clamp(3.4rem,10.5vw,11rem);letter-spacing:-.06em}
.quote-page .hm-hero__sub{max-width:30em;color:rgba(10,10,10,.82)}

/* ==========================================================================
   THE QUIZ — on the disc's yellow (overlapping the hero by a hair, so no
   browser shows a seam), with the scalloped hem below
   ========================================================================== */
.qt-main{
  position:relative;
  margin-top:-3px;
  padding:clamp(50px,7vw,100px) 0 clamp(110px,12vw,170px);
  background:var(--hm-ground);
  color:#0a0a0a;
  --fl-faint:rgba(10,10,10,.6);
  --fl-dim:rgba(10,10,10,.78);
}
.qt-main::after{
  content:"";
  position:absolute;
  left:0;right:0;
  top:calc(100% - 1px);
  height:29px;
  background:radial-gradient(circle at 50% 1px,var(--hm-ground) 27px,transparent 28px) 0 0/56px 29px repeat-x;
  pointer-events:none;
  z-index:1;
}
.qt-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(36px,6vw,100px);align-items:start}
.qt-info{position:sticky;top:calc(var(--fl-nav) + 40px)}
.qt-info h2{font-size:clamp(2.4rem,4.6vw,4.2rem);font-weight:600;letter-spacing:-.045em;line-height:.95;max-width:9ch}
.qt-info p{margin-top:20px;max-width:30ch;font-size:clamp(1.05rem,1.3vw,1.2rem);line-height:1.55;color:var(--fl-dim)}

/* the package prices, as a little price list */
.qt-tiers{display:grid;margin-top:26px;max-width:320px;border-top:2px solid #0a0a0a}
.qt-tiers div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:12px 2px;border-bottom:1.5px dashed rgba(10,10,10,.35)}
.qt-tiers dt{font-family:var(--fl-mono);font-size:.74rem;letter-spacing:.14em;text-transform:uppercase}
.qt-tiers dd{margin:0;font-size:1.15rem;font-weight:600;letter-spacing:-.02em}
.qt-pricing{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:26px;
  padding:15px 22px;
  border-radius:var(--radius-pill);
  font-size:1.05rem;
  font-weight:600;
  color:#fff;
  background:#0a0a0a;
  transition:transform .35s var(--fl-ease);
}
.qt-pricing:hover{transform:translateY(-2px)}
.qt-pricing svg{width:16px;height:16px}

/* the card */
.qt-card{position:relative}
.qt-card__sticker{position:absolute;z-index:0;height:auto;pointer-events:none;filter:drop-shadow(0 14px 18px rgba(60,40,0,.22))}
.qt-card__sticker--star{right:-36px;top:-50px;width:clamp(100px,10vw,150px);rotate:14deg}
.qt-card__sticker--bands{left:-44px;bottom:-38px;width:clamp(110px,11vw,160px);rotate:-8deg}
.qt-flow{
  position:relative;
  z-index:1;
  min-height:clamp(420px,40vw,520px);
  padding:clamp(26px,3.6vw,48px);
  border-radius:28px;
  background:var(--fl-surface);
  box-shadow:0 50px 90px -50px rgba(70,50,0,.55),0 10px 24px -14px rgba(70,50,0,.28);
}

/* progress: a chunky ink track */
.quote-page .quote-progress{
  height:10px;
  margin-bottom:clamp(30px,4vw,44px);
  border:2px solid #0a0a0a;
  border-radius:99px;
  background:var(--fl-bg);
}
.quote-page .quote-progress__bar{border-radius:99px;background:#0a0a0a;transition:width .5s var(--fl-ease)}

.quote-page .quote-step__eyebrow{
  margin-bottom:12px;
  font-family:var(--fl-mono);
  font-size:.72rem;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(10,10,10,.6);
}
.quote-page .quote-step h2{
  max-width:17ch;
  margin-bottom:clamp(22px,3vw,32px);
  font-size:clamp(1.7rem,2.7vw,2.5rem);
  font-weight:600;
  letter-spacing:-.035em;
  line-height:1.05;
}

/* the answers: outlined paper tiles that fill with a colour and lift */
.quote-page .quote-options{grid-template-columns:1fr 1fr;gap:14px}
.quote-page .quote-option{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:76px;
  padding:18px 20px;
  border:2px solid #0a0a0a;
  border-radius:18px;
  font-size:1.02rem;
  font-weight:600;
  line-height:1.3;
  color:#0a0a0a;
  background:var(--fl-bg);
  box-shadow:0 0 0 #0a0a0a;
  transition:background-color .2s,transform .25s var(--fl-ease),box-shadow .25s var(--fl-ease);
}
.quote-page .quote-option::after{content:"→";flex:none;font-weight:500;transition:transform .25s var(--fl-ease)}
.quote-page .quote-option:hover,
.quote-page .quote-option:focus-visible{outline:none;background:var(--c,var(--p-yellow));transform:translate(-2px,-3px);box-shadow:4px 5px 0 #0a0a0a}
.quote-page .quote-option:hover::after,
.quote-page .quote-option:focus-visible::after{transform:translateX(4px)}
.quote-page .quote-option:nth-child(4n+1){--c:var(--p-yellow)}
.quote-page .quote-option:nth-child(4n+2){--c:var(--p-pink)}
.quote-page .quote-option:nth-child(4n+3){--c:var(--p-green)}
.quote-page .quote-option:nth-child(4n+4){--c:#9fc4ff}

/* the typed answers */
.quote-page .quote-email-form,
.quote-page .quote-text-form{max-width:none;gap:16px}
.quote-page .qt-flow .field{gap:8px}
.quote-page .qt-flow .field label:not(.sr-only){
  font-family:var(--fl-mono);
  font-size:.68rem;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(10,10,10,.62);
}
.quote-page .qt-flow .field input,
.quote-page .qt-flow .field textarea{
  padding:16px 18px;
  border:2px solid #0a0a0a;
  border-radius:16px;
  font-size:1.05rem;
  background:var(--fl-bg);
  transition:background-color .2s,box-shadow .2s;
}
.quote-page .qt-flow .field textarea{resize:vertical;min-height:120px}
.quote-page .qt-flow .field input:focus-visible,
.quote-page .qt-flow .field textarea:focus-visible{outline:none;background:#fff;box-shadow:0 0 0 4px rgba(247,208,0,.7)}
.quote-page .qt-flow .field input::placeholder,
.quote-page .qt-flow .field textarea::placeholder{color:rgba(10,10,10,.38)}
.quote-page .qt-flow .fl-btn{align-self:flex-start;height:56px;padding:0 28px}
.quote-page .qt-flow .fl-btn:disabled{opacity:.7;cursor:progress}
.quote-page .qt-flow .form-status:empty{display:none}

.quote-page .quote-result h2{margin-bottom:14px}
.quote-page .quote-result__note{margin-bottom:26px;max-width:32em;font-size:1.1rem;line-height:1.6;color:var(--fl-dim)}

.quote-page .quote-back:not([hidden]){
  display:inline-flex;
  margin-top:28px;
  font-family:var(--fl-mono);
  font-size:.74rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(10,10,10,.6);
}
.quote-page .quote-back:hover{color:#0a0a0a}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:900px){
  .qt-grid{grid-template-columns:1fr}
  .qt-info{position:relative;top:auto}
  .qt-flow{min-height:0}
}
@media (max-width:600px){
  .quote-page .quote-options{grid-template-columns:1fr}
  .quote-page .quote-option{min-height:62px}
  .qt-card__sticker--star{right:-10px;top:-44px;width:90px}
  .qt-card__sticker--bands{left:-14px;bottom:-30px;width:96px}
}
@media (prefers-reduced-motion:reduce){
  .js .quote-page .hm-hero{height:auto}
}
