/* Thurso Surf board quiz widget — styled with the store's own design tokens
   (research/thurso-brand-tokens.json). DM Sans body, Barlow Condensed
   headings, gold primary buttons, warm-white ground. */

.tq-root {
  --tq-gold: #DCA075;
  --tq-gold-light: #F7ECE3;
  --tq-gold-50: #FDF8F4;
  --tq-gold-dark: #B07D55;
  --tq-teal: #1A7A7A;
  --tq-teal-light: #E4F3F3;
  --tq-coral: #E8725C;
  --tq-sage-light: #F0F5EF;
  --tq-warm-white: #F8F6F2;
  --tq-soft-gray: #E8E5E0;
  --tq-ink: #333333;
  --tq-ink-soft: #6b675f;
  font-family: "DM Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--tq-ink);
  background: var(--tq-warm-white);
  line-height: 1.55;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 16px 64px;
  box-sizing: border-box;
}
.tq-root *, .tq-root *::before, .tq-root *::after { box-sizing: border-box; }
.tq-root img { max-width: 100%; display: block; }
.tq-root button { font-family: inherit; cursor: pointer; }

/* --- header --- */
.tq-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .3em;
  text-transform: uppercase; color: var(--tq-teal);
}
.tq-title {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(34px, 6vw, 52px); font-weight: 700; line-height: 1.02;
  margin: 6px 0 10px; color: var(--tq-ink); text-wrap: balance;
}
.tq-sub { color: var(--tq-ink-soft); margin: 0 0 6px; max-width: 46ch; }
.tq-chips { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.tq-chip {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--tq-teal);
  background: var(--tq-teal-light); border-radius: 999px; padding: 6px 12px;
}

/* --- progress --- */
.tq-progress { margin: 26px 0 6px; display: flex; align-items: center; gap: 14px; }
.tq-progress-label {
  font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--tq-ink-soft); white-space: nowrap;
}
.tq-bar { flex: 1; height: 4px; background: var(--tq-soft-gray); border-radius: 2px; overflow: hidden; }
.tq-bar-fill { height: 100%; background: var(--tq-gold); border-radius: 2px; transition: width .35s ease; }

/* --- question --- */
.tq-q-eyebrow { margin-top: 18px; }
.tq-question {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(28px, 4.6vw, 40px); font-weight: 700; line-height: 1.05;
  margin: 4px 0 6px; text-wrap: balance;
}
.tq-helper { color: var(--tq-ink-soft); font-size: 15px; margin: 0 0 18px; max-width: 56ch; }

.tq-options { display: grid; gap: 12px; margin-top: 18px; }
.tq-options.tq-photos { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tq-options.tq-tiles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.tq-opt {
  position: relative; text-align: left; background: #fff;
  border: 2px solid var(--tq-soft-gray); border-radius: 6px; padding: 0;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
}
.tq-opt:hover { border-color: var(--tq-gold); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(51,51,51,.08); }
.tq-opt:focus-visible { outline: 3px solid var(--tq-teal); outline-offset: 2px; }
.tq-opt.tq-selected { border-color: var(--tq-gold); background: var(--tq-gold-50); }

.tq-opt-img { aspect-ratio: 4 / 3; background: var(--tq-sage-light); overflow: hidden; }
.tq-opt-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.tq-opt-body { padding: 12px 14px 14px; }
.tq-opt-label { font-weight: 700; font-size: 16px; }
.tq-opt-sub { font-size: 13px; color: var(--tq-ink-soft); margin-top: 2px; }

.tq-check {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--tq-gold); color: #fff; display: none;
  align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}
.tq-opt.tq-selected .tq-check { display: flex; }

.tq-back {
  margin-top: 22px; background: none; border: none; color: var(--tq-ink-soft);
  font-size: 14px; font-weight: 600; padding: 6px 2px;
}
.tq-back:hover { color: var(--tq-ink); }

