/* ==========================================================================
   TapRemark — Private Feedback Card Setup Form
   Shares the TapRemark design tokens. Mobile-first, no libraries.
   Without JS every step is visible as one long form; script.js adds the
   .js class and turns the fieldsets into steps.
   ========================================================================== */

:root {
  --bg: #FAF8F3;
  --bg-alt: #F2EEE4;
  --surface: #FFFFFF;
  --ink: #232823;
  --ink-soft: #59605A;
  --green: #1E6B4F;
  --green-dark: #17553F;
  --green-tint: #E4EFE7;
  --cream: #FAF8F3;
  --line: #E4DECE;
  --bad: #A33A2E;

  --font-display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 30px rgba(35, 40, 35, 0.08);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}

p {
  margin: 0 0 var(--space-2);
}

.container {
  width: min(760px, 100% - 2.5rem);
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Announced by screen readers, never shown. Used for the recalculated
   order total, so the change is spoken once as a short sentence instead
   of six separately changed summary lines. */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Buttons (match the main TapRemark site)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--green);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Header + footer
   -------------------------------------------------------------------------- */
.setup-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.wordmark strong {
  color: var(--green);
  font-weight: 700;
}

.wordmark-icon {
  width: 28px;
  height: 28px;
}

.header-tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--green);
  background: var(--green-tint);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
  line-height: 1.3;
}

@media (max-width: 419px) {
  .header-tag {
    font-size: 0.62rem;
    padding: 0.28rem 0.6rem;
    max-width: 46vw;
  }
}

.setup-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-3);
  margin-top: var(--space-4);
}

.setup-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */
.setup-container {
  padding-block: clamp(1.75rem, 5vw, 3rem) 0;
}

.setup-intro p {
  color: var(--ink-soft);
  max-width: 40em;
}

.intro-points {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--green);
  background: var(--green-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: grid;
  gap: 0.4rem;
}

.intro-points li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 500;
  font-size: 0.98rem;
}

.intro-points li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.4em;
  width: 0.55em;
  height: 0.3em;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.after-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 44em;
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   Opening / welcome screen
   -------------------------------------------------------------------------- */
.welcome {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}

.welcome-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 0 var(--space-3);
}

.welcome-icon {
  width: 46px;
  height: 46px;
}

.welcome-wordmark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}

.welcome-wordmark strong {
  color: var(--green);
  font-weight: 700;
}

.welcome h1 {
  margin-bottom: var(--space-2);
}

.welcome-lede {
  color: var(--ink-soft);
  max-width: 34em;
  margin-inline: auto;
}

.welcome-points {
  max-width: 34em;
  margin: var(--space-3) auto;
  text-align: left;
}

.welcome-strong {
  font-weight: 600;
  max-width: 34em;
  margin-inline: auto;
}

.welcome-prep {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 auto var(--space-3);
}

/* the start button needs JS to work, so it only shows with JS */
.welcome-start {
  display: none;
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
}

.js .welcome-start {
  display: inline-block;
}

.js .welcome[hidden] {
  display: none;
}

/* with JS the form is hidden until the visitor starts */
.js .setup-form[hidden] {
  display: none;
}

/* without JS the welcome flows straight into the one-page form */
.welcome {
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   Form shell + progress
   -------------------------------------------------------------------------- */
.setup-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
}

.progress {
  margin-bottom: var(--space-3);
}

