/* Stretch+Tents enquiry form, version 3: the 3D tent designer (17 Nov 2026). Ported from the approved mockup. */

/* Layout: one quiet white page. The spinning tent is the form: labels sit round it in the white space, each tied to
   the part of the tent it changes; budget and contact details follow underneath. Single light look on purpose. */
.stq.stq.stq3 {
  --bg: #ffffff;
  --ink: #17213b;          /* S+T navy, deepened for text */
  --muted: #6b7489;
  --line: #dfe3ec;
  --soft: #f4f6fa;
  --brand: #3D5B9E;        /* S+T blue */
  --accent: #F47B20;       /* S+T orange */
  --ok: #2f9e5b;
  --ok-soft: #e8f6ee;
  --warn: #b5541a;
  --warn-soft: #fdf1e7;
  --font: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
.stq.stq3, .stq.stq3 * { box-sizing: border-box; }
.stq.stq3 [hidden] { display: none !important; }
.stq.stq.stq3 { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45; padding-block: 8px 24px; }
.stq.stq3 button, .stq.stq3 input, .stq.stq3 select, .stq.stq3 textarea { font: inherit; color: inherit; }
.stq.stq3 :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.stq.stq3 .wrap { max-width: 1180px; margin: 0 auto; display: grid; gap: 28px; }

/* mode switch: small, centred */
.stq.stq3 .mode { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.stq.stq3 .reset { border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.stq.stq3 .reset:hover { color: var(--ink); border-color: #b9c3d8; }
.stq.stq3 .reset svg { width: 14px; height: 14px; }
.stq.stq3 .undo { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 9; background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 10px 9px 16px; font-size: 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px rgba(23,33,59,.25); }
.stq.stq3 .undo button { border: 0; background: rgba(255,255,255,.16); color: #fff; font-weight: 700; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.stq.stq3 .mode__seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--soft); border-radius: 999px; }
.stq.stq3 .mode__seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.stq.stq3 .mode__seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(23,33,59,.14); }
.stq.stq3 .lede { text-align: center; color: var(--muted); font-size: 14px; margin: -14px 0 0; text-wrap: balance; }

/* the stage: tent in the middle, labels round it */
.stq.stq3 .stage { position: relative; height: clamp(440px, 52vw, 620px); }
.stq.stq3 .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.stq.stq3 .stage canvas:active { cursor: grabbing; }
.stq.stq3 .leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stq.stq3 .leaders line { stroke: #b9c0cf; stroke-width: 1; }
.stq.stq3 .leaders circle { fill: var(--bg); stroke: #9aa3b6; stroke-width: 1.2; }
.stq.stq3 .leaders .done line { stroke: #9fd3b4; } .stq.stq3 .leaders .done circle { stroke: var(--ok); fill: var(--ok); }
.stq.stq3 .spin-hint { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.stq.stq3 .nogl { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }

.stq.stq3 .tag { position: absolute; width: 214px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px 10px 34px;
  cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.stq.stq3 .tag:hover { border-color: #b9c3d8; box-shadow: 0 2px 10px rgba(23,33,59,.07); }
.stq.stq3 .tag[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(61,91,158,.12); }
.stq.stq3 .tag__k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stq.stq3 .tag__req { font-size: 10.5px; letter-spacing: .02em; text-transform: none; font-weight: 600; color: var(--accent); }
.stq.stq3 .tag__v { display: block; font-size: 14.5px; font-weight: 600; margin-top: 1px; overflow-wrap: anywhere; }
.stq.stq3 .tag__v.is-empty { color: #9aa3b6; font-weight: 500; }
.stq.stq3 .tag__dot { position: absolute; left: 11px; top: 12px; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #b9c0cf; background: var(--bg); }
.stq.stq3 .tag.is-done { border-color: #bfe3cd; background: var(--ok-soft); }
.stq.stq3 .tag.is-done .tag__dot { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.stq.stq3 .tag.is-done .tag__req { color: var(--ok); }
.stq.stq3 .t-event { left: 50%; top: 0; transform: translateX(-50%); text-align: center; padding-left: 12px; width: 236px; }
.stq.stq3 .t-event .tag__dot { position: static; display: inline-block; vertical-align: -3px; margin-right: 6px; }
.stq.stq3 .t-event .tag__k { justify-content: center; }
.stq.stq3 .t-colour { left: 0; top: 16%; } .stq.stq3 .t-sides { left: 0; top: 42%; } .stq.stq3 .t-ground { left: 0; top: 68%; }
.stq.stq3 .t-size { right: 0; top: 16%; } .stq.stq3 .t-extras { right: 0; top: 42%; } .stq.stq3 .t-call { right: 0; top: 68%; }

/* the picker that opens from a label */
.stq.stq3 .pop { position: absolute; z-index: 5; width: min(340px, calc(100vw - 32px)); background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(23,33,59,.16); padding: 16px; display: grid; gap: 12px; }
.stq.stq3 .pop h3 { margin: 0; font-size: 15px; } .stq.stq3 .pop p { margin: 0; color: var(--muted); font-size: 13px; }
.stq.stq3 .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.stq.stq3 .opt { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.stq.stq3 .opt:hover { border-color: #b9c3d8; } .stq.stq3 .opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; padding-left: 26px; position: relative; }
.stq.stq3 .opt[aria-pressed="true"]::before { content: ""; position: absolute; left: 9px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.3l3 2.9L12.5 5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.stq.stq3 .sidegrid .opt[aria-pressed="true"] { padding-left: 22px; }
.stq.stq3 .opt[aria-pressed="true"] .sw i { box-shadow: 0 0 0 2px #fff; }
.stq.stq3 .opt { transition: background-color .12s, color .12s, border-color .12s; }
.stq.stq3 .sw { display: inline-flex; align-items: center; gap: 7px; } .stq.stq3 .sw i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.stq.stq3 .pop .row { display: flex; align-items: center; gap: 10px; }
.stq.stq3 .pop output { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 5ch; }
.stq.stq3 .pop .done { justify-self: end; border: 0; background: var(--brand); color: #fff; font-weight: 700; padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.stq.stq3 .hint { font-size: 12.5px; color: var(--muted); }
.stq.stq3 input[type=range] { width: 100%; accent-color: var(--brand); }
/* the budget track: red well under the estimate, amber at it, green just above (set from the design in script) */
.stq.stq3 #budget { -webkit-appearance: none; appearance: none; height: 10px; border-radius: 999px; background: var(--track, var(--line)); outline-offset: 6px; }
.stq.stq3 #budget::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 3px solid var(--ink); box-shadow: 0 2px 8px rgba(23,33,59,.25); cursor: grab; }
.stq.stq3 #budget::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 3px solid var(--ink); box-shadow: 0 2px 8px rgba(23,33,59,.25); cursor: grab; }
.stq.stq3 #budget::-moz-range-track { background: transparent; }
.stq.stq3 .budget__est { font-size: 13px; color: var(--muted); }
.stq.stq3 .budget__est b { color: var(--ink); }
.stq.stq3 .note.is-red { background: #fdecec; color: #7a1f1f; }
.stq.stq3 .note.is-amber { background: #fdf3e2; color: #6d4510; }
.stq.stq3 .note.is-green { background: var(--ok-soft); color: #1d5a37; }
.stq.stq3 .sidegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stq.stq3 .sidegrid .opt { border-radius: 10px; padding: 8px 6px; text-align: center; }

/* help me choose */
.stq.stq3 .help { display: grid; gap: 10px; justify-items: center; text-align: center; }

/* budget and details */
.stq.stq3 .panel { max-width: 720px; width: 100%; margin: 0 auto; display: grid; gap: 22px; }
.stq.stq3 .sec { display: grid; gap: 10px; }
.stq.stq3 .sec h2 { margin: 0; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.stq.stq3 .sec h2 span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.stq.stq3 .budget { display: grid; gap: 8px; }
.stq.stq3 .more { display: grid; gap: 4px; }
.stq.stq3 .more label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stq.stq3 .more label span { font-weight: 400; }
.stq.stq3 .more textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); resize: vertical; min-height: 40px; }
.stq.stq3 .more textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(61,91,158,.12); }
.stq.stq3 .budget__val { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stq.stq3 .budget__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.stq.stq3 .note { border-radius: 12px; padding: 12px 14px; font-size: 14px; display: grid; gap: 8px; }
.stq.stq3 .note.is-low { background: var(--warn-soft); color: #6d3510; }
.stq.stq3 .note.is-high { background: #eef2fa; color: var(--ink); }
.stq.stq3 .note b { display: block; }
.stq.stq3 .note .opt { justify-self: start; }
.stq.stq3 .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stq.stq3 .field { display: grid; gap: 5px; position: relative; min-width: 0; }
.stq.stq3 .field.full { grid-column: 1 / -1; }
.stq.stq3 .field label { font-size: 13px; font-weight: 600; }
.stq.stq3 .field label em { font-style: normal; color: var(--accent); font-weight: 600; font-size: 12px; }
.stq.stq3 .field input[type=text], .stq.stq3 .field input[type=email], .stq.stq3 .field input[type=tel], .stq.stq3 .field input[type=date] { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.stq.stq3 .field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(61,91,158,.12); }
.stq.stq3 .check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.stq.stq3 .suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 4; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(23,33,59,.12); margin-top: 4px; overflow: hidden; }
.stq.stq3 .suggest button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; cursor: pointer; font-size: 14px; }
.stq.stq3 .suggest button:hover, .stq.stq3 .suggest button:focus { background: var(--soft); }
.stq.stq3 .suggest small { display: block; padding: 6px 12px; color: var(--muted); font-size: 11.5px; border-top: 1px solid var(--line); }
.stq.stq3 .send { display: grid; gap: 8px; justify-items: center; text-align: center; }
.stq.stq3 .send button { border: 0; background: var(--accent); color: #fff; font-weight: 800; font-size: 16px; padding: 14px 34px; border-radius: 999px; cursor: pointer; }
.stq.stq3 .send button:disabled { background: #f3c4a0; cursor: not-allowed; }
.stq.stq3 .send p { margin: 0; font-size: 13px; color: var(--muted); }
.stq.stq3 .sent { border: 1px solid #bfe3cd; background: var(--ok-soft); border-radius: 14px; padding: 18px; display: grid; gap: 8px; }
.stq.stq3 .sent h3 { margin: 0; } .stq.stq3 .sent pre { margin: 0; white-space: pre-wrap; font: 13px/1.5 ui-monospace, Consolas, monospace; color: #2b3a33; }
.stq.stq3 .mock { text-align: center; font-size: 12px; color: #9aa3b6; }

/* phones: labels go under the tent, two to a row */
@media (max-width: 820px) {
  .stq.stq3 .stage { height: auto; display: grid; gap: 8px; }
  .stq.stq3 .stage canvas { position: relative; height: 200px; }
  .stq.stq3 .leaders { display: none; }
  .stq.stq3 .spin-hint { position: static; transform: none; text-align: center; }
  .stq.stq3 .tags { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .stq.stq3 .tag, .stq.stq3 .t-event { position: relative; inset: auto; transform: none; width: auto; text-align: left; padding-left: 34px; }
  .stq.stq3 .t-event { grid-column: 1 / -1; }
  .stq.stq3 .t-event .tag__dot { position: absolute; margin: 0; } .stq.stq3 .t-event .tag__k { justify-content: flex-start; }
  .stq.stq3 .pop { position: fixed; left: 50% !important; top: auto !important; bottom: max(12px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); }
  .stq.stq3 .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {.stq.stq3 .tag { transition: none; } }

.stq.stq3 .stq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.stq.stq3 .stq3-ts { margin-top: 8px; }
.stq.stq3 .stq-places { width: 100%; }

/* The theme styles .stq for the older forms (blue card, 880px, light text); the designer sits on white, full width. */
.stq.stq3 { background: var(--bg); color: var(--ink); max-width: 1180px; width: 100%; margin: 0 auto; padding: 8px 0 24px; border-radius: 0; box-shadow: none; border: 0; }
.stq.stq3 h2, .stq.stq3 h3, .stq.stq3 p, .stq.stq3 label, .stq.stq3 b, .stq.stq3 output { color: inherit; }
.stq.stq3 .lede, .stq.stq3 .hint, .stq.stq3 .budget__scale, .stq.stq3 .budget__est, .stq.stq3 .send p, .stq.stq3 .sec h2, .stq.stq3 .more label, .stq.stq3 .spin-hint { color: var(--muted); }
.stq.stq3 .field label { color: var(--ink); }
.stq.stq3 .check { color: var(--muted); }
.stq.stq3 .opt:disabled { opacity: .45; cursor: not-allowed; border-style: dashed; }
.stq.stq3 .opt small { font-weight: 500; opacity: .8; }
/* Details: every box the same height, lined up along the top (the date's "Not fixed yet" sits underneath it) */
.stq.stq3 .fields { align-items: start; }
.stq.stq3 .field { align-content: start; }
.stq.stq3 .field label:first-child { min-height: 20px; display: flex; align-items: flex-end; gap: 4px; }
.stq.stq3 .field input[type=text], .stq.stq3 .field input[type=email], .stq.stq3 .field input[type=tel], .stq.stq3 .field input[type=date] { height: 46px; margin: 0; padding: 0 12px; font-size: 15px; line-height: normal; box-shadow: none; }
.stq.stq3 .field .stq-places { min-height: 46px; }
/* Winter page: the tent sits in a cold dusky panel rather than on white */
.stq.stq3.is-winter .stage { background: radial-gradient(ellipse 62% 58% at 50% 56%, #aab6c6 0%, #c4cdd8 34%, #e2e7ed 60%, rgba(255,255,255,0) 82%); }

/* Hire or buy (17 Nov 2026): a small switch in the top right; hire is picked unless the page is a buy page */
.stq.stq3 .mode { position: relative; }
.stq.stq3 .deal { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.stq.stq3 .deal button { border: 0; background: none; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.stq.stq3 .deal button[aria-pressed="true"] { background: var(--brand); color: #fff; }
/* "I know what I need": the buy options as one short card, no 3D tent */
.stq.stq3 .quick { max-width: 720px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stq.stq3 .quick .q { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.stq.stq3 .quick .q.is-wide { grid-column: 1 / -1; }
.stq.stq3 .quick h3 { margin: 0; font-size: 15px; } .stq.stq3 .quick p { margin: 0; color: var(--muted); font-size: 13px; }
.stq.stq3 .dims { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stq.stq3 .dims input { width: 84px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--bg); }
.stq.stq3 .qty { display: inline-flex; align-items: center; gap: 4px; }
.stq.stq3 .qty button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); font-weight: 800; cursor: pointer; }
.stq.stq3 .qty output { min-width: 28px; text-align: center; font-weight: 700; }
@media (max-width: 820px) {
  .stq.stq3 .mode { flex-direction: column; }
  .stq.stq3 .deal { position: static; transform: none; order: -1; }
  .stq.stq3 .quick { grid-template-columns: 1fr; }
}

/* Phones: the theme's fixed Get a quote / Call bar (.stn-mobilebar, 56px, z-index 101) would cover the bottom of an
   open picker and its Done button. While a picker is open the bar slides away; the Undo note sits above the bar. */
@media (max-width: 820px) {
  .stn-mobilebar { transition: transform .2s ease; }
  html.stq3-picking .stn-mobilebar { transform: translateY(110%); pointer-events: none; }
  .stq.stq3 .pop { z-index: 102; max-height: calc(100vh - 96px); overflow-y: auto; }
  .stq.stq3 .undo { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 102; }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) { .stn-mobilebar { transition: none; } }

/* Go-live audit (17 Nov 2026): the privacy line under Send; empty label text dark enough to read (4.7:1) */
.stq.stq3 .send .privacy { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); max-width: 52ch; }
.stq.stq3 .send .privacy a { color: var(--brand); }
.stq.stq3 .tag__v.is-empty { color: var(--muted); font-weight: 500; }

/* Address search (Google's box), launch 18 Nov 2026: same width, border, corners and height as the other boxes,
   so it never runs past the column on a phone. */
.stq.stq3 .field .stq-places { display: block; width: 100% !important; min-width: 0 !important; max-width: 100%; box-sizing: border-box; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color-scheme: light; } /* no fixed height or overflow clip: Google's suggestion list opens inside this box on laptops */
.stq.stq3 .field .stq-places:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(61,91,158,.12); }
/* Phones: 16px text in every box, so iPhones don't zoom the page in when a box is tapped. */
@media (max-width: 760px) {
  .stq.stq3 .field input[type=text], .stq.stq3 .field input[type=email], .stq.stq3 .field input[type=tel], .stq.stq3 .field input[type=date], .stq.stq3 textarea, .stq.stq3 select { font-size: 16px; }
}
