/* Quiz landing page (check.html), thank-you and out-of-area pages.
   Builds on styles.css (colours, fonts, buttons). */

.lp-hero {
  background:
    radial-gradient(1200px 400px at 50% -120px, rgba(15, 118, 110, 0.14), transparent 70%),
    var(--soft);
  padding: 40px 0 72px;
}
.lp-hero .wrap { max-width: 760px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 0.95rem; font-weight: 700; color: var(--teal-dark);
  margin-bottom: 18px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.lp-hero h1 { margin-bottom: 14px; text-wrap: balance; }
.step legend { text-wrap: balance; }
.lp-hero .lead { margin: 0 auto 26px; max-width: 40ch; }

.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  list-style: none; padding: 0; margin: 22px 0 0; font-size: 1.02rem; color: var(--muted);
}
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { flex-shrink: 0; }

/* Quiz card */
.quiz {
  position: relative;
  max-width: 640px; margin: 0 auto; text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 60px -28px rgba(30, 58, 95, 0.35), 0 2px 6px rgba(30, 58, 95, 0.06);
  padding: 28px 28px 24px;
}
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.quiz-step-label { font-size: 0.95rem; font-weight: 700; color: var(--muted); }
.quiz-time { font-size: 0.95rem; color: var(--muted); }
.progress { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), #14b8a6); border-radius: 999px; transition: width 0.35s ease; }

.step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.step.active { display: block; }
.quiz.animate .step.active { animation: stepIn 0.28s ease both; } /* only after the first answer */
/* Slide only (no fade), so the question is always readable even if animations are paused. */
@keyframes stepIn { from { transform: translateY(10px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .step.active { animation: none; } .progress-bar { transition: none; } }

.step legend, .step .q {
  font-family: "Nunito", sans-serif; font-weight: 800; color: var(--navy);
  font-size: clamp(1.45rem, 3.4vw, 1.8rem); line-height: 1.25; margin-bottom: 8px; padding: 0;
}
.q-help { color: var(--muted); font-size: 1.05rem; margin: 0 0 18px; }
.step legend:focus { outline: none; } /* focused only so screen readers announce the new question */

/* Answer tiles */
.options { display: grid; gap: 12px; }
.options.two { grid-template-columns: 1fr 1fr; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span {
  display: flex; align-items: center; gap: 14px;
  min-height: 62px; padding: 14px 18px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--white);
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
  cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.option span::before {
  content: ""; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #a7b6b2; background: var(--white); transition: all 0.15s;
}
.option.check span::before { border-radius: 7px; }
.option:hover span { border-color: #9ccfc8; background: #f7fbfa; }
.option input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.option input:checked + span { border-color: var(--teal); background: #eefaf7; box-shadow: 0 0 0 1px var(--teal) inset; }
.option input:checked + span::before {
  border-color: var(--teal); background: var(--teal);
  box-shadow: inset 0 0 0 4px var(--white);
}
.option.check input:checked + span::before {
  box-shadow: none;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Text inputs */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%; font: inherit; font-size: 1.2rem; color: var(--ink);
  padding: 15px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--white);
}
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15); }
.field input[aria-invalid="true"] { border-color: var(--coral); }
.field-note { font-size: 0.95rem; color: var(--muted); margin-top: 6px; }
.postcode-input { max-width: 220px; letter-spacing: 0.12em; font-weight: 700; }

.error {
  display: none; margin-top: 12px; padding: 10px 14px; border-radius: 10px;
  background: #fff1ee; color: #a8341f; font-size: 1.02rem; font-weight: 700;
}
.error.show { display: block; }

/* Consent */
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 6px 0 4px; font-size: 1rem; line-height: 1.5; cursor: pointer;
}
.consent input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--teal); flex-shrink: 0; }

/* Quiz nav */
.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.btn-back {
  background: none; border: 0; padding: 10px 6px; font: inherit; font-weight: 700;
  color: var(--muted); cursor: pointer; visibility: hidden;
}
.btn-back.visible { visibility: visible; }
.btn-back:hover { color: var(--navy); }
.btn-next { min-width: 180px; text-align: center; }
.btn-next[hidden] { display: none; }
.btn-submit { width: 100%; margin-top: 8px; font-size: 1.25rem; padding: 18px 28px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 0.95rem; margin: 14px 0 0; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Info strip under the quiz */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.info-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--soft);
  display: grid; place-items: center; margin-bottom: 14px;
}
.info-card h3 { margin-bottom: 6px; }
.info-card p { margin: 0; color: var(--muted); }

/* Simple status pages (thanks / not covered) */
.status-page { padding: 56px 0 72px; background: var(--soft); min-height: 70vh; }
.status-card { max-width: 680px; margin: 0 auto; }
.status-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); margin-bottom: 18px;
}
.next-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.next-list li { display: flex; gap: 14px; align-items: flex-start; }
.next-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--white); display: grid; place-items: center;
  font-family: "Nunito", sans-serif; font-weight: 800;
}
.founder {
  display: flex; gap: 16px; align-items: flex-start;
  border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px;
}
.founder-avatar {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  background: var(--soft); border: 2px solid var(--line);
  display: grid; place-items: center; font-family: "Nunito", sans-serif; font-weight: 800; color: var(--teal-dark); font-size: 1.5rem;
}
.founder p { margin: 0 0 6px; }
.founder .sig { font-weight: 700; color: var(--navy); }

@media (max-width: 820px) {
  /* On phones the first question should be visible without scrolling. */
  .lp-hero { padding: 18px 0 40px; }
  .lp-hero .eyebrow { display: none; }
  .lp-hero h1 { font-size: 1.7rem; margin-bottom: 8px; }
  .lp-hero .lead { font-size: 1.08rem; margin-bottom: 16px; }
  .step legend, .step .q { font-size: 1.4rem; }
  .quiz { padding: 22px 18px 20px; border-radius: 18px; }
  .options.two { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .btn-next { min-width: 140px; }
}