.progress-text {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.progress-track {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-alt);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 4px;
  background: var(--green);
  transition: width 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .progress-fill {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */
.fstep {
  border: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  min-width: 0;
}

.fstep legend {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0;
  margin-bottom: var(--space-2);
}

.fstep legend:focus {
  outline: none;
}

.step-note {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-top: -0.5rem;
}

/* JS mode: one step at a time */
.js .fstep[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   Fields (match the main site's form styling)
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: var(--space-2) var(--space-3);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.field label,
.choice-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.req {
  color: var(--green);
}

.optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  width: 100%;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 1px;
}

.field input.field-invalid,
.field select.field-invalid,
.field textarea.field-invalid {
  border-color: var(--bad);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Informational notice inside a field (e.g. logo transparency) — same
   pale-green, left-border treatment as .intro-points. */
.field-notice {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--green);
  background: var(--green-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.field-notice p {
  margin: 0;
}

.field-notice-title {
  font-weight: 600;
  color: var(--ink);
}

.field-notice a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field-notice a:hover {
  color: var(--green-dark);
}

.field input[type="file"] {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  width: 100%;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--green);
}

.consent-check {
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
}

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  color: var(--bad);
  font-weight: 600;
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   Choice cards (layout + font style)
   -------------------------------------------------------------------------- */
.choice-group {
  margin-bottom: var(--space-3);
}

.choice-group:last-child {
  margin-bottom: 0;
}

.choice-label {
  margin: 0 0 0.6rem;
}

.choice-row {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 0.7rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.choice-card:hover {
  border-color: var(--green);
}

/* keep the radio accessible but visually merged with the card */
.choice-card input {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--green);
}

.choice-card:has(input:checked) {
  border-color: var(--green);
  background: var(--green-tint);
}

.choice-card:has(input:focus-visible) {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.choice-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}

.choice-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.choice-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.6rem 0 0;
}

/* mini card previews */
.choice-visual {
  display: grid;
  place-items: center;
  height: 58px;
}

/* Branding-emphasis previews: every option uses the SAME card
   outline (2:3). Only the logo/name hierarchy changes. These are
   hierarchy previews, not a production size — each TapRemark display
   has its own finished format. */
.choice-visual-tall {
  height: 96px;
}

.card46 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 56px;
  aspect-ratio: 2 / 3;
  padding: 7px 6px 6px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(35, 40, 35, 0.1);
}

/* logo block (green square) — size carries the emphasis */
.c-logo {
  border-radius: 3px;
  background: var(--green);
  margin-bottom: 4px;
}

.c-logo-lg { width: 22px; height: 22px; }
.c-logo-md { width: 14px; height: 14px; }
.c-logo-sm { width: 8px; height: 8px; }

/* business-name bar — thickness/width carries the emphasis */
.c-name {
  border-radius: 2px;
  background: var(--ink);
  margin-bottom: 4px;
}

.c-name-lg { width: 84%; height: 7px; }
.c-name-md { width: 68%; height: 5px; }
.c-name-sm { width: 50%; height: 3px; }

/* supporting content lines + NFC circle, identical in every option */
.c-line {
  width: 72%;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  margin-bottom: 3px;
}

.c-short {
  width: 50%;
}

.c-nfc {
  width: 13px;
  height: 13px;
  border: 2px solid var(--green);
  border-radius: 50%;
  margin-top: auto;
}

/* "Let TapRemark Choose": same outline, tasteful question mark */
.card46-choose {
  border-style: dashed;
  justify-content: center;
}

.c-q {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

/* font-style samples: general direction only, not exact fonts */
.font-sample {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.font-modern {
  font-family: "Figtree", "Segoe UI", Arial, sans-serif;
}

.font-classic {
  font-family: Georgia, "Times New Roman", serif;
}

.font-rounded {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Stacked radio options (colors + logo)
   -------------------------------------------------------------------------- */
.stack-options {
  display: grid;
  gap: 0.6rem;
}

.stack-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.stack-option:hover {
  border-color: var(--green);
}

.stack-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-tint);
}

.stack-option:has(input:focus-visible) {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.stack-option input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25rem;
  accent-color: var(--green);
}

.stack-option span {
  font-weight: 600;
  font-size: 0.98rem;
}

.stack-option em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.1rem;
}

/* color pickers: JS shows them only for "Use the colors I pick";
   without JS they stay visible as optional fields */
.color-pickers {
  margin-top: var(--space-2);
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
}

.js .color-pickers[hidden],
.js #logo-file-field[hidden],
.js .cond[hidden] {
  display: none;
}

.color-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.field input[type="color"] {
  width: 56px;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
}

.color-code {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

#logo-file-field {
  margin-block: var(--space-2) var(--space-3);
}

/* --------------------------------------------------------------------------
   Website setup step (step 5)
   -------------------------------------------------------------------------- */
.sub-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
  margin: var(--space-3) 0 var(--space-2);
}

.fstep .sub-heading:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: var(--space-2);
}

/* standalone fields outside a form-grid keep the same rhythm */
.field-solo {
  margin-bottom: var(--space-3);
}

