/* ═══════════════════════════════════════════════════════════════════════════
   rzv.studio — form.css  (THE ENQUIRY FORM + THE TWO DOORS)

   LANE D, polish night 1 Sep 2026. Two components, one new stylesheet
   because they're the two pieces of markup this lane added:
     .enquiry-form  — #contact's form (VOICE.md §THE ASK)
     .offer-doors   — #offer, the Projects / retainer choice (VOICE.md
                      §ROUND 2 — the commercial layer)

   HOUSE TOKENS ONLY. Every colour, radius and easing curve below is a
   var(--…) already defined in base.css's :root — nothing here invents a
   new constant, no gradients, no new font (Inter/Space Mono load once, in
   index.html's head, same as every other page). Dark-phase colours only:
   this site currently ships no body.phase-light instance of either
   component, so no light override is written here — add one the way
   base.css does (a body.phase-light block) if a light page ever hosts them.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── THE ENQUIRY FORM ──────────────────────────────────────────────────── */

.enquiry-form{
  width:100%;
  max-width:640px;
  display:flex;
  flex-direction:column;
  gap:22px;
}

.ef-note{color:var(--dim)}

.ef-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.ef-field{display:flex;flex-direction:column;gap:8px}

.ef-label{color:var(--muted)}

.ef-input{
  width:100%;
  padding:14px 16px;
  border-radius:var(--r-card);
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:var(--fs-sm);
  font-weight:300;
  line-height:1.5;
  transition:border-color 0.24s var(--ease), background-color 0.24s var(--ease);
}
.ef-input::placeholder{color:var(--dim)}
.ef-input:hover{border-color:var(--border-hi)}
.ef-input:focus-visible{
  outline:none;
  border-color:var(--border-hi);
  background:var(--surface-2);
}
/* Reserved for a script-thrown state, not native :invalid — the browser's
   own red ring fires before the reader has even had a chance to try, which
   reads as shouting. This file's validation sets it deliberately instead. */
.ef-input[aria-invalid="true"]{border-color:var(--neg)}

.ef-textarea{resize:vertical;min-height:96px}

select.ef-select{
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FAFAFA' stroke-opacity='0.45' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:16px;
  padding-right:42px;
}

.ef-fieldset{border:0;margin:0;padding:0}

.ef-radios{display:flex;flex-wrap:wrap;gap:10px}

.ef-radio{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:var(--r-pill);
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--muted);
  font-size:var(--fs-btn);
  cursor:pointer;
  transition:border-color 0.24s var(--ease), color 0.24s var(--ease), background-color 0.24s var(--ease);
}
.ef-radio:hover{border-color:var(--border-hi)}
.ef-radio input{
  /* Visually replaced by the label's own pill state, but kept in the
     layout (not display:none) so keyboard focus and the native hit target
     both still land on a real control. */
  width:14px;height:14px;accent-color:var(--text);
}
.ef-radio:has(input:checked){
  border-color:var(--border-hi);
  background:var(--surface-hi);
  color:var(--text);
}
.ef-radio:has(input:focus-visible){outline:2px solid var(--border-hi);outline-offset:2px}

.ef-err{
  font-family:var(--mono);
  font-size:var(--fs-micro);
  letter-spacing:0.01em;
  color:var(--neg);
}

.ef-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px;
  margin-top:6px;
}

/* Haseeb's own line, verbatim (VOICE.md §THE ASK) — sits directly under the
   button so it reads as the promise attached to THIS action, not a
   headline for the section. */
.ef-promise{
  width:100%;
  color:var(--muted);
}

.ef-status{
  font-family:var(--mono);
  font-size:var(--fs-micro);
  color:var(--muted);
}

@media(max-width:640px){
  .ef-grid{grid-template-columns:1fr}
}

/* ── THE TWO DOORS ─────────────────────────────────────────────────────── */

.offer-doors{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(20px,3vw,32px);
  margin-top:clamp(28px,4vw,48px);
  /* 11 Sep, Haseeb: "have project card equal height as the retainer card".
     (10 Sep it was start — "make the project card not full height" — when the
     Project door was a short accordion padded out with nothing. It now holds
     the calculator, whose foot is pushed down level with the retainer's.) */
  align-items:stretch;
}

