/*
 * Customer application form (/apply): hd-ui scaled up for customers, with AWO blue as the only accent.
 * The page root is <div class="hd apply">, which keeps styles.css's legacy element rules out, and every
 * class here starts with ap- so nothing collides with Bootstrap. Greys and borders reuse the --hd-* tokens.
 */

body:has(.apply) { background: #f4f4f5; }

.hd.apply {
  --ap-blue: #0080c2;
  --ap-blue-hover: #0071ab;
  --ap-blue-ink: #00669b;
  --ap-blue-bg: #f0f7fc;
  --ap-blue-line: #b9dcf0;
  --ap-ring: 0 0 0 3px rgba(0, 128, 194, 0.15);
  max-width: none;
  padding: 0;
  font-size: 14.5px;
  line-height: 1.55;
}
.apply :where(input[type=checkbox], input[type=radio]) { accent-color: var(--ap-blue); }
.apply :where(h1, h2, h3, p, ul, ol, dl, dd, fieldset, legend, figure) { margin: 0; }
.apply :where(fieldset) { padding: 0; border: 0; min-width: 0; }
/* Bootstrap floats legends and sizes them like headings */
.apply :where(legend) { float: none; width: auto; padding: 0; font-size: inherit; line-height: inherit; }
.apply :where(img) { max-width: 100%; }
.ap-ic { width: 15px; height: 15px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ap-num { font-variant-numeric: tabular-nums; }

.ap-wrap { max-width: 1040px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Header and trust strip ---------- */

.ap-top { background: #fff; border-bottom: 1px solid var(--hd-border); }
.ap-top .ap-wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ap-top img { height: 34px; display: block; }
.ap-top p { font-size: 13px; color: var(--hd-muted); }
.ap-top p a { color: var(--hd-fg); font-weight: 500; text-decoration: none; white-space: nowrap; }

.ap-trust { background: #fff; border-bottom: 1px solid var(--hd-border); }
.ap-trust .ap-wrap {
  padding-top: 8px; padding-bottom: 8px; display: flex; align-items: center; justify-content: space-between;
  gap: 8px 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--hd-fg-2);
}
.ap-trust-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: inherit; }
.apply a.ap-trust-item { color: inherit; text-decoration: none; }
.apply a.ap-trust-item:hover span { color: var(--hd-fg); text-decoration: underline; }
.ap-trust-item b { font-weight: 600; color: var(--hd-fg); }
.ap-trust-tp img { height: 24px; display: block; }
.ap-short { display: none; }
.ap-gas-safe { height: 26px; width: auto; display: block; flex: none; }
.ap-gas-safe.lg { height: 42px; }

/* ---------- Page head and stepper ---------- */

.ap-page { padding-top: 28px; padding-bottom: 96px; }
.ap-crumbs { font-size: 12.5px; color: var(--hd-muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.ap-crumbs .sep { color: var(--hd-border-strong); }
.ap-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--hd-fg); }
.ap-sub { font-size: 14px; color: var(--hd-muted); margin-top: 6px; max-width: 640px; }

.ap-steps { list-style: none; display: flex; align-items: center; gap: 10px; margin: 24px 0 20px; padding: 0; }
.ap-steps .step { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.ap-steps .step:last-child { flex: 0 0 auto; }
.ap-steps .step::after { content: ""; flex: 1; height: 1px; min-width: 12px; background: var(--hd-border); }
.ap-steps .step:last-child::after { display: none; }
.ap-steps .step.completed::after { background: var(--ap-blue-line); }
.ap-step-btn {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; margin: 0;
  font: 500 13px/1.3 var(--hd-font); color: var(--hd-faint); cursor: default; white-space: nowrap;
}
.ap-step-n {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 11.5px; font-weight: 600; background: var(--hd-sel); color: var(--hd-muted);
}
.ap-step-n .ap-ic { width: 12px; height: 12px; stroke-width: 2.8; display: none; }
.ap-steps .step.active .ap-step-btn { color: var(--hd-fg); }
.ap-steps .step.active .ap-step-n { background: var(--ap-blue); color: #fff; }
.ap-steps .step.completed .ap-step-btn { color: var(--hd-fg-2); cursor: pointer; }
.ap-steps .step.completed .ap-step-btn:hover { color: var(--hd-fg); }
.ap-steps .step.completed .ap-step-n { background: var(--ap-blue-bg); color: var(--ap-blue-ink); }
.ap-steps .step.completed .ap-step-n span { display: none; }
.ap-steps .step.completed .ap-step-n .ap-ic { display: block; }

/* Narrow screens: "Step 3 of 4 · Boiler information" and four bars instead of the numbered stepper */
.ap-steps-m { display: none; }
.ap-steps-m-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; margin-bottom: 8px; }
.ap-steps-m-top b { font-weight: 600; }
.ap-steps-m-top > span { color: var(--hd-muted); }
.ap-steps-m-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ap-steps-m-bars i { height: 4px; border-radius: 99px; background: var(--hd-border); }
.ap-steps-m-bars i.on { background: var(--ap-blue); }

/* ---------- Layout ---------- */

.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.ap-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ap-main > form { display: contents; }
.ap-aside { position: sticky; top: 20px; }
.form-step { display: none; flex-direction: column; gap: 16px; }
.form-step.active { display: flex; }

/* ---------- Cards ---------- */

.ap-card {
  background: var(--hd-surface); border: 1px solid var(--hd-border); border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-sm); min-width: 0;
}
.ap-card-top {
  padding: 14px 20px; border-bottom: 1px solid var(--hd-border); background: #fafafa;
  border-radius: var(--hd-radius-lg) var(--hd-radius-lg) 0 0; display: flex; align-items: center; gap: 12px;
}
.ap-card-top > div { flex: 1; min-width: 0; }
.ap-card-top.tint { background: var(--ap-blue-bg); border-bottom-color: var(--ap-blue-line); }
.ap-card-top.tint .ap-card-title { color: var(--ap-blue-ink); }
/* Slot for custom section icons if they're supplied later: <span class="ap-chip"><img …></span> before the title */
.ap-chip {
  width: 32px; height: 32px; border-radius: 8px; background: var(--ap-blue-bg); flex: none;
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--ap-blue-line);
}
.ap-card-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; color: var(--hd-fg); }
.ap-card-hint { font-size: 13px; color: var(--hd-faint); margin-top: 2px; }
.ap-card-body { padding: 20px; }
.ap-card-body + .ap-card-body { border-top: 1px solid var(--hd-border-soft); }
.ap-card-foot { padding: 12px 20px; border-top: 1px solid var(--hd-border-soft); font-size: 13px; color: var(--hd-muted); }
.apply .ap-card-foot a { color: var(--hd-fg); font-weight: 500; text-decoration: none; white-space: nowrap; }
.ap-dd-logo { height: 26px; opacity: 0.9; flex: none; }

/* ---------- Fields ---------- */

.ap-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ap-form-grid.ap-name { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); }
.ap-form-grid + .ap-form-grid { margin-top: 16px; }
.ap-span-all { grid-column: 1 / -1; }
.ap-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ap-field > label, .ap-field > legend, .ap-label {
  font-size: 13px; font-weight: 500; color: var(--hd-fg-2); line-height: 1.4; margin: 0; padding: 0;
}
/* A legend sits outside the fieldset's flex layout, so the gap doesn't reach it */
.ap-field > legend { margin-bottom: 8px; }
.ap-field > legend + .ap-hint { margin-top: -4px; }
.ap-opt { color: var(--hd-faint); font-weight: 400; }
.ap-stack { display: grid; gap: 24px; }
.ap-control {
  width: 100%; height: 40px; padding: 0 12px; margin: 0; font: inherit; font-size: 14.5px; color: var(--hd-fg);
  border: 1px solid var(--hd-border); border-radius: var(--hd-radius); background: var(--hd-surface);
  box-shadow: var(--hd-shadow-xs); outline: none; transition: border-color 0.12s, box-shadow 0.12s;
}
.ap-control:hover { border-color: var(--hd-border-strong); }
.ap-control:focus { border-color: var(--ap-blue); box-shadow: var(--ap-ring); }
.ap-control::placeholder { color: #a1a1aa; }
.ap-control.ap-upper { text-transform: uppercase; }
.ap-control.ap-upper::placeholder { text-transform: none; }
select.ap-control {
  -webkit-appearance: none; appearance: none; padding-right: 30px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.ap-w-sm { max-width: 260px; }
.ap-inline { display: flex; gap: 8px; }
.ap-inline .ap-control { flex: 1; min-width: 0; }
.ap-hint { font-size: 12.5px; color: var(--hd-faint); line-height: 1.5; }
.ap-err { font-size: 12.5px; color: var(--hd-red); }
.ap-err:empty { display: none; }

/* ---------- Buttons ---------- */

.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; margin: 0;
  font: 500 14px/1 var(--hd-font); white-space: nowrap; border: 1px solid var(--hd-border); border-radius: var(--hd-radius);
  background: var(--hd-surface); color: var(--hd-fg); cursor: pointer; box-shadow: var(--hd-shadow-xs); text-decoration: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.ap-btn:hover { background: var(--hd-hover); border-color: var(--hd-border-strong); color: var(--hd-fg); }
.ap-btn:focus-visible { outline: 2px solid var(--ap-blue); outline-offset: 2px; }
.ap-btn.primary { background: var(--ap-blue); border-color: var(--ap-blue); color: #fff; }
.ap-btn.primary:hover { background: var(--ap-blue-hover); border-color: var(--ap-blue-hover); }
.ap-btn.sm { height: 26px; padding: 0 9px; font-size: 12px; }
.ap-btn .ap-ic { width: 14px; height: 14px; }
.ap-btn.busy { opacity: 0.7; pointer-events: none; }
/* Next/Submit stay grey until the step is complete */
.ap-btn.primary:disabled { background: #e4e4e7; border-color: #e4e4e7; color: #71717a; box-shadow: none; cursor: not-allowed; }
.ap-link {
  background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--hd-fg-2); cursor: pointer;
  border-bottom: 1px dotted var(--hd-faint); border-radius: 0; line-height: 1.4;
}
.ap-link:hover { color: var(--hd-fg); border-bottom-color: var(--hd-fg); }
.ap-nav { display: flex; align-items: center; gap: 8px; }
.ap-grow { flex: 1; }
.ap-saved { font-size: 12.5px; color: var(--hd-faint); display: inline-flex; align-items: center; gap: 5px; opacity: 0; transition: opacity 0.3s; }
.ap-saved.show { opacity: 1; }
.ap-saved .ap-ic { width: 13px; height: 13px; color: var(--hd-green); }

/* Choice buttons: radios that look like buttons */
.ap-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-choice { position: relative; display: inline-flex; margin: 0; }
.ap-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ap-choice span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius); background: #fff; box-shadow: var(--hd-shadow-xs); font-size: 14px; font-weight: 500;
  color: var(--hd-fg-2); cursor: pointer; transition: border-color 0.12s, background 0.12s, color 0.12s, box-shadow 0.12s;
}
.ap-choice span:hover { border-color: var(--hd-border-strong); color: var(--hd-fg); }
.ap-choice input:checked + span { border-color: var(--ap-blue); background: var(--ap-blue-bg); color: var(--ap-blue-ink); box-shadow: inset 0 0 0 1px var(--ap-blue); }
.ap-choice input:focus-visible + span { box-shadow: inset 0 0 0 1px var(--ap-blue), var(--ap-ring); }

/* ---------- Notes and tags ---------- */

.ap-note {
  display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--hd-border); border-radius: var(--hd-radius);
  background: var(--hd-hover); font-size: 13px; line-height: 1.5; color: var(--hd-fg-2);
}
.ap-note > .ap-ic { margin-top: 2px; color: var(--hd-faint); }
.ap-note strong { color: var(--hd-fg); font-weight: 600; }
.ap-note.ok { background: var(--hd-green-bg); border-color: #a7f3d0; color: #065f46; }
.ap-note.ok > .ap-ic, .ap-note.ok strong { color: #065f46; }
.ap-note.bad { background: var(--hd-red-bg); border-color: #fecaca; color: var(--hd-red); }
.ap-note.bad > .ap-ic, .ap-note.bad strong { color: var(--hd-red); }
.apply .ap-note a { color: inherit; }
.ap-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; line-height: 19px;
  padding: 0 7px; border-radius: 5px; background: var(--hd-sel); color: var(--hd-fg-2); white-space: nowrap;
}
.ap-tag.ok { background: var(--hd-green-bg); color: var(--hd-green); }

/* ---------- Step 1 ---------- */

.ap-result:not(:empty) { margin-top: 12px; }
.ap-lookup { margin-top: 16px; }
.ap-lookup-status { font-size: 13px; color: var(--hd-muted); }
#addressFields { margin-top: 16px; }
.ap-addr { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 12px; border: 1px solid var(--hd-border); border-radius: var(--hd-radius); box-shadow: var(--hd-shadow-xs); }
.ap-addr .ap-grow { min-width: 0; overflow-wrap: anywhere; }
.ap-addr small { display: block; font-size: 12px; color: var(--hd-faint); }

/* ---------- Disclosures and FAQs ---------- */

.ap-disc > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer; font-weight: 500; font-size: 14px; color: var(--hd-fg);
}
.ap-disc > summary::-webkit-details-marker { display: none; }
.ap-chev { width: 24px; height: 24px; border-radius: var(--hd-radius); display: grid; place-items: center; color: var(--hd-faint); flex: none; }
.ap-disc > summary:hover .ap-chev { background: var(--hd-sel); color: var(--hd-fg); }
.ap-chev .ap-ic { transition: transform 0.15s; }
.ap-disc[open] > summary .ap-chev .ap-ic { transform: rotate(180deg); }
.ap-disc-body { padding-top: 12px; font-size: 14px; color: var(--hd-fg-2); }
.ap-disc-quiet > summary { font-size: 13px; font-weight: 400; color: var(--hd-muted); }
.ap-faq { margin-top: 52px; align-self: stretch; }
.ap-faq-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hd-faint); margin-bottom: 4px; }
.ap-faq .ap-disc { padding: 10px 0; border-top: 1px solid var(--hd-border); }
.ap-faq .ap-disc > summary { font-size: 13.5px; color: var(--hd-fg-2); }
.ap-faq .ap-disc-body { font-size: 13.5px; padding-top: 6px; color: var(--hd-muted); }
.ap-faq .ap-chev { width: 20px; height: 20px; }

