/* =========================================================
   ChallengeTheRent – styles.css
   Clear, clean, accessible. Inspired by Citizens Advice / NHS.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@700;800&family=Source+Sans+3:wght@400;600;700&display=swap");

/* ---------- Colours & settings ---------- */
:root {
  --navy: #004b88;          /* brand primary */
  --navy-dark: #012760;     /* link hover */
  --yellow: #fcbb69;        /* brand accent */
  --focus: #ffd250;         /* keyboard focus */
  --text: #161616;          /* main text */
  --text-secondary: #4a4e4f;
  --button: #018176;        /* primary button */
  --button-hover: #006159;
  --button-shadow: #00403a;
  --pale-blue: #f2f8ff;     /* soft section background */
  --light-grey: #f0f4f5;    /* soft section background */
  --border: #d8dde0;
  --white: #ffffff;
  --cream: #fff6e8;         /* warm hero background */
  --heading-font: "Manrope", "Source Sans 3", Arial, sans-serif;

  --container: 960px;
  --radius: 4px;
}

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

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

body {
  margin: 0;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 1.125rem;      /* 18px */
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 56px 0;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 16px;
  font-family: var(--heading-font);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

/* Key phrases: a thick yellow underline */
u {
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 4px;
  text-decoration-skip-ink: none;
  text-underline-offset: 3px;
}

/* ---------- Links & focus ---------- */
a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-dark);
  text-decoration-thickness: 3px;
}