/* --- email step --- */
.tq-email { text-align: center; max-width: 480px; margin: 40px auto 0; }
.tq-email-icon { font-size: 34px; }
.tq-email form { display: flex; gap: 10px; margin: 20px 0 10px; }
.tq-input {
  flex: 1; font-family: inherit; font-size: 15px; padding: 13px 14px;
  border: 2px solid var(--tq-soft-gray); border-radius: 3px; background: #fff; color: var(--tq-ink);
}
.tq-input:focus { outline: none; border-color: var(--tq-teal); }
.tq-privacy { font-size: 12px; color: var(--tq-ink-soft); }
.tq-skip {
  display: inline-block; margin-top: 16px; background: none; border: none;
  color: var(--tq-teal); font-size: 14px; font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- buttons --- */
.tq-btn {
  display: inline-block; background: var(--tq-gold); color: #111; border: none;
  border-radius: 3px; padding: 13px 22px; font-size: 12px; font-weight: 800;
  letter-spacing: .3em; text-transform: uppercase; text-decoration: none; text-align: center;
  transition: background .15s ease;
}
.tq-btn:hover { background: var(--tq-gold-dark); color: #fff; }
.tq-btn[disabled] { opacity: .55; cursor: default; }
.tq-btn-ghost {
  display: inline-block; background: none; border: 2px solid var(--tq-soft-gray); color: var(--tq-ink);
  border-radius: 3px; padding: 11px 20px; font-size: 12px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none; text-align: center;
}
.tq-btn-ghost:hover { border-color: var(--tq-ink); }

/* --- loading --- */
.tq-loading { text-align: center; padding: 70px 0; }
.tq-wave {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%;
  border: 4px solid var(--tq-teal-light); border-top-color: var(--tq-teal);
  animation: tq-spin 0.9s linear infinite;
}
@keyframes tq-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .tq-wave { animation: none; }
  .tq-opt, .tq-bar-fill { transition: none; }
}
.tq-loading-line { font-weight: 700; }

/* --- results --- */
.tq-results-head { text-align: center; margin: 34px 0 8px; }
.tq-complete {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .3em;
  text-transform: uppercase; color: #fff; background: var(--tq-teal);
  border-radius: 999px; padding: 7px 14px;
}
.tq-results { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 22px; }
.tq-card {
  position: relative; background: #fff; border: 2px solid var(--tq-soft-gray);
  border-radius: 8px; padding: 0 0 18px; display: flex; flex-direction: column;
}
.tq-card.tq-best { border-color: var(--tq-gold); box-shadow: 0 10px 26px rgba(220,160,117,.22); }
.tq-badge {
  position: absolute; top: -12px; left: 14px; font-size: 10px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px;
  background: #fff; border: 2px solid var(--tq-soft-gray); color: var(--tq-ink-soft);
}
.tq-card.tq-best .tq-badge { background: var(--tq-gold); border-color: var(--tq-gold); color: #111; }
.tq-card-img { aspect-ratio: 1; padding: 18px; }
.tq-card-img img { width: 100%; height: 100%; object-fit: contain; }
.tq-card-body { padding: 0 16px; display: flex; flex-direction: column; flex: 1; }
.tq-card-name { font-family: "Barlow Condensed", sans-serif; font-size: 24px; font-weight: 700; line-height: 1.1; }
.tq-card-size { font-size: 13px; color: var(--tq-ink-soft); margin-bottom: 8px; }
.tq-price { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.tq-compare { color: var(--tq-ink-soft); font-weight: 400; text-decoration: line-through; font-size: 14px; margin-left: 6px; }
.tq-why { margin: 0 0 14px; padding: 0; list-style: none; }
.tq-why li {
  position: relative; font-size: 13.5px; color: var(--tq-ink); padding: 3px 0 3px 22px;
}
.tq-why li::before { content: "✓"; position: absolute; left: 2px; color: var(--tq-teal); font-weight: 800; }
.tq-card-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.tq-view { font-size: 13px; color: var(--tq-teal); font-weight: 700; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.tq-prevgen {
  margin-top: 10px; font-size: 12.5px; background: var(--tq-teal-light); color: var(--tq-teal);
  border-radius: 5px; padding: 8px 10px; font-weight: 600;
}
.tq-prevgen a { color: inherit; }
.tq-soldout { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--tq-coral); text-transform: uppercase; }

/* --- cross-sell + footer --- */
.tq-xsell-head {
  font-family: "Barlow Condensed", sans-serif; font-size: 24px; font-weight: 700;
  margin: 40px 0 12px; text-align: center;
}
.tq-xsells { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tq-xsell {
  background: #fff; border: 2px solid var(--tq-soft-gray); border-radius: 6px;
  padding: 12px; text-decoration: none; color: var(--tq-ink); display: flex; gap: 10px; align-items: center;
}
.tq-xsell:hover { border-color: var(--tq-gold); }
.tq-xsell img { width: 54px; height: 54px; object-fit: contain; flex: none; }
.tq-xsell-name { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.tq-xsell-note { font-size: 12px; color: var(--tq-ink-soft); }
.tq-xsell-price { font-size: 12.5px; font-weight: 700; margin-top: 2px; }

.tq-footer { text-align: center; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--tq-soft-gray); }
.tq-footer p { color: var(--tq-ink-soft); font-size: 14px; margin: 0 0 12px; }
.tq-footer .tq-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.tq-retake { background: none; border: none; color: var(--tq-teal); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* --- small screens --- */
@media (max-width: 520px) {
  .tq-options.tq-photos { grid-template-columns: repeat(2, 1fr); }
  .tq-opt-img { aspect-ratio: 5 / 4; }
  .tq-email form { flex-direction: column; }
}