/* ---------- Packages ---------- */

.ap-pkgs { border: 1px solid var(--hd-border); border-radius: var(--hd-radius-lg); box-shadow: var(--hd-shadow-xs); }
.ap-pkgs-status { padding: 24px 16px; text-align: center; font-size: 13px; color: var(--hd-muted); }
.ap-pkg {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; padding: 16px; margin: 0;
  cursor: pointer; border-top: 1px solid var(--hd-border); transition: background 0.12s; position: relative;
}
.ap-pkg:first-child { border-top: 0; border-radius: 9px 9px 0 0; }
.ap-pkg:last-child { border-radius: 0 0 9px 9px; }
.ap-pkg:only-child { border-radius: 9px; }
.ap-pkg:hover { background: var(--hd-hover); }
.ap-pkg input { width: 16px; height: 16px; margin: 3px 0 0; cursor: pointer; }
.ap-pkg.selected { background: var(--ap-blue-bg); box-shadow: inset 0 0 0 1px var(--ap-blue); }
.ap-pkg.selected + .ap-pkg { border-top-color: transparent; }
.ap-pkg-main { min-width: 0; }
.ap-pkg-name { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--hd-fg); }
.ap-pkg-desc { display: block; font-size: 13px; color: var(--hd-muted); margin-top: 1px; }
.ap-pkg-inc { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--hd-fg-2); }
.ap-pkg-inc li { display: inline-flex; align-items: center; gap: 5px; }
.ap-pkg-inc .ap-ic { width: 13px; height: 13px; color: var(--hd-green); stroke-width: 2.6; }
.ap-pkg-note { display: block; font-size: 12px; color: var(--hd-faint); margin-top: 8px; }
.ap-pkg-price { text-align: right; white-space: nowrap; }
.ap-pkg-price b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; color: var(--hd-fg); }
.ap-pkg-price small { font-size: 12px; color: var(--hd-faint); }
.ap-pkg-price .ap-from { display: block; font-size: 11.5px; color: var(--hd-faint); }
.ap-pkg-price .ap-tag { margin-top: 6px; }
.ap-pkg-price .ap-calc { font-size: 12px; color: var(--hd-faint); }