a:focus-visible {
  outline: 3px solid transparent;
  background: var(--focus);
  color: var(--text);
  box-shadow: 0 -2px var(--focus), 0 4px var(--text);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: var(--white);
  background: var(--button);
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.btn:hover {
  color: var(--white);
  background: var(--button-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  background: var(--focus);
  color: var(--text);
  border-color: var(--text);
}

/* ---------- Header ---------- */
.header {
  background: var(--white);
  border-bottom: 4px solid var(--yellow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.header-logo {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header-logo:hover {
  color: var(--navy-dark);
  text-decoration: underline;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone svg {
  width: 20px;
  height: 20px;
  color: var(--button);
}

.header-phone:hover {
  color: var(--navy-dark);
  text-decoration: underline;
}

/* Small phones: shrink logo and number so both fit on one line */
@media (max-width: 480px) {
  .header .container {
    gap: 12px;
  }

  .header-logo {
    font-size: 1rem;
  }

  .header-phone {
    font-size: 0.9375rem;
  }

  .header-phone svg {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 80px;
  background-color: var(--navy-dark);
  background-image:
    linear-gradient(rgba(10, 20, 35, 0.55), rgba(10, 20, 35, 0.55)),
    url("images/hero.jpeg");
  background-size: cover;
  background-position: center;
}

.hero .container {
  max-width: 1080px;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
}

/* The tagline is styled as the title... */
.hero-content p {
  margin-bottom: 0;
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* The first sentence of the H1 matches the questions above it */
.hero h1 .hero-h1-lead {
  display: block;
  margin: 1.15em 0 24px;    /* same gap as between the two questions */
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ...and the rest of the H1 is styled as a subtitle */
.hero h1 {
  max-width: 1000px;
  text-wrap: balance;
  margin: 0 auto;
  text-align: center;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 1.125rem;   /* 18px */
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ---------- Problems ---------- */
.problems {
  background: var(--light-grey);
}

.problems .container {
  display: grid;
  gap: 24px;
  max-width: 800px;
}

.problem-box {
  background: var(--white);
  padding: 28px;
  border-top: 6px solid var(--yellow);
  border-radius: 0 0 var(--radius) var(--radius);
}

.problem-box h2 {
  font-size: 1.375rem;
  color: var(--navy);
}

.problems-cta {
  margin-top: 8px;
  text-align: center;
}

/* ---------- Solution ---------- */
.solution {
  background: var(--pale-blue);
}

.solution .container {
  max-width: 800px;
}

.solution h2 {
  color: var(--navy);
}

.solution p b {
  display: block;
  margin: 8px 0;
  padding-left: 16px;
  border-left: 4px solid var(--navy);
  color: var(--navy);
}

.solution .btn {
  display: block;
  width: fit-content;
  margin: 32px auto 0;
}

/* ---------- Features ---------- */
.features h2 {
  color: var(--navy);
}

.feature-boxes {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

.feature-box {
  padding: 24px;
  background: var(--light-grey);
  border-left: 6px solid var(--button);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--button);
  background: var(--white);
  border-radius: 50%;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-box h4 {
  margin-bottom: 8px;
  color: var(--navy);
}

.features-cta {
  margin-top: 32px;
  text-align: center;
}

/* ---------- How it all works ---------- */
.how-it-works {
  background: var(--pale-blue);
}

.how-it-works h2 {
  color: var(--navy);
  text-align: center;
}

/* The journey: a vertical line with numbered stops */
.journey {
  position: relative;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
  view-timeline-name: --journey;
}

/* Grey track */
.journey::before,
.journey::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: var(--line-bottom, 28px);   /* set by the script so the line stops at step 6 */
  left: 26px;
  width: 4px;
  border-radius: 2px;
}

.journey::before {
  background: var(--border);
}

/* Teal progress line that fills as you scroll */
.journey::after {
  background: var(--button);
  transform-origin: top;
}

.journey-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  view-timeline-name: --step;
}

.journey-step + .journey-step {
  margin-top: 32px;
}

/* Numbered stop on the line */
.journey-number {
  position: relative;
  z-index: 1;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  font-family: var(--heading-font);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  background: var(--button);
  border: 4px solid var(--button);
  border-radius: 50%;
}

.journey-card {
  flex: 1;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.journey-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  color: var(--button);
  background: var(--light-grey);
  border-radius: 50%;
}

.journey-icon svg {
  width: 24px;
  height: 24px;
}

.journey-card h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  color: var(--navy);
}

/* The final step is the prize: it glows gold */
.journey-step:last-child .journey-number {
  color: var(--navy);
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 0 6px rgba(252, 187, 105, 0.35), 0 0 28px rgba(252, 187, 105, 0.9);
}

/* Soft pulsing ring around the gold number */
.journey-step:last-child .journey-number::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid var(--yellow);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .journey-step:last-child .journey-number::after {
    animation: gold-pulse 2s ease-out infinite;
  }
}

@keyframes gold-pulse {
  from { transform: scale(1);   opacity: 0.9; }
  to   { transform: scale(1.6); opacity: 0; }
}

.how-cta {
  margin-top: 40px;
  text-align: center;
}

/* Scroll effect (driven by the small script in index.html):
   the teal line fills as you scroll, and each step lights up when the
   line reaches it. Without the script, everything simply shows in colour. */
.journey::after {
  transform: scaleY(var(--progress, 1));
}

.js .journey-number,
.js .journey-card {
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}

/* Steps the line hasn't reached yet */
.js .journey-step:not(.is-active) .journey-number {
  color: var(--text-secondary);
  background: var(--white);
  border-color: var(--border);
  box-shadow: none;
}

.js .journey-step:not(.is-active) .journey-card {
  opacity: 0.45;
  transform: translateY(12px);
}

.js .journey-step:not(.is-active) .journey-number::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .journey-number,
  .js .journey-card {
    transition: none;
  }

  .js .journey-step:not(.is-active) .journey-card {
    transform: none;
  }
}


/* ---------- Check your rent increase (form) ---------- */
.check-rent {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.check-rent h2 {
  color: var(--white);
}

.check-rent-intro {
  max-width: 640px;
  margin: 0 auto 32px;
}

.rent-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  text-align: left;
  color: var(--text);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rent-form-fields {
  display: grid;
  gap: 20px;
}

.form-field {
  min-width: 0;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--navy);
}

.input-money {
  display: flex;
  align-items: center;
  border: 2px solid var(--text-secondary);
  border-radius: var(--radius);
  background: var(--white);
}

.input-money span {
  padding: 0 4px 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.input-money input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 12px 14px 12px 4px;
  font: inherit;
  font-size: 1.25rem;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
}

.input-money:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--focus);
}

.rent-form-btn {
  width: 100%;
  margin-top: 24px;
}

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

/* ---------- News ---------- */
.news {
  background: var(--light-grey);
}

.news h2 {
  color: var(--navy);
}

.news-cards {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text);
  text-decoration: none;
}

.news-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;   /* the standard og:image shape */
  object-fit: cover;
  background: var(--border);
}

.news-card-body {
  padding: 20px 24px 24px;
}

.news-card-meta {
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.news-card h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  color: var(--navy);
}

.news-card-body p:last-child {
  font-size: 1rem;
}

.news-card-link:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.news-card-link:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: -4px;
  background: transparent;
  box-shadow: none;
}

/* Anything marked hidden stays hidden, even buttons */
[hidden] {
  display: none !important;
}

/* =========================================================
   Questions page (questions.html)
   ========================================================= */
.q-page {
  padding: 48px 0 72px;
  background: var(--light-grey);
  min-height: 70vh;
}

.q-wrap {
  max-width: 720px;
}

.q-page h1 {
  font-size: 2rem;
  color: var(--navy);
}

.q-lead {
  margin-bottom: 28px;
  color: var(--text-secondary);
}

/* Progress */
.q-progress {
  display: none;
  margin-bottom: 24px;
}

.js .q-progress {
  display: block;
}

.q-progress-label {
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.q-progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

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

/* Summary card */
.q-summary {
  margin-bottom: 24px;
  padding: 20px 24px;
  color: var(--white);
  background: var(--navy);
  border-radius: 12px;
}

.q-summary p {
  margin: 0;
}

.q-summary-title {
  font-size: 1rem;
  opacity: 0.9;
}

.q-summary-figure {
  margin: 4px 0 !important;
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ff7b7b;   /* light red, readable on navy */
}

.q-summary-detail {
  font-size: 1rem;
}

/* Form card and steps */
.q-form,
.q-thanks {
  padding: 32px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.q-step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.q-step + .q-step {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Float the legend so the divider line runs cleanly above the heading */
.q-step legend {
  float: left;
  width: 100%;
  padding: 0;
}

.q-step legend + * {
  clear: both;
  margin-top: 0;
}

.q-step h2 {
  margin-bottom: 24px;
  font-size: 1.5rem;
  color: var(--navy);
}

/* Even spacing between everything in a section (hidden notes don't count) */
.q-step > * + * {
  margin-top: 24px;
}

.q-row {
  display: grid;
  gap: 24px;
}

.q-row .form-field + .form-field {
  margin-top: 0;
}

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

.q-question {
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--navy);
}

.q-hint {
  margin: -4px 0 8px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.q-optional {
  font-weight: 400;
  color: var(--text-secondary);
}

/* Text inputs, selects, textareas */
.input-text {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--text-secondary);
  border-radius: var(--radius);
}

.input-text:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--focus);
}

.input-short {
  max-width: 260px;
}

#postcode {
  text-transform: uppercase;
}

