/* ============================================================
   MRC B2B Partner Funnel — visual language mirrored from
   start.mouthrehabcentre.com.au (the owner-approved design):
   Poppins, blue-slate ink, azure gradient pill CTAs, fluoro
   sky-blue highlighter accents, white option cards, minimal
   centred single-column layout with a soft radial glow.
   ============================================================ */

:root {
  --blue: #1767db;
  --blue-deep: #1060d0;
  --hi: #8adcff;          /* highlighter sweep */
  --ink: #1b2b44;
  --grey: #505051;
  --grey-lt: #9a9a9c;
  --line: #eaeaeb;
  --card-line: #d7e9fa;
  --red: #d64545;
  --green-ok: #1f9d55;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Poppins", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(900px 400px at 50% -6%, rgba(48, 176, 240, 0.18), transparent 60%),
    #fafbfd;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hidden { display: none !important; }

/* ---------- Header ---------- */
.top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  text-align: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  vertical-align: middle;
}
.brand img { width: 44px; height: 44px; display: block; }
.brand-word {
  text-align: left;
  line-height: 1.1;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-word small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--grey-lt);
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 26px 18px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Headlines ---------- */
.q,
#quizCard h2 {
  font-size: 23px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.hi {
  color: var(--blue);
  background: linear-gradient(transparent 62%, var(--hi) 62%, var(--hi) 94%, transparent 94%);
  padding: 0 7px;
  margin: 0 -1px;
}
.intro-h { font-size: 52px; line-height: 1.12; margin-bottom: 18px; }
.intro-sub {
  text-align: center;
  color: var(--grey);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn,
.btn-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  max-width: 460px;
  margin: 24px auto 0;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0b54be, #2e9be8);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 60, 140, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover,
.btn-continue:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(0, 60, 140, 0.34); }
.btn:disabled { opacity: 0.65; cursor: default; transform: none; }
.btn-cta { max-width: 380px; }
.btn-sub { display: none; }

.btn-outline {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 14px auto 0;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue);
  background: #fff;
  border: 1.5px solid var(--card-line);
  border-radius: 999px;
  cursor: pointer;
}
.btn-ghost {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--grey-lt);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.back-link {
  display: block;
  text-align: center;
  margin: 16px auto 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--grey-lt);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.screen-hero { text-align: center; }
.trustrow {
  display: flex;
  gap: 10px 30px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--grey);
}
.stars { color: #f0a93b; letter-spacing: 2.5px; font-size: 16px; line-height: 1; margin-right: 6px; }

/* ---------- Hero stats band (the flex) ---------- */
.statsrow {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 14px 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-n {
  font-size: 27px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.stat-unit { font-size: 15px; font-weight: 600; }
.stat-l {
  font-size: 11.5px;
  color: var(--grey);
  margin-top: 3px;
  max-width: 160px;
  text-align: center;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .statsrow { gap: 14px 22px; }
  .stat-n { font-size: 22px; }
  .stat-l { font-size: 10.5px; max-width: 120px; }
}

/* ---------- Quiz shell ---------- */
.quiz-section { width: 100%; }
.progress-wrap { display: none; } /* start. design shows no progress UI */
.quiz-card { width: 100%; }
#quizCard .step-sub {
  text-align: center;
  color: var(--grey);
  font-size: 14px;
  max-width: 460px;
  margin: 0 auto 22px;
  text-wrap: balance;
}
.quiz-footnote {
  text-align: center;
  font-size: 12px;
  color: var(--grey-lt);
  margin-top: 22px;
}
.good-news {
  display: block;
  width: fit-content;
  margin: 0 auto 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-ok);
  background: #e9f7ef;
  border-radius: 999px;
  padding: 4px 14px;
}

/* ---------- Option rows ---------- */
.options { display: flex; flex-direction: column; gap: 12px; max-width: 460px; margin: 0 auto; }
.option-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--card-line);
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(40, 40, 40, 0.03), 0 6px 18px rgba(16, 96, 208, 0.08);
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}
.option-btn:hover { border-color: var(--blue); transform: translateY(-1px); }
.option-emoji { font-size: 17px; line-height: 1; }