.offer-door{
  padding:clamp(28px,3.4vw,44px);
  border-radius:var(--r-tile);
  border:1px solid var(--border);
  background:var(--card);
  display:flex;
  flex-direction:column;
  gap:12px;
}

.offer-num{color:var(--dim)}

.offer-name{
  font-size:var(--fs-head);
  font-weight:500;
  letter-spacing:-0.02em;
  color:var(--text);
}

.offer-price{color:var(--muted)}

@media(max-width:760px){
  .offer-doors{grid-template-columns:1fr}
}

/* ── THE RETAINER DOOR — the portal ──────────────────────────────────────
   2 Sep 2026, second pass ("i know you can make this look nicer"). The
   dashboard's portal aurora as the door's ground — but READ AS BLOBS, not
   as fog: the host is pushed up and right so the colour clusters behind the
   title and the switch, the blur is the dashboard's 12–14px rather than 22,
   saturation up, and a radial night falls in from the bottom-left corner so
   the price and the list sit on near-black. The card itself is darker than
   the page so the colours have something to bloom against. */
.offer-door--retainer{
  position:relative;overflow:hidden;isolation:isolate;
  background:#0C0B12;border-color:rgba(255,255,255,0.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.10),0 30px 80px -40px rgba(129,140,248,0.35);
  gap:14px;
}
.offer-door--retainer > *{position:relative;z-index:1}
.offer-door--retainer > .au{
  position:absolute;z-index:0;left:62%;top:34%;
  /* Sized from the card's HEIGHT, not its width: with the Standard list the
     door is taller than it is wide and a width-based square ran out before
     the last rows (a hard edge under "Monthly report", 3 Sep). Square still —
     the composition is ratio-locked — but 150% of the taller side, so it
     covers the card whichever tier is showing. */
  height:150%;width:auto;aspect-ratio:1/1;transform:translate(-50%,-50%);
  --au-o:0.42;--au-sat:1.6;--au-blur:14px;   /* dashboard style (3 Sep): the .au default 0.42 at the default saturation, was 0.92 / 2.05 */
}
.offer-door--retainer::after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(120% 95% at 12% 100%,rgba(9,8,13,0.88),rgba(9,8,13,0.55) 42%,rgba(9,8,13,0.12) 72%,rgba(9,8,13,0) 100%),
    linear-gradient(180deg,rgba(9,8,13,0.0),rgba(9,8,13,0.28))}

/* The segmented control sits on its own width, not the card's. */
.offer-seg{align-self:flex-start;margin:4px 0 2px;   /* after the description, left, on every width */background:rgba(9,8,13,0.55);border-color:rgba(255,255,255,0.20)}
.offer-seg .pf-seg-btn{color:rgba(255,255,255,0.78)}

.offer-tiers{min-height:13em;margin-top:4px}
.offer-tier{opacity:0;transform:translateY(6px);transition:opacity .4s var(--ease),transform .4s var(--ease)}
.offer-tier.is-on{opacity:1;transform:none}
.offer-tier-price{display:flex;align-items:baseline;gap:.3em;font-size:clamp(1.55rem,2.5vw,2.1rem);font-weight:500;letter-spacing:-0.04em;line-height:1;margin:0 0 10px;color:var(--text)}
/* 11 Sep: the retainer figure sits at the foot like the Project total — same size, same place,
   the auto margin that used to sit on the small line moved up onto the figure. */
.offer-door--retainer .offer-tier-price{margin-top:auto;padding-top:clamp(14px,2vw,22px)}
.offer-door--retainer .offer-tier-per{font-size:.5em;letter-spacing:-0.02em;color:var(--muted)}
.offer-tier-per{font-size:.36em;font-weight:400;letter-spacing:0;color:rgba(255,255,255,0.62)}
.offer-tier-lead{margin:0 0 16px;color:rgba(255,255,255,0.82);max-width:36ch}

/* Classic pricing-table list: one row per inclusion, the service's own icon
   (the chips' FA Pro regular SVGs) in a quiet disc, hairline between rows. */