/* compact selectable options (checkbox groups + Yes/No choices) */
.opt-grid {
  display: grid;
  gap: 0.55rem;
}

.opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.opt:hover {
  border-color: var(--green);
}

.opt input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--green);
}

.opt:has(input:checked) {
  border-color: var(--green);
  background: var(--green-tint);
}

.opt:has(input:focus-visible) {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.opt-grid-yn {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 340px;
}

/* conditional blocks keep the step rhythm even though their last
   inner group drops its own bottom margin */
#star-fields,
#mgr-fields {
  margin-bottom: var(--space-3);
}

/* a group that failed validation shows it on every option */
.group-invalid .opt {
  border-color: var(--bad);
}

.choice-group .field-hint {
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------------------
   Display placement (step 6)
   -------------------------------------------------------------------------- */
.cond-fields {
  margin-top: var(--space-2);
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
}

/* The two TapRemark-supplied display choices (acrylic stand + table
   tent) sit inside one labeled family so they read as two variants of
   the same TapRemark-provided option */
.display-family {
  display: grid;
  gap: 0.6rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.85rem 0.95rem 0.95rem;
}

.display-family-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.display-family-sub {
  margin: -0.4rem 0 0;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Measuring guidance shown above a conditional measurement grid */
.measure-intro {
  margin-bottom: var(--space-2);
}

/* A measurement and the ruler photo that verifies it belong together:
   each pair sits in its own tinted card (same pattern as the staff
   cards), one column per pair on desktop, stacked on phones */
.measure-pair {
  display: grid;
  gap: var(--space-2);
  align-content: start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}

/* inputs sit on the tinted pair card, so they use the white surface */
.measure-pair .field input {
  background: var(--surface);
}

/* Short numbered how-to-measure steps (check presenter) */
.measure-steps {
  margin: 0 0 var(--space-2);
  padding-left: 1.35rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.measure-steps li::marker {
  font-weight: 700;
  color: var(--green);
}

/* Gentle notice that the ruler photos verify the measurements */
.measure-note {
  margin: var(--space-2) 0 0;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--green);
  background: var(--green-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 500;
  font-size: 0.92rem;
}

.cond-note {
  margin-top: var(--space-2);
  padding: 0.8rem 1.1rem;
  border-left: 3px solid var(--green);
  background: var(--green-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cond-note p {
  margin: 0;
  font-weight: 500;
  font-size: 0.95rem;
}

.photo-status {
  color: var(--green);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Unit quantities + running unit total (step 6)
   Appears only once a placement method is chosen. Same visual language as
   the rest of the form — no new colors, no new type scale.
   There is deliberately NO priced summary here; pricing lives on the
   payment step only.
   -------------------------------------------------------------------------- */
.quantity-heading {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Number fields stay comfortably tappable but don't stretch across a
   desktop row, where a full-width box would read as a text field. */
.qty-input {
  max-width: 11rem;
  min-height: 48px;
}

/* Chrome/Safari spinners are kept (they help on desktop) but never allowed
   to squeeze the typed value on small screens. */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  margin-left: 0.35rem;
}

/* The running unit total closes the quantity section. The measurement/photo
   block for an existing holder or a check presenter continues below it, so it
   keeps a small bottom margin ahead of that block's own divider. */
.unit-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-1);
  padding: 0.8rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.unit-total-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.unit-total-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Google Review Stand add-on (step 8)

   Built entirely from the existing tokens — the same surface, line, green,
   radius, shadow and type scale as the rest of the form. Nothing new is
   introduced except the strikethrough on the retail price, which is what a
   discount has to look like to be honest about what it is.

   The section reads as a benefit, not a second checkout: the badge names why
   the price is available, the price pair shows what it replaces, and the
   choice below it is an ordinary two-option radio group in the same
   .stack-option language step 6 uses. Neither option is preselected.
   -------------------------------------------------------------------------- */
.offer-card {
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: var(--space-3) 1.1rem var(--space-2);
  margin-bottom: var(--space-3);
}

.offer-badge {
  display: inline-block;
  margin: 0 0 var(--space-2);
  padding: 0.32rem 0.7rem;
  background: var(--green-tint);
  color: var(--green-dark);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Mobile-first: the photograph stacks above the offer, capped so it never
   pushes the wording off the first screen. */
.offer-body {
  display: grid;
  gap: var(--space-2);
}

.offer-media {
  display: flex;
  justify-content: center;
}

.offer-image {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.offer-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.offer-lede {
  margin: 0 0 var(--space-2);
  font-weight: 500;
  font-size: 0.98rem;
}

/* $50 -> $15 -> 70% off, on one baseline. It wraps rather than shrinking on
   narrow phones, so the discounted price never becomes the small figure. */
.offer-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.25rem;
}

.offer-was {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.offer-now {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
}

.offer-off {
  padding: 0.28rem 0.6rem;
  background: var(--green);
  color: var(--cream);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-save {
  margin: 0 0 var(--space-2);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-dark);
}

.offer-copy {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.offer-spec,
.offer-terms {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.offer-terms {
  margin-bottom: 0;
}

.offer-choice {
  margin-top: var(--space-3);
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
}

.offer-choice .choice-label {
  margin-top: 0;
}

/* Desktop: the photograph sits beside the offer rather than above it. The
   image column is fixed and modest so the wording keeps the width. */
@media (min-width: 620px) {
  .offer-card {
    padding: var(--space-3) var(--space-3) var(--space-2);
  }

  .offer-body {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: var(--space-3);
    align-items: start;
  }

  .offer-media {
    justify-content: flex-start;
  }

  .offer-image {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Business / delivery address (step 1)
   Same tokens, same field styling, same error styling as the rest of the
   form. The only new thing is the City / State / ZIP row.
   -------------------------------------------------------------------------- */

/* This is the first sub-heading inside step 1, so it would otherwise lose
   its rule; the address block reads better with one separating it from the
   contact fields above. */
.fstep .sub-heading.address-heading {
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
  margin-top: var(--space-3);
}

.address-intro {
  margin-bottom: var(--space-2);
  max-width: 46em;
}

/* Mobile: everything stacks, inherited from .form-grid's single column. */
.address-grid select,
.address-grid input[type="text"] {
  min-height: 48px;
}

.address-grid textarea {
  max-width: 100%;
  min-height: 84px;
}

@media (min-width: 640px) {
  /* A 12-column track so City / State / ZIP can share one readable row
     while the full-width fields still span everything. */
  .form-grid.address-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .address-grid .field-full {
    grid-column: 1 / -1;
  }

  .address-city {
    grid-column: span 5;
  }

  .address-state {
    grid-column: span 3;
  }

  .address-zip {
    grid-column: span 4;
  }
}

/* --------------------------------------------------------------------------
   Delivery address confirmation (payment step)
   Deliberately quieter than the order summary above it: same card, smaller
   type, no display font, no accent colour on the values.
   -------------------------------------------------------------------------- */
.address-summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) 1.1rem;
  margin-bottom: var(--space-3);
}

.address-summary[hidden] {
  display: none;
}

.address-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: 0.6rem;
}

.address-summary-head .summary-heading {
  margin: 0;
}

.address-line {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.address-line:last-child {
  margin-bottom: 0;
}

.address-instructions {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.address-instructions[hidden] {
  display: none;
}

.address-instructions-label {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.address-instructions-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  /* customer free text: wrap it, never let it widen the layout */
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.address-update-note {
  margin: 0.8rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Staff roster (step 7)
   -------------------------------------------------------------------------- */
.staff-note {
  margin: 0 0 var(--space-2);
}

/* "Your team": 1. job roles, 2. team members */
.team-part-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* each part's heading is the first h3 in its own wrapper, so restore the
   divider that .sub-heading:first-of-type removes for the second part */
.js .team-part + .team-part .team-part-title {
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
  margin-top: var(--space-3);
}

/* the numbers only mean something when the role builder is there */
.team-part-num {
  display: none;
}

.js .team-part-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--green);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
}

/* the role builder needs JS; without it each row types its own role */
.role-builder {
  display: none;
}

.js .role-builder {
  display: block;
}

.role-add {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.role-add .field {
  flex: 1 1 14rem;
}

.role-add .role-add-btn {
  flex: 0 0 auto;
  padding: 0.65rem 1.4rem;
}

.role-message {
  min-height: 1.2em;
  margin-top: 0.5rem;
  overflow-wrap: anywhere;
}

.role-message-error {
  color: var(--bad);
  font-weight: 600;
}

.role-list-label {
  margin: 0.6rem 0 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.role-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.role-list[hidden] {
  display: none;
}

.role-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}

.role-name {
  flex: 1 1 8rem;
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.role-count {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.role-edit-input {
  flex: 1 1 12rem;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
}

.role-edit-input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 1px;
}

.role-edit-input.field-invalid {
  border-color: var(--bad);
}

.role-action {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  min-height: 2.25rem;
  padding: 0.3rem 0.95rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.role-action:hover,
.role-action:focus-visible {
  color: var(--green);
  border-color: var(--green);
}

.role-action:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 1px;
}

.role-remove:hover {
  color: var(--bad);
  border-color: var(--bad);
}

.role-save {
  background: var(--green);
  border-color: var(--green);
  color: #FFFFFF;
}

.role-save:hover,
.role-save:focus-visible {
  background: var(--green-dark);
  color: #FFFFFF;
}

.role-empty {
  margin-top: 0.4rem;
}

.role-empty[hidden] {
  display: none;
}

.staff-list {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.staff-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
}

/* inputs sit on the tinted card, so they use the white surface */
.staff-card .field input,
.staff-card .field select {
  background: var(--surface);
}

.staff-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: 0.8rem;
}

.staff-card-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* remove + add need JS to work, so they only show with JS */
.staff-remove {
  display: none;
}

.js .staff-remove {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.85rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.js .staff-remove:hover {
  color: var(--bad);
  border-color: var(--bad);
}

.js .staff-remove[hidden] {
  display: none;
}

.staff-add {
  display: none;
}

.js .staff-add {
  display: block;
  width: 100%;
  border-style: dashed;
  margin-bottom: 0.6rem;
}

/* --------------------------------------------------------------------------
   Step navigation + fallback submit
   -------------------------------------------------------------------------- */
.step-nav {
  display: none;
}

.js .step-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.js .step-nav .btn[hidden] {
  display: none;
}

/* keep Continue/Submit on the right even when Back is hidden */
.js .step-nav #btn-next,
.js .step-nav #btn-submit {
  margin-left: auto;
}

.fallback-submit {
  margin-top: var(--space-3);
}

.js .fallback-submit {
  display: none;
}

.fallback-submit .btn,
.js .step-nav #btn-submit {
  width: 100%;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .opt-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-full {
    grid-column: 1 / -1;
  }

  .fallback-submit .btn,
  .js .step-nav #btn-submit {
    width: auto;
  }
}

/* gentle step entrance, motion-gated */
.anim .fstep.step-in {
  animation: step-in 0.28s ease;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Payment step (Stripe Embedded Checkout) + order completion
   Both sections are JS-only and sit outside the form. Stripe's own
   iframe renders the card fields inside .checkout-mount.
   -------------------------------------------------------------------------- */
.payment,
.order-complete {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
}

.payment[hidden],
.order-complete[hidden] {
  display: none;
}

.payment h2,
.order-complete h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}

.payment h2:focus,
.order-complete h2:focus {
  outline: none;
}

.payment-progress {
  margin-bottom: var(--space-3);
}

.progress-fill-full {
  width: 100%;
}

.saved-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 var(--space-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-tint);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
}

.saved-badge::before {
  content: "";
  width: 0.55em;
  height: 0.3em;
  margin-top: -0.2em;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.payment-lede {
  color: var(--ink-soft);
  max-width: 40em;
}

.order-summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) 1.1rem;
  margin-bottom: var(--space-2);
}

.summary-heading {
  border-top: none;
  padding-top: 0;
  margin: 0 0 0.8rem;
}

.summary-lines {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
}

.summary-line dt {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-weight: 500;
  font-size: 0.98rem;
}

.summary-line dd {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

/* the "due today" / "/ month" qualifier beside an amount. It sits inside the
   combined total line, so the body font and weight are set explicitly rather
   than inherited from the display-font total. */
.summary-term {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* The product + count line. It carries a quantity and never an amount, so it
   is deliberately quieter than the combined total underneath it. */
.summary-quantity dt,
.summary-quantity dd {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-soft);
}


/* The two lines that only exist once the Google Review Stand was accepted:
   the combined equipment charge and the add-on, sitting above the "Due today"
   total they add up to. Same weight as each other so neither reads as the
   headline figure — the total below still owns that. */
.summary-equipment[hidden],
.summary-addon[hidden],
.summary-delivery[hidden] {
  display: none;
}

.summary-addon dt,
.summary-delivery dt {
  gap: 0.1rem;
}

/* the quiet qualifier under the add-on's name — why it costs what it costs */
.summary-sub {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.summary-total {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
  margin-top: 0.2rem;
}

.summary-total dt,
.summary-total dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

/* The recurring half of the payment summary: what the platform costs and
   when its first charge lands. Separated from today's total by a rule so
   the two can never be read as one figure. */
.summary-recurring {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
}

.summary-then {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: right;
}

.billing-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 44em;
  margin-bottom: var(--space-3);
}

.checkout-shell {
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}

.checkout-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2rem;
  margin: 0 0 var(--space-2);
  font-weight: 600;
  color: var(--ink-soft);
}

.checkout-status[hidden] {
  display: none;
}

.checkout-status::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--green);
}

.anim .checkout-status::before {
  animation: checkout-spin 0.9s linear infinite;
}

@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}

.checkout-error {
  border-left: 3px solid var(--bad);
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1.1rem;
  margin-bottom: var(--space-2);
}

.checkout-error[hidden] {
  display: none;
}

.checkout-error p {
  font-weight: 600;
  color: var(--bad);
  margin: 0 0 0.8rem;
}

/* Stripe sizes its own iframe; the mount just needs the full width and
   must never clip it */
.checkout-mount {
  width: 100%;
  min-width: 0;
}

.checkout-secure {
  margin: var(--space-2) 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.order-complete {
  text-align: center;
}

.complete-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-2);
  border-radius: 50%;
  background: var(--green-tint);
  display: grid;
  place-items: center;
}

.complete-mark svg {
  width: 28px;
  height: 28px;
}

.order-complete p {
  color: var(--ink-soft);
  max-width: 36em;
  margin-inline: auto;
}

.order-complete .complete-strong {
  color: var(--ink);
  font-weight: 600;
}

.order-complete .intro-points {
  text-align: left;
  max-width: 34em;
  margin: var(--space-2) auto var(--space-3);
}

/* --------------------------------------------------------------------------
   Owner-quoted setups (/admin/quotes only)
   The owner price screen, the agreed-price banner inside the form, and the
   offer review. Same tokens and card shape as the welcome and payment
   sections; built for a phone first (one column, full-width buttons).
   -------------------------------------------------------------------------- */
.quote-admin,
.quote-offer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.25rem, 5vw, 2.25rem) clamp(1rem, 4vw, 2rem);
}

.quote-admin[hidden],
.quote-offer[hidden],
.qa-panel[hidden],
.qa-account[hidden],
.quote-banner[hidden],
.qo-actions[hidden],
.quote-offer .summary-line[hidden],
.quote-offer .summary-then[hidden] {
  display: none;
}

.quote-admin h1,
.quote-offer h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
}