/* Compare table */
.ap-compare { margin-top: 14px; }
.ap-compare > summary { font-size: 13.5px; }
.ap-tbl { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; }
.ap-tbl col.c { width: 15%; }
.ap-tbl thead th { font-size: 12px; font-weight: 500; color: var(--hd-muted); text-align: center; padding: 8px 6px; border-bottom: 1px solid var(--hd-border); }
.ap-tbl thead th:first-child { text-align: left; padding-left: 0; }
.ap-tbl td { padding: 8px 6px; border-bottom: 1px solid var(--hd-border-soft); text-align: center; color: var(--hd-fg); }
.ap-tbl td:first-child { text-align: left; padding-left: 0; }
.ap-tbl td.ap-num { white-space: nowrap; }
.ap-tbl tr.cat td { font-weight: 600; padding-top: 14px; font-size: 12.5px; color: var(--hd-fg-2); }
.apply .ap-tbl tr.cat a { font-weight: 400; color: var(--hd-faint); margin-left: 6px; font-size: 12px; }
.ap-tbl td.y .ap-ic { color: var(--hd-green); width: 15px; height: 15px; stroke-width: 2.6; vertical-align: middle; }
.ap-tbl td.n { color: var(--hd-border-strong); }
.ap-tbl td.strong { font-weight: 600; color: var(--hd-green); }
.ap-tbl tr.total td { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--hd-border); }
.ap-tbl.sel-1 :is(td, th):nth-child(2), .ap-tbl.sel-2 :is(td, th):nth-child(3), .ap-tbl.sel-3 :is(td, th):nth-child(4),
.ap-tbl.sel-4 :is(td, th):nth-child(5) { background: var(--ap-blue-bg); }
.ap-tbl tr.cat td[colspan] { background: none; }