/* 10 Sep 2026, Haseeb: "put retainer items on two columns", "add a line to
   delineate each packages additional features", "remove the circle around the
   icons and use our frosted duotone style instead". The list is a two-column
   grid; .offer-tier-sep is a full-width rule marking where a tier starts adding
   to the one below it; the tick is now a chip icon (chips.css paints .ci-p /
   .ci-r with the frost and rim gradients), so the badge behind it is gone. */
.offer-tier-list{list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(16px,2vw,32px)}
.offer-tier-list li{display:flex;align-items:center;gap:11px;padding:.55em 0;font-size:.94rem;
  color:rgba(255,255,255,0.92);border-top:1px solid rgba(255,255,255,0.10)}
.offer-tier-list li:nth-child(-n+2){border-top:0}
/* 10 Sep: the rule between a tier and its additions is gone — the first item a
   tier ADDS carries the weight instead, which says the same thing without a line
   cutting the two columns in half. */
.offer-tier-more{font-weight:600;color:#fff}
.tier-ico{width:15px;height:15px;flex:0 0 15px;fill:currentColor;opacity:.95}
.offer-tasks{color:rgba(255,255,255,0.82)}
@media(max-width:760px){
  .offer-tier-list{grid-template-columns:1fr}
  .offer-tier-list li:nth-child(-n+2){border-top:1px solid rgba(255,255,255,0.10)}
  .offer-tier-list li:first-child{border-top:0}
}
/* 10 Sep, Haseeb: "make the small text in retainers regular sans serif no
   letterspacing small size." It wore .overline — mono, uppercase, wide tracking.
   Overridden here rather than in the markup so the class keeps its meaning
   everywhere else on the site. */
.offer-door--retainer .offer-price{color:rgba(255,255,255,0.58);margin:0;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:0.82rem;font-weight:400;letter-spacing:0;
  text-transform:none;line-height:1.5}
/* 11 Sep: the project door's small line takes the same type, but stays where
   it is (no margin-top:auto — the calculator decides that card's height). */
.offer-door--projects .offer-price{color:rgba(255,255,255,0.58);margin:0;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:0.82rem;font-weight:400;letter-spacing:0;
  text-transform:none;line-height:1.5}
/* Equal-height doors: the total, small line and Get quote sit at the foot, level
   with the retainer's; the padding keeps a gap under the chips when this card is the tall one. */
.offer-door--projects .offer-calc-price{margin-top:auto;padding-top:clamp(14px,2vw,22px)}

/* No JS: every tier shows, stacked. */
html:not(.offer-tabs-live) .offer-tier{opacity:1;transform:none}
html:not(.offer-tabs-live) .offer-tier[hidden]{display:block}
html:not(.offer-tabs-live) .offer-seg{display:none}
.offer-tier-lead{margin:0 0 12px;color:rgba(255,255,255,0.86);max-width:34ch}

/* ── THE PROJECT CALCULATOR (left door, 11 Sep) — contact-form chips, the
   retainer's price type for the total, monthly work as a quieter second figure. */
.offer-calc{margin-top:6px}
.offer-calc-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:.3em;font-size:clamp(1.55rem,2.5vw,2.1rem);font-weight:500;letter-spacing:-0.04em;line-height:1;margin:clamp(14px,2vw,22px) 0 10px;color:var(--text)}
.offer-calc-num{display:inline-block;font-variant-numeric:tabular-nums}
/* 11 Sep, Haseeb: "retainer and project numbers should be monotype" — the
   figures only; "/ month" and "+" stay in the sans. Mono needs no negative
   tracking. The calculator's canvas reads this face off .offer-calc-num. */
.offer-amount,.offer-calc-num{font-family:var(--mono);letter-spacing:-0.02em;font-weight:400}
/* form.js draws each figure into a canvas at ~1/9 resolution; scaled back up
   without smoothing it reads as a price you can't make out — a mosaic. */
.offer-calc-num canvas{display:inline-block;vertical-align:baseline;image-rendering:crisp-edges;image-rendering:pixelated}
.offer-calc-mo{font-size:.5em;letter-spacing:-0.02em;color:var(--muted)}

/* Title left, switch right, one row (wraps on a narrow card). */
.offer-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.offer-head .offer-name{margin:0}

/* The dashboard's odometer (perf-sections.css .num-*): each digit is a 1em
   mask over a 0–9 strip that GSAP rolls to the value; symbols stay put. */