textarea.input-text {
  resize: vertical;
}

/* Radio and checkbox options as large tappable rows */
.q-options {
  display: grid;
  gap: 10px;
}

.form-field .q-option,
.q-option {
  display: flex;
  margin: 0;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 400;
  color: var(--text) !important;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.q-option:hover {
  border-color: var(--text-secondary);
}

.q-option:has(input:checked) {
  border-color: var(--button);
  background: #e8f4f2;
}

.q-option input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--button);
}

.q-consent {
  font-size: 1rem;
}

/* Notes and warnings */
.q-note {
  padding: 16px 18px;
  border-left: 6px solid;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.q-note p {
  margin: 0;
}

.q-note-warning {
  background: #fdeaea;
  border-color: #df3034;
}

.q-note-urgent {
  background: #fff4e0;
  border-color: var(--yellow);
}

.q-note-info {
  background: var(--pale-blue);
  border-color: var(--navy);
}

.q-note-small {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Navigation buttons */
.q-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

.q-nav .btn {
  min-width: 140px;
}

.q-nav #q-submit {
  width: 100%;
}

.btn-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--navy);
}

.btn-secondary:hover {
  color: var(--white);
  background: var(--navy);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.q-thanks h2 {
  color: var(--navy);
}

/* ---------- References ---------- */
sup.ref {
  font-size: 0.7em;
  font-weight: 700;
  line-height: 0;
  color: var(--navy);
}

.sources {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
}

.sources h2 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.sources-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.sources-list a {
  color: var(--text-secondary);
}

/* ---------- Larger screens ---------- */
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero-content p,
  .hero h1 .hero-h1-lead { font-size: 3rem; }

  section {
    padding: 72px 0;
  }

  .hero {
    padding: 64px 0 80px;
    /* Show the upper part of the photo, where the houses take up less of the width */
    background-position: center 35%;
  }

  .feature-boxes {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.q-step .q-step-intro {
  margin-bottom: 0;
}

/* Key facts inside the navy summary box */
.q-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.q-summary-figures:not([hidden]) + .q-facts {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.q-facts li {
  position: relative;
  padding-left: 28px;
}

.q-facts li + li {
  margin-top: 10px;
}

.q-facts li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 800;
  color: var(--yellow);
}

/* =========================================================
   Quick check result (questions.html)
   ========================================================= */
.result-card {
  padding: 32px;
  background: var(--white);
  border-top: 8px solid var(--button);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.result-card.result-strong { border-top-color: var(--button); }
.result-card.result-maybe  { border-top-color: var(--yellow); }
.result-card.result-late   { border-top-color: #df3034; }

.result-label {
  margin-bottom: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.result-card h2 {
  font-size: 1.75rem;
  color: var(--navy);
}

.result-card h3 {
  margin: 28px 0 12px;
  font-size: 1.125rem;
  color: var(--navy);
}

.result-stake {
  font-size: 1.125rem;
}

.result-card .q-note {
  margin-top: 24px;
}

.result-reasons,
.result-safety {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-reasons li,
.result-safety li {
  position: relative;
  padding-left: 32px;
}

.result-reasons li + li,
.result-safety li + li {
  margin-top: 10px;
}

.result-reasons li::before,
.result-safety li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}

.result-reasons li::before { content: "→"; color: var(--navy); }
.result-safety li::before  { content: "✓"; color: var(--button); }

.result-actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.result-actions .btn {
  text-align: center;
}

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

  #result-actions-late {
    grid-template-columns: 1fr;
  }
}

.result-price {
  margin-top: 12px;
  font-size: 0.9375rem;
  text-align: center;
  color: var(--text-secondary);
}

.result-edit {
  margin-top: 20px;
  text-align: center;
}

.link-button {
  padding: 0;
  font: inherit;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  cursor: pointer;
}

/* =========================================================
   Start the process + Do it myself pages
   ========================================================= */
.case-summary {
  margin-bottom: 24px;
  padding: 20px 24px;
  color: var(--white);
  background: var(--navy);
  border-radius: 12px;
}

.case-summary-title {
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--yellow);
}

.case-summary dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.case-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.case-summary dt {
  opacity: 0.85;
}

.case-summary dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--light-grey);
  border-radius: var(--radius);
}

