/* ============================================================
   isGBP4me Quiz Form
   Premium dark-mode diagnostic feel. Brand yellow #FEE700.
   ============================================================ */

:root {
  --bg: #0A0A0F;
  --bg-soft: #0E0E14;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-active: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #F5F5F2;
  --text-dim: rgba(245, 245, 242, 0.65);
  --text-faint: rgba(245, 245, 242, 0.42);
  --yellow: #FEE700;
  --yellow-dim: #F5C518;
  --yellow-glow: rgba(254, 231, 0, 0.18);
  --green: #5DD39E;
  --red: #FF6B6B;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 18px 40px -24px rgba(0,0,0,0.6);
  --shadow-active: 0 0 0 1px rgba(254, 231, 0, 0.35), 0 0 60px -20px rgba(254, 231, 0, 0.45), 0 24px 60px -24px rgba(0,0,0,0.7);
  --tap: 60px;
  --maxw: 640px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 700px at 50% -200px, rgba(254, 231, 0, 0.05), transparent 60%),
    radial-gradient(800px 600px at 100% 100%, rgba(254, 231, 0, 0.025), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ─── Anton heading utility ────────────────────────────── */
.font-anton {
  font-family: 'Anton', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ─── App shell ────────────────────────────────────────── */
.app { width: 100%; min-height: 100vh; }

/* ─── Progress bar ─────────────────────────────────────── */
.progress-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.progress-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.progress-brand { display: flex; align-items: center; gap: 10px; }
.progress-logo { width: 38px; height: 38px; object-fit: contain; }
.progress-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.progress-brand-name { font-family: 'Anton', sans-serif; font-size: 18px; letter-spacing: 0.02em; text-transform: uppercase; }
.progress-brand-sub { font-size: 11px; color: var(--text-faint); letter-spacing: 0.06em; text-transform: uppercase; }

.progress-meta { display: flex; align-items: center; gap: 12px; }
.progress-count { display: flex; align-items: baseline; gap: 6px; font-family: 'Anton', sans-serif; }
.progress-count-cur { color: var(--yellow); font-size: 22px; }
.progress-count-of { color: var(--text-faint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

.progress-track {
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow-dim), var(--yellow));
  box-shadow: 0 0 12px rgba(254, 231, 0, 0.5);
  transition: width 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Form layout ──────────────────────────────────────── */
.form-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.form-intro { padding: 28px 0 36px; }
.intro-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.intro-heading {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 9vw, 60px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.intro-heading em {
  font-style: normal;
  color: var(--yellow);
  position: relative;
}
.intro-body {
  font-size: 17px;
  color: var(--text-dim);
  margin: 0 0 22px;
  max-width: 38ch;
  text-wrap: pretty;
}
.intro-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--text-faint);
}
.intro-meta-item { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--yellow); display: inline-block; }

/* ─── Section divider ──────────────────────────────────── */
.section-divider {
  display: flex; align-items: center; gap: 14px;
  padding: 28px 4px 14px;
  transition: opacity 320ms ease;
}
.section-divider.is-dim { opacity: 0.4; }
.section-label {
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--yellow) 36px, var(--border) 36px, var(--border) 100%);
}

/* ─── Question shell ───────────────────────────────────── */
.qshell {
  position: relative;
  margin: 14px 0;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 380ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.qshell-inner { padding: 24px 22px; }

.qshell-locked { opacity: 0.30; pointer-events: none; }
.qshell-locked .qshell-inner { padding-bottom: 22px; }

.qshell-active {
  background: var(--bg-card-active);
  border-color: rgba(254, 231, 0, 0.35);
  box-shadow: var(--shadow-active);
  animation: qshellIn 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.qshell-active::before {
  content: "";
  position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 2px;
  background: var(--yellow);
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(254, 231, 0, 0.6);
}

@keyframes qshellIn {
  from { transform: translateY(8px); opacity: 0.6; }
  to   { transform: translateY(0); opacity: 1; }
}

.qshell-complete { cursor: pointer; }
.qshell-complete:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.05); }
.qshell-complete .qshell-inner { padding: 16px 22px; }