.offer-amount.num-roll,.offer-calc-num.num-roll,.offer-calc-num .num-roll{display:inline-block;white-space:nowrap}
.offer-amount .num-slot,.offer-calc-num .num-slot{display:inline-block;overflow:hidden;height:1em;line-height:1;vertical-align:bottom}
.offer-amount .num-strip,.offer-calc-num .num-strip{display:block}
.offer-amount .num-strip .num-d,.offer-calc-num .num-strip .num-d{display:block;height:1em;line-height:1;text-align:center;font-variant-numeric:tabular-nums}
.offer-calc-dash{white-space:pre}
.offer-calc-num [hidden]{display:none}
.offer-door--retainer .offer-lede{color:rgba(255,255,255,0.84);max-width:46ch;margin:0}
.offer-range{color:var(--text);margin:0 0 6px}

/* ── #agency ,#range — the one-head line, hero-sized, between the marquee and the packages ── */
#range,#agency,#agency{padding-block:clamp(56px,9vh,128px) clamp(20px,3vh,40px)}
.range-line{
  /* EXACTLY THE HERO TITLE'S TYPE: same .display face and weight (nothing
     overridden here — "should look just like the other hero's"), the hero's
     own size clamp and measure, centred. */
  margin:0 auto;text-align:center;
  font-size:var(--fs-statement);max-width:30ch;
  color:var(--text);text-wrap:balance;
}
.range-inner{display:flex;flex-direction:column;align-items:center;gap:clamp(14px,2vw,24px)}
.range-line{margin:0}
.range-body{margin:0;text-align:center;max-width:52ch;color:var(--muted)}

/* ── THE DOOR CTAs — solid white pills, bottom-left of each card ───────── */
.offer-cta{
  align-self:flex-start;margin-top:clamp(18px,2.4vw,28px);
  display:inline-flex;align-items:center;gap:.55em;
  /* 7 Sep, Haseeb: "solid white buttons — 66% to 33% opacity left-to-right
     gradient with backdrop blur". */
  background:linear-gradient(90deg,rgba(250,250,250,0.66),rgba(250,250,250,0.33));
  -webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);
  color:#0B0B0F;text-decoration:none;
  border-radius:999px;padding:.9em 1.45em;font-weight:500;letter-spacing:-0.01em;line-height:1;
  transition:transform .35s var(--ease),box-shadow .35s var(--ease);
}
.offer-cta:hover{transform:translateY(-1px);box-shadow:0 14px 34px -18px rgba(255,255,255,0.55)}
.offer-cta:active{transform:translateY(0)}
.offer-cta span{transition:transform .35s var(--ease)}
.offer-cta:hover span{transform:translateX(3px)}
.offer-door--projects{display:flex;flex-direction:column}
/* 11 Sep: the foot travels down as ONE block — the total carries the auto
   margin, the button keeps its own spacing. Both had margin-top:auto (the pill
   from 10 Sep, when this card was a short accordion), so the card's spare space
   was split between them and a gap opened under the small line. */
.offer-door--projects .offer-cta{margin-top:clamp(18px,2.4vw,28px)}

/* ── THE CARDS OVER THE GLASS (3 Sep) ──────────────────────────────────────
   #offer stacks above the run's canvas and both doors are FROSTED: a
   translucent ground with a backdrop blur, so the glossy 3D solid roaming
   behind them shows as a soft blurred mass through the cards — flat frosted
   glass against glossy 3D glass. (The retainer's aurora blends inside its
   own isolated context, so the blur does not sample it — trap 1 respected.) */
#offer{z-index:3}
.offer-door{background:rgba(22,22,28,0.52);-webkit-backdrop-filter:blur(22px) saturate(1.25);backdrop-filter:blur(22px) saturate(1.25)}
.offer-door--retainer{background:rgba(12,11,18,0.62)}

/* 7 Sep: word-rise masks (work.js initWordRise) on the range lines. clip-path
   as well as overflow — Safari does not clip a composited child otherwise. */
.rw{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.1em;margin-bottom:-.1em;-webkit-clip-path:inset(0);clip-path:inset(0)}
.rw-i{display:inline-block;will-change:transform}