/* ---------- Fields ---------- */
.field { max-width: 460px; margin: 0 auto 14px; text-align: left; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 6px;
}
.field label .optional { font-weight: 400; color: var(--grey-lt); }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--card-line);
  border-radius: 14px;
  transition: border-color 0.12s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--blue); }
.field input.invalid,
.field textarea.invalid { border-color: var(--red); }
.field-error { display: none; font-size: 12px; color: var(--red); margin-top: 5px; }
.field-error.show { display: block; }
.phone-wrap { display: flex; gap: 10px; }
.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 13px;
  background: #fff;
  border: 1.5px solid var(--card-line);
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.phone-wrap input { flex: 1; }
.step-reassure {
  text-align: center;
  font-size: 12px;
  color: var(--grey-lt);
  max-width: 440px;
  margin: 16px auto 0;
}

/* ---------- Analyzing interstitial ---------- */
.analyzing { text-align: center; padding: 18px 0; }
.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  border: 4px solid var(--card-line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.analyzing-steps {
  list-style: none;
  max-width: 400px;
  margin: 18px auto 0;
  text-align: left;
  color: var(--grey-lt);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.analyzing-steps li.done { color: var(--ink); font-weight: 600; }

/* ---------- Results / thank-you ---------- */
.result-center { text-align: center; }
.result-icon { font-size: 44px; margin-bottom: 10px; }
.slot-confirm-big {
  max-width: 460px;
  margin: 18px auto 0;
  background: #fff;
  border: 1.5px solid var(--card-line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(16, 96, 208, 0.08);
}
.slot-confirm-sub { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: var(--grey); }
.next-steps {
  list-style: none;
  max-width: 460px;
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.next-steps li { display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.step-num {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.next-steps .desc { display: block; font-size: 13px; color: var(--grey); font-weight: 400; }
.next-steps strong { font-size: 14.5px; }

/* ---------- Slot picker ---------- */
.slot-days {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.slot-day {
  flex: 0 0 auto;
  min-width: 64px;
  background: #fff;
  border: 1.5px solid var(--card-line);
  border-radius: 14px;
  padding: 9px 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}
.slot-day .dow { display: block; font-size: 11px; color: var(--grey-lt); }
.slot-day .dom { display: block; font-size: 16px; font-weight: 700; }
.slot-day .count { display: block; font-size: 10px; color: var(--grey-lt); }
.slot-day.selected { border-color: var(--blue); background: #eef6ff; }
.slot-day.selected .dow, .slot-day.selected .count { color: var(--blue); }
.slot-periods { display: flex; gap: 8px; justify-content: center; margin: 0 auto 12px; max-width: 460px; }
.slot-periods button {
  background: #fff;
  border: 1.5px solid var(--card-line);
  border-radius: 999px;
  padding: 7px 18px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.slot-periods button.selected { border-color: var(--blue); background: #eef6ff; color: var(--blue); }
.slot-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}
.slot-time {
  background: #fff;
  border: 1.5px solid var(--card-line);
  border-radius: 14px;
  padding: 11px 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.12s ease;
}
.slot-time:hover { border-color: var(--blue); }
.show-more-times {
  grid-column: 1 / -1;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  padding: 8px;
}
.slot-note { text-align: center; font-size: 12px; color: var(--grey-lt); margin-top: 12px; }
.error-box {
  max-width: 460px;
  margin: 14px auto 0;
  background: #fdf1f1;
  border: 1.5px solid #f2c7c7;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13.5px;
  color: #8f2f2f;
  text-align: center;
}

/* ---------- Closing CTA: not part of the start. design ---------- */
.closing-cta { display: none; }

/* ---------- Footer ---------- */
.foot {
  text-align: center;
  font-size: 11px;
  color: var(--grey-lt);
  line-height: 1.6;
  border-top: 1px solid var(--line);
  background: #fff;
  margin-top: 28px;
  padding: 14px 18px 16px;
}
.foot a { color: var(--grey-lt); }
.foot .foot-disclaimer { max-width: 640px; margin: 8px auto 0; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .intro-h { font-size: 34px; }
  .intro-sub { font-size: 15px; }
  .q, #quizCard h2 { font-size: 20px; }
  .slot-times { grid-template-columns: repeat(2, 1fr); }
}