.price-box p {
  margin: 0;
}

.price-box-label {
  font-weight: 700;
  color: var(--navy);
}

.price-box-note {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.price-box-price {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}

.diy-section + .diy-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.diy-section h2 {
  font-size: 1.375rem;
  color: var(--navy);
}

.diy-links {
  margin: 0;
  padding-left: 20px;
}

.diy-links li + li {
  margin-top: 8px;
}

.diy-upsell {
  margin-top: 32px;
  padding: 24px;
  text-align: center;
  background: var(--pale-blue);
  border-radius: var(--radius);
}

.diy-upsell .btn {
  margin-top: 16px;
}

.result-card .q-note + p {
  margin-top: 20px;
}

.result-source {
  margin-top: 8px !important;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.result-source a {
  color: var(--text-secondary);
}

.result-links {
  margin: 0;
  padding-left: 20px;
}

.result-links li + li {
  margin-top: 8px;
}

/* The result is a <section>, but shouldn't get the big page-section padding */
.q-page .result {
  padding: 0;
}

/* =========================================================
   Start the process: sales elements
   ========================================================= */
.case-summary-deadline {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.case-summary-deadline strong {
  color: var(--yellow);
}

.sell-compare {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

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

.sell-compare-item {
  padding: 20px 24px;
  text-align: center;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.sell-compare-item p {
  margin: 0;
}

.sell-compare-label {
  font-weight: 700;
  color: var(--navy);
}

.sell-compare-figure {
  margin: 4px 0 !important;
  font-family: var(--heading-font);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--button);
}

.sell-compare-bad {
  color: #df3034;
}

.sell-compare-note {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.sell-card {
  margin-bottom: 24px;
}

.sell-card h2 {
  font-size: 1.375rem;
  color: var(--navy);
}

.sell-card h2 + .sell-list {
  margin-top: 0;
}

.sell-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sell-list + h2 {
  margin-top: 28px;
}

.sell-list li {
  position: relative;
  padding-left: 32px;
}

.sell-list li + li {
  margin-top: 10px;
}

.sell-list li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 800;
  color: var(--button);
}

.sell-form-intro {
  margin-bottom: 24px;
  font-weight: 700;
  color: var(--navy);
}

/* FAQ */
.faq {
  margin-top: 40px;
  padding: 0;
}

.faq h2 {
  font-size: 1.375rem;
  color: var(--navy);
}

.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq details + details {
  margin-top: 10px;
}

.faq summary {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
}

/* Small phones: stack the price box so the price never gets cut off */
@media (max-width: 480px) {
  .price-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .case-summary dl div {
    flex-direction: column;
    gap: 0;
  }

  .case-summary dd {
    text-align: left;
  }
}