/* Special card variant (quick check) */
.qshell-special.qshell-active {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(254, 231, 0, 0.08), transparent 60%),
    var(--bg-card-active);
  border-color: rgba(254, 231, 0, 0.45);
}

/* ─── Question header ──────────────────────────────────── */
.qhead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px 16px;
  align-items: start;
  margin-bottom: 18px;
}
.qhead-num {
  font-family: 'Anton', sans-serif;
  display: flex; flex-direction: column; align-items: flex-start;
  line-height: 1;
  padding-top: 4px;
  min-width: 44px;
}
.qhead-num-text { font-size: 26px; color: var(--yellow); }
.qshell-locked .qhead-num-text { color: var(--text-faint); }
.qshell-complete .qhead-num-text { color: var(--text-faint); font-size: 22px; }
.qhead-num-of { font-size: 10px; color: var(--text-faint); letter-spacing: 0.1em; margin-top: 4px; }

.qhead-titles { min-width: 0; }
.qtitle {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.qshell-complete .qtitle { font-size: 14px; color: var(--text-dim); font-weight: 500; margin: 0; }
.qsub {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}
.qhead-status { padding-top: 6px; }
.qhead-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(93, 211, 158, 0.12);
  color: var(--green);
  border: 1px solid rgba(93, 211, 158, 0.3);
}

/* ─── Locked preview body ──────────────────────────────── */
.qbody-locked { display: flex; flex-direction: column; gap: 8px; padding-left: 60px; padding-top: 4px; }
.locked-bar { height: 38px; border-radius: 10px; background: rgba(255,255,255,0.04); }
.locked-bar-short { width: 70%; }

/* ─── Completed summary ────────────────────────────────── */
.qsummary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 0 0 0 60px;
  font-size: 14px;
  color: var(--text);
}
.qsummary > span:first-child { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qsummary-quickcheck { padding-left: 0; align-items: center; }
.qsummary-quickcheck > span:first-of-type { flex: 0 0 auto; }
.sum-emoji { display: inline-block; }
.qsummary-edit {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.qshell-complete:hover .qsummary-edit { color: var(--yellow); border-color: rgba(254,231,0,0.4); }

/* ─── Body wrap (active state) ─────────────────────────── */
.qbody { padding-left: 60px; }
@media (max-width: 520px) {
  .qhead { grid-template-columns: auto 1fr auto; gap: 10px 12px; }
  .qhead-num { min-width: 36px; }
  .qhead-num-text { font-size: 22px; }
  .qbody, .qsummary, .qbody-locked { padding-left: 0; padding-top: 8px; }
  .qtitle { font-size: 19px; }
  .qshell-inner { padding: 22px 18px; }
}

/* ─── Text input ───────────────────────────────────────── */
.text-input {
  width: 100%;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 17px;
  letter-spacing: -0.005em;
  transition: border-color 200ms, box-shadow 200ms, background 200ms;
  outline: none;
}
.text-input::placeholder { color: var(--text-faint); }
.text-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(254, 231, 0, 0.12);
  background: rgba(0,0,0,0.35);
}
.q-text { display: flex; flex-direction: column; gap: 14px; }

.skip-btn {
  align-self: flex-start;
  background: transparent; border: none;
  color: var(--text-faint);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 6px 0;
}
.skip-btn:hover { color: var(--yellow); }

/* ─── Continue button ──────────────────────────────────── */
.continue-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--yellow);
  color: #0A0A0F;
  border: none;
  font-family: 'Anton', sans-serif;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 160ms ease, background 200ms, box-shadow 200ms;
  box-shadow: 0 12px 30px -12px rgba(254, 231, 0, 0.5);
}
.continue-btn:hover { background: var(--yellow-dim); transform: translateY(-1px); }
.continue-btn:active { transform: translateY(0); }
.continue-btn.is-disabled, .continue-btn:disabled {
  background: rgba(255,255,255,0.06);
  color: var(--text-faint);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.continue-arrow { font-size: 18px; }

/* ─── Choice cards ─────────────────────────────────────── */
.q-cards { display: flex; flex-direction: column; gap: 10px; }
.choice-card {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: var(--tap);
  padding: 14px 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-align: left;
  font-size: 16px;
  letter-spacing: -0.005em;
  transition: all 200ms ease;
}
.choice-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.choice-card.is-selected {
  background: rgba(254, 231, 0, 0.08);
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow), 0 0 30px -10px var(--yellow-glow);
  animation: choicePulse 380ms ease;
}
@keyframes choicePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.012); background: rgba(254, 231, 0, 0.16); }
  100% { transform: scale(1); }
}