/* ---------- Confirmations ---------- */

.ap-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--hd-fg); line-height: 1.5; margin: 0; }
.ap-check input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; cursor: pointer; }
.ap-check-more { margin: 10px 0 0 26px; font-size: 13.5px; color: var(--hd-fg-2); }
.ap-check-more ul { margin: 6px 0 0; padding-left: 18px; }
.ap-check-more li { margin: 4px 0; }
.ap-check-more strong { color: var(--hd-fg); font-weight: 600; }
.ap-check + .ap-err { margin: 8px 0 0 26px; }
.ap-check-more + .ap-err { margin: 8px 0 0 26px; }
.ap-terms { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.apply .ap-terms a {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius); box-shadow: var(--hd-shadow-xs); font-size: 12.5px; font-weight: 500; text-decoration: none; color: var(--hd-fg-2);
}
.apply .ap-terms a:hover { border-color: var(--hd-border-strong); color: var(--hd-fg); }
.ap-terms .ap-ic { width: 13px; height: 13px; color: var(--hd-faint); }

/* ---------- Application summary ---------- */

.ap-dl { margin: 0; display: grid; }
.ap-dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hd-border-soft); align-items: baseline; }
.ap-dl > div:first-child { padding-top: 0; }
.ap-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ap-dl dt { font-size: 13px; font-weight: 500; color: var(--hd-muted); }
.ap-dl dd { font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.ap-dl dd > span { display: block; }
.ap-small-print { font-size: 13.5px; color: var(--hd-fg-2); display: grid; gap: 10px; }
.ap-small-print strong { color: var(--hd-fg); }

/* ---------- Your cover panel ---------- */

.ap-s-label { font-size: 12px; font-weight: 500; color: var(--hd-muted); }
.ap-s-price { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.ap-s-price b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--hd-fg); }
.ap-s-price small { font-size: 13px; color: var(--hd-faint); }
.ap-s-lines { margin-top: 12px; font-size: 13px; display: grid; gap: 4px; }
.ap-s-lines div { display: flex; justify-content: space-between; gap: 12px; color: var(--hd-muted); }
.ap-s-lines .ap-num { white-space: nowrap; }
.ap-s-lines .total { color: var(--hd-fg); font-weight: 600; border-top: 1px solid var(--hd-border-soft); padding-top: 6px; margin-top: 2px; }
.ap-s-hint { margin-top: 8px; }
.ap-s-dl { margin: 0; display: grid; gap: 10px; }
.ap-s-dl dt { font-size: 12px; font-weight: 500; color: var(--hd-muted); }
.ap-s-dl dd { margin: 1px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.ap-inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; color: var(--hd-fg-2); }
.ap-inc li { display: flex; gap: 8px; align-items: flex-start; }
.ap-inc .ap-ic { margin-top: 3px; color: var(--hd-green); stroke-width: 2.6; width: 14px; height: 14px; }
.ap-gift { padding: 12px; border: 1px solid var(--ap-blue-line); background: var(--ap-blue-bg); border-radius: 8px; }
.ap-gift strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--hd-fg); }
.ap-gift > span { display: block; font-size: 12.5px; color: var(--hd-fg-2); line-height: 1.45; }
.ap-gift-logos { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ap-gift-logos li {
  height: 42px; background: #fff; border: 1px solid var(--hd-border); border-radius: 6px;
  display: grid; place-items: center; align-content: center;
}
.ap-gift-logos img { display: block; width: auto; }
/* Heights balance the marks optically: square badges taller, wordmarks shorter */
.ap-gift-amazon, .ap-gift-argos { height: 24px; }
.ap-gift-ikea { height: 18px; }
.ap-gift-asda { height: 14px; }
.ap-gift-tesco { height: 13px; }
.ap-gift-logos .more {
  background: transparent; border-style: dashed; border-color: var(--ap-blue-line);
  color: var(--ap-blue-ink); font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center;
}
.ap-gift-logos .more small { display: block; font-size: 10.5px; font-weight: 500; color: var(--hd-muted); }

/* ---------- You're in good company ---------- */

.ap-company { padding-bottom: 40px; }
.ap-company h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--hd-fg); }
.ap-company > p { font-size: 13.5px; color: var(--hd-muted); margin: 4px 0 14px; max-width: 640px; }
.ap-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hd-border);
  border: 1px solid var(--hd-border); border-radius: var(--hd-radius-lg); overflow: hidden; box-shadow: var(--hd-shadow-sm);
}
.ap-stat { background: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 68px; }
.apply a.ap-stat { color: inherit; text-decoration: none; }
.apply a.ap-stat:hover .ap-stat-l { color: var(--hd-fg); text-decoration: underline; }
.ap-stat-v { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--hd-fg); }
.ap-stat-l { font-size: 12px; color: var(--hd-muted); }
.ap-stat img { height: 36px; display: block; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  /* One column: step card, nav, Your cover, then the FAQs */
  .ap-grid { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .ap-main { display: contents; }
  .form-step.active, .ap-nav { order: 1; }
  .ap-aside { order: 2; position: static; }
  /* Here the FAQs follow Your cover rather than the form, so they keep the tighter gap */
  .ap-faq { order: 3; margin-top: 12px; }
}
@media (max-width: 760px) {
  .ap-steps { display: none; }
  .ap-steps-m { display: block; margin: 18px 0 16px; }
  .ap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ap-wrap { padding-left: 16px; padding-right: 16px; }
  .ap-top p > span { display: none; }
  .ap-trust .ap-wrap { justify-content: center; gap: 6px 16px; }
  .ap-long { display: none; }
  .ap-short { display: inline; }
  .ap-page { padding-top: 20px; padding-bottom: 64px; }
  .ap-title { font-size: 20px; }
  .ap-company { padding-bottom: 32px; }
  .ap-stat { padding: 12px; gap: 10px; }
  .ap-stat-v { font-size: 16px; }
  .ap-card-top, .ap-card-body { padding-left: 16px; padding-right: 16px; }
  .ap-card-top { padding-top: 12px; padding-bottom: 12px; }
  .ap-chip { width: 28px; height: 28px; }
  /* 16px stops iOS zooming into the field */
  .ap-control { font-size: 16px; }
  .ap-form-grid { grid-template-columns: 1fr; }
  .ap-form-grid.ap-name { grid-template-columns: 96px minmax(0, 1fr); }
  .ap-form-grid.ap-name > .ap-field:last-child { grid-column: 1 / -1; }
  .ap-inline { flex-direction: column; }
  .ap-inline .ap-control { flex: none; }
  .ap-w-sm { max-width: none; }
  .ap-dl > div { grid-template-columns: minmax(0, 1fr) auto; }
  .ap-dl dt { grid-column: 1 / -1; }
  .ap-nav .ap-btn.primary { flex: 1; }
  .ap-saved { display: none; }
  .ap-pkg { gap: 4px 10px; padding: 14px; }
  .ap-pkg-price b { font-size: 17px; }
  /* Room for "£40.99" on one line in each package column */
  .ap-tbl { font-size: 12.5px; }
  .ap-tbl col.c { width: 19%; }
  .ap-tbl td, .ap-tbl thead th { padding-left: 4px; padding-right: 4px; }
}