.quote-admin h1:focus,
.quote-offer h2:focus {
  outline: none;
}

.qa-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem var(--space-2);
  margin-bottom: var(--space-2);
}

.qa-tag {
  display: inline-block;
  margin: 0 0 var(--space-1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-tint);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
}

.qa-bar .qa-tag {
  margin: 0;
}

.qa-account {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.qa-lede,
.qa-status {
  color: var(--ink-soft);
}

.qa-subhead {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.qa-wait {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.qa-form {
  display: grid;
  gap: var(--space-3);
}

.qa-money {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.qa-money input {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.35rem !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.qa-wide {
  display: block;
  width: 100%;
  margin-top: var(--space-1);
}

.btn-link {
  background: none;
  border: 0;
  padding: 0.35rem 0.1rem;
  font: inherit;
  font-weight: 600;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--green-dark);
}

.quote-banner {
  background: var(--green-tint);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 0 0 var(--space-3);
}

.quote-banner p {
  margin: 0;
}

.quote-banner-title {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.quote-banner-terms {
  font-size: 1.1rem;
  margin: 0.25rem 0 !important;
}

.quote-banner-sep {
  color: var(--ink-soft);
  margin: 0 0.25rem;
}

.quote-banner-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.quote-banner-locked {
  margin: 0.35rem 0;
}

.quote-banner-locked[hidden],
.locked-package[hidden] {
  display: none;
}

.quote-banner-package {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Customer quote link with a locked package: the product, quantity and
   Google Review Stand choices stay in the form (they are submitted) but are
   never shown — the read-only .locked-package summary replaces them. */
.package-locked .pkg-choice {
  display: none !important;
}

.locked-package {
  background: var(--green-tint);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 0 0 var(--space-3);
}

.locked-package p {
  margin: 0;
}

.locked-package-title {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.locked-package-line {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.25rem 0 !important;
}

#qa-review-url-field[hidden],
#ql-review-url-line[hidden],
.locked-package-url[hidden] {
  display: none;
}

/* The owner already supplied the Google review link with a locked package:
   the customer's own review-link question is never shown (its field still
   carries the owner's value, and the intake forwards the owner's value). */
.review-url-locked #grs-link-field {
  display: none !important;
}

.locked-package-url {
  font-size: 0.9rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.ql-package {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.ql-package-units {
  margin: 0 0 var(--space-2);
  color: var(--ink-soft);
}

/* Business names and emails can be long on a phone; let them wrap. */
.quote-offer .summary-line dd {
  white-space: normal;
  overflow-wrap: anywhere;
}

.qo-actions {
  display: grid;
  gap: 0.25rem;
  margin-top: var(--space-2);
}

.qo-replace {
  justify-self: center;
  margin-top: var(--space-1);
  font-size: 0.92rem;
}

@media (min-width: 640px) {
  .qa-wide {
    width: auto;
    display: inline-block;
    min-width: 16rem;
  }

  .qo-actions {
    justify-items: start;
  }

  .qo-replace {
    justify-self: start;
  }
}

/* Restored accepted order (refresh / dropped connection) */
.qo-resume {
  background: var(--green-tint);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 0 0 var(--space-2);
}

.qo-resume[hidden],
.qo-resume-files[hidden] {
  display: none;
}

.qo-resume p {
  margin: 0 0 0.4rem;
}

.qo-resume-title {
  font-weight: 700;
  color: var(--green-dark);
}

.qo-resume-files {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
  font-weight: 600;
}

/* Anything inside the owner/offer screens that is marked hidden stays hidden,
   even when a utility class such as .qa-wide sets a display value. */
.quote-admin [hidden],
.quote-offer [hidden] {
  display: none !important;
}

/* Customer Landing Experience (setup step 5) */
#hub-setup:not([hidden]) ~ .sub-heading {
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
  margin-top: var(--space-3);
}

.entry-mode-row {
  grid-template-columns: 1fr;
}

.entry-mode-card {
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  padding: 1rem 2.4rem 1rem 1rem;
}

.entry-mode-card input {
  left: auto;
  right: 0.8rem;
}

.entry-mode-card .choice-name {
  display: block;
  font-size: 1.02rem;
}

.entry-mode-card .choice-desc {
  display: block;
  font-size: 0.86rem;
  margin-top: 0.2rem;
}

.entry-mode-visual {
  flex: none;
  display: grid;
  place-items: center;
}

.entry-phone {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 50px;
  height: 84px;
  padding: 7px 6px;
  background: #fff;
  border: 2px solid var(--ink-soft);
  border-radius: 10px;
}

.entry-line {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}

.entry-line-title {
  background: var(--ink-soft);
}

.entry-line-short {
  width: 60%;
}

.entry-solid {
  margin-top: auto;
  height: 10px;
  border-radius: 3px;
  background: var(--green);
}

.entry-solid-tall {
  margin-top: 0;
  height: 16px;
}

.entry-dot {
  align-self: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink-soft);
}

.entry-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: auto;
}

.entry-tiles span {
  height: 10px;
  border-radius: 3px;
  background: var(--line);
}

#hub-link-fields {
  margin-bottom: var(--space-3);
}

.hub-links-hint {
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.hub-social-list {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.hub-social-list:empty {
  display: none;
}

.hub-social-row {
  display: grid;
  gap: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.hub-social-row .role-remove {
  justify-self: end;
  min-height: 44px;
}

.hub-game-opt {
  align-items: flex-start;
  min-height: 44px;
}

.hub-game-opt input {
  margin-top: 0.15rem;
}

.hub-game-name,
.hub-game-desc {
  display: block;
}

.hub-game-desc {
  font-weight: 400;
  font-size: 0.88rem;
}

.hub-social-add {
  min-height: 44px;
  padding: 0.65rem 1.4rem;
}

.hub-social-add[hidden] {
  display: none;
}

.hub-social-message {
  min-height: 1.2em;
  margin: 0.5rem 0 0.75rem;
}

#hub-link-fields input[type="url"],
#hub-link-fields input[type="text"],
#hub-link-fields input[type="search"] {
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  width: 100%;
}

#hub-link-fields input[type="url"].field-invalid,
#hub-link-fields input[type="text"].field-invalid {
  border-color: var(--bad);
}

#hub-link-fields input[type="url"]:focus-visible,
#hub-link-fields input[type="text"]:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

@media (min-width: 640px) {
  .hub-social-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto;
    align-items: end;
  }

  .entry-mode-row {
    grid-template-columns: 1fr 1fr;
  }

  .entry-mode-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.1rem 1.1rem;
  }
}

/* Link icons (Customer Hub rows) */
.hub-icon-control {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.hub-icon-preview {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green-dark);
  overflow: hidden;
}

.hub-icon-preview img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.hub-icon-svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-icon-svg.hub-icon-solid {
  fill: currentColor;
  stroke: none;
}

.hub-icon-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.hub-icon-actions,
.hub-icon-error,
.hub-icon-panel {
  grid-column: 1 / -1;
}

.hub-icon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hub-icon-actions [hidden] {
  display: none;
}

.hub-icon-btn {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.hub-icon-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.hub-icon-btn[aria-expanded="true"] {
  border-color: var(--green);
  background: var(--green-tint);
  color: var(--green-dark);
}

.hub-icon-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hub-icon-error {
  margin: 0;
  color: var(--bad);
  font-size: 0.92rem;
}

.hub-icon-panel {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.hub-icon-panel[hidden] {
  display: none;
}

.hub-icon-panel label {
  font-weight: 600;
}

.hub-icon-search {
  width: 100%;
  min-height: 44px;
}

.hub-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.4rem;
  max-height: 260px;
  overflow-y: auto;
}

.hub-icon-choice {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  min-height: 64px;
  padding: 0.5rem 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.hub-icon-choice[hidden] {
  display: none;
}

.hub-icon-choice:hover,
.hub-icon-choice[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green-tint);
  color: var(--green-dark);
}

.hub-icon-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hub-icon-uploads {
  display: none;
}

/* --------------------------------------------------------------------------
   Save and resume on this device
   -------------------------------------------------------------------------- */
.js .draft-resume[hidden],
.draft-notice[hidden],
.draft-status[hidden],
.draft-file-preview[hidden] {
  display: none;
}

.draft-resume h1:focus {
  outline: none;
}

.draft-resume-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-2);
  margin: var(--space-3) 0 var(--space-2);
}

.draft-resume-actions .btn {
  min-height: 48px;
}

.draft-resume-warning {
  max-width: 34em;
  margin: var(--space-2) auto 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--bad);
  background: #FBEDEA;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-align: left;
  font-weight: 600;
}

.draft-resume-note {
  max-width: 34em;
  margin: 0 auto;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.draft-notice {
  margin: 0 0 var(--space-3);
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--green);
  background: var(--green-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
}

.draft-notice.draft-notice-warn {
  border-left-color: var(--bad);
  background: #FBEDEA;
}

.draft-notice p,
.draft-notice ul {
  margin: 0;
}

.draft-notice ul {
  margin-top: 0.4rem;
  padding-left: 1.2rem;
  font-weight: 600;
}

.draft-status {
  margin: var(--space-2) 0 0;
  font-size: 0.88rem;
  color: var(--green-dark);
  overflow-wrap: anywhere;
}

.draft-status::before {
  content: "\2713\00a0";
}

.draft-status.draft-status-warn {
  color: var(--bad);
  font-weight: 600;
}

.draft-status.draft-status-warn::before {
  content: none;
}

.draft-file-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  min-width: 0;
}

.draft-file-preview img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.draft-file-name {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
  min-width: 0;
}