.choice-emoji { font-size: 22px; line-height: 1; }
.choice-label { line-height: 1.35; text-wrap: pretty; }

.choice-radio, .choice-checkbox {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: #0A0A0F;
}
.choice-checkbox { border-radius: 6px; }
.choice-card.is-selected .choice-radio,
.choice-checkbox.is-on {
  background: var(--yellow);
  border-color: var(--yellow);
}

/* ─── Stepper ──────────────────────────────────────────── */
.q-stepper { display: flex; flex-direction: column; gap: 18px; }
.stepper-row {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 16px;
  padding: 18px 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.stepper-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 26px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 200ms ease;
}
.stepper-btn:hover:not(:disabled) {
  background: rgba(254, 231, 0, 0.12);
  border-color: var(--yellow);
  color: var(--yellow);
}
.stepper-btn:active { transform: scale(0.94); }
.stepper-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.stepper-number-wrap {
  display: flex; flex-direction: column; align-items: center;
  line-height: 1;
}
.stepper-number {
  font-family: 'Anton', sans-serif;
  font-size: 76px;
  color: var(--yellow);
  letter-spacing: -0.01em;
  animation: stepperBump 320ms cubic-bezier(0.22, 1.4, 0.36, 1);
  text-shadow: 0 0 30px rgba(254, 231, 0, 0.25);
}
@keyframes stepperBump {
  0% { transform: scale(0.85); opacity: 0.5; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.stepper-unit {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.stepper-caption {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
  min-height: 22px;
  text-wrap: pretty;
}

/* ─── Location ─────────────────────────────────────────── */
.q-location { display: flex; flex-direction: column; gap: 14px; }
.loc-label { display: flex; flex-direction: column; gap: 6px; }
.loc-label-text {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ─── Quick check card ─────────────────────────────────── */
.q-quickcheck { display: flex; flex-direction: column; gap: 18px; }
.qc-header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.qc-bolt {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(254, 231, 0, 0.14);
  border: 1px solid rgba(254, 231, 0, 0.4);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 24px -8px rgba(254, 231, 0, 0.5);
}
.qc-title {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}
.qc-sub { font-size: 12px; color: var(--text-faint); margin: 2px 0 0; letter-spacing: 0.04em; }

.qc-rows { display: flex; flex-direction: column; gap: 8px; }
.qc-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms ease, transform 320ms ease, border-color 200ms;
}
.qc-row.is-visible { opacity: 1; transform: translateY(0); }
.qc-row.is-answered { border-color: rgba(93, 211, 158, 0.25); background: rgba(93, 211, 158, 0.04); }
.qc-row-num {
  font-family: 'Anton', sans-serif;
  font-size: 14px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.qc-row-label { font-size: 14px; line-height: 1.35; text-wrap: pretty; }
.qc-row-buttons { display: inline-flex; gap: 6px; }
.qc-pill {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: all 180ms ease;
}
.qc-pill:hover { color: var(--text); border-color: var(--yellow); }
.qc-pill.is-selected { color: #0A0A0F; }
.qc-pill.qc-pill-yes { background: var(--green); border-color: var(--green); color: #0A0A0F; }
.qc-pill.qc-pill-no { background: var(--red); border-color: var(--red); color: #0A0A0F; }
.qc-pill.qc-pill-ns { background: var(--text-dim); border-color: var(--text-dim); color: #0A0A0F; }

@media (max-width: 480px) {
  .qc-row { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .qc-row-num { display: none; }
  .qc-row-buttons { justify-content: stretch; }
  .qc-pill { flex: 1; justify-content: center; min-height: 44px; }
}

.qc-locked-preview {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0 0; border-top: 1px solid var(--border);
}

/* ─── Trade dropdown ───────────────────────────────────── */
.q-trade { position: relative; }
.trade-trigger {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  min-height: var(--tap);
  padding: 0 18px;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  font-size: 16px;
  text-align: left;
  transition: all 200ms ease;
}
.trade-trigger:hover { border-color: var(--yellow); }
.trade-trigger.has-value { color: var(--text); }
.trade-trigger-emoji { font-size: 22px; }
.trade-trigger-label { flex: 1; }
.trade-trigger-edit {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
}
.trade-trigger-search { font-size: 16px; opacity: 0.6; }
.trade-trigger-placeholder { flex: 1; }
.trade-trigger-chev { font-size: 14px; }

.trade-popover {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.7);
  animation: tradeIn 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes tradeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.trade-search-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.trade-search-icon { font-size: 14px; opacity: 0.6; }
.trade-search {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  outline: none;
  min-height: 44px;
}
.trade-close {
  background: transparent; border: none; color: var(--text-faint);
  font-size: 24px; line-height: 1; padding: 0 6px;
}
.trade-close:hover { color: var(--text); }
.trade-list {
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.trade-list::-webkit-scrollbar { width: 6px; }
.trade-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.trade-cat { padding: 6px 0; }
.trade-cat-head {
  font-family: 'Anton', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 8px 16px 6px;
}
.trade-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  text-align: left;
  transition: background 160ms ease;
}
.trade-item:hover, .trade-item:focus-visible {
  background: rgba(254, 231, 0, 0.08);
  outline: none;
}
.trade-item-emoji { font-size: 20px; width: 24px; text-align: center; }
.trade-empty { padding: 22px 16px; color: var(--text-faint); font-size: 14px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.trade-empty p { margin: 0; }
.trade-other-cta {
  background: rgba(254, 231, 0, 0.1);
  border: 1px solid rgba(254, 231, 0, 0.4);
  color: var(--yellow);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: all 180ms ease;
}
.trade-other-cta:hover { background: rgba(254, 231, 0, 0.18); }

.trade-other {
  display: flex;
  flex-direction: column;
  --other-head-py: 18px;
  --other-head-px: 20px;
  --other-head-gap: 14px;
  --other-body-py: 22px;
  --other-body-px: 20px;
  --other-body-gap: 18px;
  --other-input-h: 56px;
  --other-input-fs: 16px;
  --other-title-fs: 16px;
  --other-sub-fs: 13px;
}
.trade-other-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--other-head-gap);
  align-items: center;
  padding: var(--other-head-py) var(--other-head-px);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.trade-other-back {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trade-other-back:hover { background: rgba(254, 231, 0, 0.12); border-color: var(--yellow); color: var(--yellow); }
.trade-other-title { font-family: 'Anton', sans-serif; font-size: var(--other-title-fs); letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.15; }
.trade-other-sub { font-size: var(--other-sub-fs); color: var(--text-faint); margin-top: 4px; line-height: 1.4; }
.trade-other-body {
  padding: var(--other-body-py) var(--other-body-px);
  display: flex; flex-direction: column; gap: var(--other-body-gap);
}
.trade-other-body .text-input {
  min-height: var(--other-input-h);
  font-size: var(--other-input-fs);
  padding: 0 18px;
}
.trade-other-body.is-hide-sub ~ * .trade-other-sub,
.trade-other.is-hide-sub .trade-other-sub { display: none; }

/* ─── Submit ───────────────────────────────────────────── */
.submit-wrap { padding: 36px 0 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.submit-btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 64px;
  padding: 0 28px;
  border-radius: 999px;
  border: none;
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 220ms ease;
}
.submit-btn.is-locked {
  background: rgba(255,255,255,0.06);
  color: var(--text-faint);
  cursor: not-allowed;
  font-size: 14px;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
}
.submit-btn.is-ready {
  background: var(--yellow);
  color: #0A0A0F;
  box-shadow: 0 18px 40px -12px rgba(254, 231, 0, 0.55);
  animation: submitPulse 2.4s ease-in-out infinite;
}
.submit-btn.is-ready:hover { background: var(--yellow-dim); transform: translateY(-2px); }
@keyframes submitPulse {
  0%, 100% { box-shadow: 0 18px 40px -12px rgba(254, 231, 0, 0.55), 0 0 0 0 rgba(254, 231, 0, 0.0); }
  50%      { box-shadow: 0 18px 40px -12px rgba(254, 231, 0, 0.55), 0 0 0 14px rgba(254, 231, 0, 0.0); }
}
.submit-foot { font-size: 13px; color: var(--text-faint); margin: 0; }
.submit-error {
  font-size: 14px;
  color: #ff6b6b;
  margin: 0 0 10px 0;
  padding: 12px 16px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: 12px;
  text-align: center;
}

/* ─── Footer ───────────────────────────────────────────── */
.form-footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.footer-logo { width: 160px; height: auto; opacity: 0.9; }
.footer-text { font-size: 12px; color: var(--text-faint); text-align: center; max-width: 36ch; margin: 0; }

/* ─── Confirmation ─────────────────────────────────────── */
.confirm {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(900px 600px at 50% 20%, rgba(254, 231, 0, 0.08), transparent 60%),
    var(--bg);
  opacity: 0; transform: translateY(8px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.confirm.is-shown { opacity: 1; transform: translateY(0); }
.confirm-inner { max-width: 540px; width: 100%; text-align: left; }
.confirm-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(93, 211, 158, 0.1);
  border: 1px solid rgba(93, 211, 158, 0.3);
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.confirm-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(93, 211, 158, 0.6);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(93, 211, 158, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(93, 211, 158, 0); }
}
.confirm-heading {
  font-family: 'Anton', sans-serif;
  font-size: clamp(56px, 14vw, 96px);
  line-height: 0.92;
  margin: 0 0 22px;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.confirm-body {
  font-size: 18px;
  color: var(--text-dim);
  margin: 0 0 32px;
  text-wrap: pretty;
  max-width: 42ch;
}
.confirm-stack { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-bottom: 32px; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--yellow);
  color: #0A0A0F;
  border: none;
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px -12px rgba(254, 231, 0, 0.55);
  transition: all 200ms ease;
}
.wa-btn:hover { background: var(--yellow-dim); transform: translateY(-1px); }
.confirm-secondary {
  background: transparent; border: none;
  color: var(--text-faint);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 0;
}
.confirm-secondary:hover { color: var(--text); }

.confirm-ref {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
}
.confirm-ref-label { color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.confirm-ref-code { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--yellow); letter-spacing: 0.12em; }

.confirm-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--text-faint);
}
.confirm-meta .dot { background: var(--text-faint); }

/* ─── Tiny screens ─────────────────────────────────────── */
@media (max-width: 380px) {
  .form-main { padding: 20px 14px 60px; }
  .qshell-inner { padding: 20px 14px; }
  .qbody, .qsummary, .qbody-locked { padding-left: 0; }
  .qhead { grid-template-columns: 1fr auto; }
  .qhead-num { display: none; }
}

/* === Star rating: ONLY apply wider emoji column for the star rating question.
   The previous global rule was eating space on every multi-select card on mobile. */
[data-question="star_rating"] .choice-card .choice-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 60px;
  letter-spacing: -1px;
  white-space: nowrap;
  overflow: visible;
}

/* === WhatsApp-styled phone input === */
.whatsapp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(37, 211, 102, 0.06);
  border: 1px solid rgba(37, 211, 102, 0.30);
  border-radius: 12px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.whatsapp-input-wrap:focus-within {
  border-color: rgba(37, 211, 102, 0.65);
  background: rgba(37, 211, 102, 0.10);
}
.whatsapp-icon {
  display: flex;
  align-items: center;
  margin-right: 10px;
  flex-shrink: 0;
}
.whatsapp-input {
  background: transparent !important;
  border: none !important;
  padding: 14px 12px 14px 0 !important;
  flex: 1;
  min-width: 0;
}
.whatsapp-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Star rating row alignment fix - prevent emoji overflow */
.q-single .opt-emoji {
  flex-shrink: 0;
  margin-right: 12px;
}

/* === WhatsApp-styled phone input === */
.q-whatsapp .whatsapp-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(37, 211, 102, 0.08);
  border: 1.5px solid rgba(37, 211, 102, 0.35);
  border-radius: 14px;
  padding: 4px 16px 4px 14px;
  transition: border-color 0.2s, background 0.2s;
}
.q-whatsapp .whatsapp-input-wrap:focus-within {
  border-color: rgba(37, 211, 102, 0.7);
  background: rgba(37, 211, 102, 0.12);
}
.q-whatsapp .whatsapp-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.q-whatsapp .whatsapp-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 0;
  font-size: 17px;
  color: #fff;
  font-family: inherit;
}
.q-whatsapp .whatsapp-input::placeholder {
  color: rgba(255,255,255,0.35);
}
.q-whatsapp .whatsapp-helper {
  margin: 10px 2px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* === Mobile polish: tighter cards on small screens === */
@media (max-width: 520px) {
  .choice-card {
    grid-template-columns: 32px 1fr 22px;
    gap: 12px;
    padding: 13px 14px;
    font-size: 15px;
  }
  .choice-emoji { font-size: 20px; }
}

@media (max-width: 380px) {
  .choice-card {
    grid-template-columns: 28px 1fr 20px;
    gap: 10px;
    padding: 12px 12px;
    font-size: 14.5px;
  }
}

/* Don't squash the star rating emoji column on mobile, but keep it reasonable */
@media (max-width: 520px) {
  [data-question="star_rating"] .choice-card {
    grid-template-columns: 50px 1fr 22px;
  }
  [data-question="star_rating"] .choice-card .choice-emoji {
    min-width: 50px;
  }
}

/* WhatsApp input wrap doesn't need so much padding on mobile */
@media (max-width: 520px) {
  .whatsapp-input-wrap { padding: 4px 4px 4px 10px; }
  .whatsapp-icon { margin-right: 8px; }
  .whatsapp-icon svg { width: 20px; height: 20px; }
}

/* === Mobile polish pass v2 ============================================
   Tightens cards, fixes emoji column width, reduces unnecessary text wrap,
   and improves continue button visibility on smaller screens.
======================================================================= */

/* Tighten the emoji column on very narrow screens so labels can breathe.
   The original 28-32px column wastes horizontal space on short labels. */
@media (max-width: 480px) {
  .choice-card {
    grid-template-columns: auto 1fr 22px;
    gap: 12px;
    padding: 13px 14px;
    font-size: 15px;
  }
  .choice-emoji {
    font-size: 22px;
    min-width: 24px;
    line-height: 1;
  }
  .choice-label {
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: break-word;
  }
}

@media (max-width: 380px) {
  .choice-card {
    gap: 10px;
    padding: 12px 12px;
    font-size: 14.5px;
  }
  .choice-emoji { font-size: 20px; min-width: 22px; }
}

/* Continue button on mobile: full width, more visible, tighter top margin */
@media (max-width: 520px) {
  .continue-btn {
    width: 100%;
    margin-top: 14px;
    padding: 14px 18px;
  }
}

/* Multi-select card pulse should not push width */
.choice-card.is-selected {
  animation: choicePulse 380ms ease;
  transform-origin: center;
}

/* Reduce padding inside cards on very narrow screens to stop emojis pushing
   short labels into too many lines */
@media (max-width: 380px) {
  .qshell-inner { padding: 18px 12px; }
  .form-main { padding: 18px 12px 60px; }
}

/* Quick-check (website check) card on mobile - tighten the row layout */
@media (max-width: 480px) {
  .qc-row {
    grid-template-columns: 24px 1fr auto;
    gap: 10px;
  }
  .qc-row-q { font-size: 14px; }
  .qc-pill {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 0;
  }
}

/* Stepper feels cramped on small phones - reduce big number size slightly */
@media (max-width: 380px) {
  .stepper-num { font-size: 56px; }
  .stepper-btn { width: 52px; height: 52px; }
}

/* Confirmation screen - center copy and reduce hero size on narrow */
@media (max-width: 480px) {
  .confirm-heading { font-size: 56px; line-height: 0.95; }
  .confirm-body { font-size: 15px; line-height: 1.5; }
}

/* Multi-select label - prevent overly long words breaking layout */
.choice-label {
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* === WhatsApp pitch panel (above the input) === */
.whatsapp-pitch {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(37, 211, 102, 0.06);
  border: 1px solid rgba(37, 211, 102, 0.20);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.whatsapp-pitch-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-pitch-body {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.whatsapp-pitch-body strong {
  color: #fff;
  display: inline;
  font-weight: 600;
}

/* === Trust block on confirmation screen === */
.trust-block {
  margin-top: 36px;
  width: 100%;
  max-width: 520px;
}
.trust-heading {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
  text-align: center;
}
.trust-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.trust-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
}
.trust-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.trust-card-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.trust-card-stars {
  font-size: 16px;
  color: #FEE700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.trust-card-stat {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}
.trust-quote {
  margin: 0;
  padding: 14px 16px;
  background: rgba(254, 231, 0, 0.04);
  border-left: 2px solid rgba(254, 231, 0, 0.5);
  border-radius: 4px 12px 12px 4px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}
.trust-quote cite {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-style: normal;
  letter-spacing: 0.02em;
}
.confirm-ref-tiny {
  margin-top: 32px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 520px) {
  .trust-cards {
    grid-template-columns: 1fr;
  }
}

/* === Email modal (post-submit, presumptive close) === */
.email-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px 20px;
  animation: emailModalFade 240ms ease;
}
@keyframes emailModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.email-modal {
  background: #14141A;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 36px 28px 24px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(254, 231, 0, 0.06);
  animation: emailModalRise 320ms cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes emailModalRise {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.email-modal-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}
.email-modal-title {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 12px;
  color: #fff;
}
.email-modal-body {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 20px;
}
.email-modal-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 160ms ease, background 160ms ease;
}
.email-modal-input:focus {
  outline: none;
  border-color: rgba(254, 231, 0, 0.5);
  background: rgba(254, 231, 0, 0.04);
}
.email-modal-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.email-modal-error {
  font-size: 13px;
  color: #ff8a8a;
  margin: 12px 0 0;
}
.email-modal-send {
  margin-top: 16px;
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  border: none;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 200ms ease;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
}
.email-modal-send.is-ready {
  background: #FEE700;
  color: #0A0A0F;
  box-shadow: 0 0 30px rgba(254, 231, 0, 0.25);
}
.email-modal-send.is-ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(254, 231, 0, 0.4);
}
.email-modal-send.is-locked {
  cursor: not-allowed;
}
.email-modal-skip {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 3px;
  transition: color 160ms ease;
}
.email-modal-skip:hover {
  color: rgba(255, 255, 255, 0.7);
}
.email-modal-skip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .email-modal {
    padding: 28px 20px 20px;
    border-radius: 16px;
  }
  .email-modal-title {
    font-size: 26px;
  }
}

/* Trust cards as clickable links */
.trust-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.trust-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}
/* Half-filled star for Trustpilot 4.4 rating */
.trust-card-stars .star-half {
  color: rgba(254, 231, 0, 0.4);
}

/* === Star row with fractional fill (used for trust cards) === */
.trust-card-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 4px;
  line-height: 1;
}
.star-wrap {
  position: relative;
  display: inline-block;
  line-height: 1;
}
.star-bg {
  color: rgba(255, 255, 255, 0.15);
}
.star-fg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #FEE700;
}

/* === Review wall === */
.review-wall {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-card-stars {
  font-size: 13px;
  color: #FEE700;
  letter-spacing: 1px;
  line-height: 1;
}
.review-card-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
}
.review-card-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: auto;
}
.review-card-name {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}
.review-card-dot {
  opacity: 0.4;
}

@media (max-width: 520px) {
  .review-wall {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .review-card {
    padding: 12px 14px;
  }
  .review-card-text {
    font-size: 13px;
  }
}
