:root {
  --teal-950: #103f42;
  --teal-800: #155c59;
  --teal-700: #177b74;
  --aqua: #38c3b3;
  --teal-100: #dff7f3;
  --teal-50: #f1fbf9;
  --yellow: #ffab11;
  --yellow-soft: #fff1d4;
  --ink: #193032;
  --muted: #647477;
  --line: #dce6e4;
  --paper: #ffffff;
  --bg: #f5f8f7;
  --danger: #b9473e;
  --shadow: 0 24px 70px rgba(7, 63, 66, 0.12);
}

* { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-behavior: smooth; }
body { margin: 0; padding: 0; overflow-x: hidden; font-family: "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--bg); }
main { margin: 0; padding: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.hero { padding: 0 24px 50px; text-align: center; background: radial-gradient(circle at 80% -20%, #c9f2eb 0, transparent 36%), radial-gradient(circle at 8% 15%, #fff0d0 0, transparent 24%), linear-gradient(180deg, white 0%, #f5faf9 100%); }
.eyebrow { display: inline-flex; padding: 7px 12px; color: var(--teal-700); background: var(--teal-100); border-radius: 99px; font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.hero h1 { max-width: 810px; margin: 18px auto 14px; font: 800 clamp(38px, 5vw, 62px)/1.08 "Segoe UI", Arial, sans-serif; letter-spacing: -.045em; color: var(--teal-950); }
.hero p { max-width: 680px; margin: 0 auto; font-size: 18px; line-height: 1.6; color: var(--muted); }
.trust-row { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin-top: 26px; color: #526568; font-size: 14px; }
.trust-row b { color: var(--teal-700); }

.tool-shell { width: min(1180px, calc(100% - 32px)); min-height: 720px; margin: 0 auto 70px; display: grid; grid-template-columns: 310px 1fr; background: var(--paper); border: 1px solid #dce8e6; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.step-rail { padding: 36px 30px; display: flex; flex-direction: column; background: var(--teal-950); color: white; }
.rail-title { margin-bottom: 26px; color: #9fd0cb; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.step-rail ol { padding: 0; margin: 0; list-style: none; }
.step-rail li { position: relative; min-height: 78px; display: grid; grid-template-columns: 38px 1fr; gap: 14px; color: #88aaa9; }
.step-rail li:not(:last-child)::after { content: ""; position: absolute; top: 35px; bottom: 2px; left: 17px; width: 1px; background: #34676a; }
.step-rail li > span { z-index: 1; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #437476; border-radius: 50%; background: var(--teal-950); font-weight: 700; }
.step-rail li b { display: block; padding-top: 2px; color: inherit; font-size: 15px; }
.step-rail li small { display: block; margin-top: 4px; font-size: 12px; color: inherit; }
.step-rail li.active, .step-rail li.complete { color: white; }
.step-rail li.active > span { color: var(--teal-950); border-color: var(--yellow); background: var(--yellow); box-shadow: 0 0 0 5px rgba(255, 171, 17, .15); }
.step-rail li.complete > span { color: var(--teal-950); border-color: var(--aqua); background: var(--aqua); }
.rail-note { margin-top: auto; padding: 16px; display: flex; align-items: flex-start; gap: 10px; border-radius: 13px; background: rgba(255,255,255,.07); color: #b7d1cf; font-size: 12px; line-height: 1.45; }
.rail-note svg { width: 23px; flex: 0 0 auto; stroke: var(--yellow); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-note b { display: block; margin-bottom: 2px; color: white; font-size: 13px; }

.form-panel { padding: 42px 52px 34px; }
.form-step { display: none; padding: 0; margin: 0; border: 0; }
.form-step.active { display: block; animation: fade .28s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } }
legend, .result-top h2 { padding: 0; font: 800 29px/1.2 "Segoe UI", Arial, sans-serif; letter-spacing: -.025em; color: var(--teal-950); }
.step-intro { margin: 8px 0 28px; color: var(--muted); line-height: 1.55; }
.field-grid { display: grid; gap: 22px; margin-bottom: 24px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
label { font-size: 14px; font-weight: 700; color: #2d4548; }
label > span, .question-label b, .consent b { color: var(--danger); }
input[type="text"], input[type="number"], input[type="email"], input[type="tel"], select, input[name="postcode"], textarea { width: 100%; margin-top: 8px; padding: 0 14px; color: var(--ink); background: white; border: 1px solid #cbd9d7; border-radius: 9px; outline: none; transition: .18s; }
input[type="text"], input[type="number"], input[type="email"], input[type="tel"], select, input[name="postcode"] { height: 50px; }
textarea { padding-top: 12px; padding-bottom: 12px; resize: vertical; line-height: 1.45; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #587174 50%), linear-gradient(135deg, #587174 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(12,108,105,.1); }
.invalid input, .invalid select, .invalid textarea { border-color: var(--danger); }
.hint { display: block; margin-top: 7px; color: #7b8c8f; font-size: 12px; font-weight: 400; }
.error, .group-error { display: none; margin-top: 7px; color: var(--danger); font-size: 12px; font-weight: 600; }
.invalid .error, .group-error.visible { display: block; }
.question-block { margin: 4px 0 26px; }
.question-label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice, .level { position: relative; cursor: pointer; }
.choice input, .level input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { min-height: 84px; height: 100%; padding: 15px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #d2dfdd; border-radius: 11px; transition: .16s; }
.choice strong { color: var(--ink); font-size: 14px; }
.choice small { margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.35; }
.choice input:checked + span { border-color: var(--teal-700); background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--teal-700); }
.choice input:focus-visible + span, .level input:focus-visible + span { outline: 3px solid rgba(12,108,105,.25); outline-offset: 2px; }
.usage-switch { width: fit-content; margin-bottom: 18px; padding: 4px; display: flex; background: #edf3f2; border-radius: 9px; }
.usage-switch button { padding: 8px 14px; border: 0; border-radius: 7px; color: #607477; background: transparent; font-size: 13px; font-weight: 700; }
.usage-switch button.active { color: var(--teal-950); background: white; box-shadow: 0 2px 8px rgba(7,63,66,.1); }
.hidden { display: none !important; }
.input-suffix, .input-prefix { position: relative; }
.input-suffix input { padding-right: 84px; }
.input-prefix input { padding-left: 32px; }
.input-suffix em, .input-prefix em { position: absolute; top: 24px; color: #6e8082; font-size: 13px; font-style: normal; font-weight: 600; }
.input-suffix em { right: 14px; }
.input-prefix em { left: 14px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { padding: 13px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid #d4e0de; border-radius: 9px; cursor: pointer; }
.check input, .consent input { width: 18px; height: 18px; accent-color: var(--teal-700); }
.check span { color: var(--ink); font-size: 13px; }
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.level > span { min-height: 145px; padding: 16px; display: flex; flex-direction: column; border: 1px solid #d2dfdd; border-radius: 12px; transition: .16s; }
.level i { width: fit-content; margin-bottom: 12px; padding: 4px 7px; color: var(--teal-700); background: var(--teal-100); border-radius: 4px; font-size: 10px; font-style: normal; letter-spacing: .08em; }
.level.featured i { color: #715700; background: var(--yellow-soft); }
.level strong { color: var(--teal-950); font: 700 16px "Segoe UI", Arial, sans-serif; }
.level small { margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.level input:checked + span { border-color: var(--teal-700); background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--teal-700); }
.consent { margin-top: 28px; padding: 15px; display: flex; gap: 11px; align-items: flex-start; background: #f5f8f7; border-radius: 10px; line-height: 1.45; }
.consent input { flex: 0 0 auto; margin-top: 1px; }
.consent span { color: #526568; font-size: 13px; font-weight: 500; }
.form-actions { margin-top: 34px; padding-top: 24px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
button.primary, button.secondary, button.back { min-height: 48px; padding: 0 20px; border-radius: 9px; font-weight: 800; }
button.primary { color: white; background: var(--teal-700); border: 1px solid var(--teal-700); box-shadow: 0 8px 18px rgba(23,123,116,.2); }
button.primary:hover { background: var(--teal-950); }
button.secondary { color: var(--teal-700); background: white; border: 1px solid var(--teal-700); }
button.back { color: #607477; background: transparent; border: 1px solid transparent; }
button.back:disabled { visibility: hidden; }
.mobile-progress { display: none; }

.result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.result-kicker { display: block; margin-bottom: 6px; color: var(--teal-700); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-top h2 { margin: 0; }
.fit-badge { flex: 0 0 auto; padding: 7px 9px; color: #176546; background: #e4f5ec; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.fit-badge.review { color: #795d00; background: var(--yellow-soft); }
.recommend-card { margin-top: 24px; padding: 22px 24px; color: white; background: var(--teal-950); border-radius: 14px; }
.recommend-card > span { color: #9bc8c4; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.recommend-card h3 { margin: 7px 0 6px; color: white; font: 800 25px "Segoe UI", Arial, sans-serif; }
.recommend-card p { margin: 0; color: #b8d2d0; font-size: 13px; line-height: 1.5; }
.recommend-meta { margin-top: 18px; padding-top: 15px; display: flex; gap: 40px; border-top: 1px solid #2b696b; }
.recommend-meta small { display: block; margin-bottom: 3px; color: #87b6b3; font-size: 10px; text-transform: uppercase; }
.recommend-meta b { font-size: 13px; }
.result-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result-card { padding: 18px 19px; border: 1px solid var(--line); border-radius: 12px; }
.result-card.attention { background: #fffcf2; border-color: #eadfac; }
.result-card h3 { margin: 0 0 11px; font: 700 15px "Segoe UI", Arial, sans-serif; color: var(--teal-950); }
.result-card ul { padding: 0; margin: 0; list-style: none; }
.result-card li { position: relative; margin-top: 8px; padding-left: 18px; color: #5b6e70; font-size: 12px; line-height: 1.45; }
.result-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-700); font-weight: 800; }
.attention li::before { content: "•"; color: #b48b08; }
.disclaimer { margin-top: 16px; padding: 15px 17px; background: #f3f6f5; border-radius: 10px; }
.disclaimer b { color: #41585a; font-size: 12px; }
.disclaimer p { margin: 4px 0 0; color: #6c7d7f; font-size: 11px; line-height: 1.5; }
.contact-card { margin-top: 20px; padding: 24px; background: linear-gradient(145deg, #f2fbf9 0%, #fffaf0 100%); border: 1px solid #cfe7e3; border-radius: 14px; }
.contact-heading > span { color: var(--teal-700); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.contact-heading h3 { margin: 5px 0 6px; color: var(--teal-950); font: 800 21px/1.25 "Segoe UI", Arial, sans-serif; }
.contact-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.request-choice { margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.request-choice label { position: relative; cursor: pointer; }
.request-choice input { position: absolute; opacity: 0; pointer-events: none; }
.request-choice label > span { min-height: 72px; padding: 13px 15px; display: flex; flex-direction: column; justify-content: center; background: white; border: 1px solid #d2dfdd; border-radius: 10px; transition: .16s; }
.request-choice strong { color: var(--ink); font-size: 13px; }
.request-choice small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.request-choice input:checked + span { background: var(--teal-50); border-color: var(--teal-700); box-shadow: inset 0 0 0 1px var(--teal-700); }
.request-choice input:focus-visible + span { outline: 3px solid rgba(23,123,116,.2); outline-offset: 2px; }
.contact-fields { margin-bottom: 18px; }
.notes-label { display: block; margin-bottom: 18px; }
.submit-request { width: 100%; }
.privacy-note { margin: 10px 0 0; color: #687c7e; font-size: 11px; line-height: 1.45; text-align: center; }
.privacy-note b { color: #435a5c; }
.result-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.text-button { padding: 10px; color: #687b7d; background: transparent; border: 0; text-decoration: underline; }
.action-note { margin: 10px 0 0; color: #7b8c8f; font-size: 11px; }

.assurance { width: min(1080px, calc(100% - 40px)); margin: 0 auto 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.assurance span { color: var(--yellow); font: 800 13px "Segoe UI", Arial, sans-serif; }
.assurance h2 { margin: 8px 0; color: var(--teal-950); font: 700 18px "Segoe UI", Arial, sans-serif; }
.assurance p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 5; padding: 12px 16px; color: white; background: var(--teal-950); border-radius: 9px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .tool-shell { grid-template-columns: minmax(0, 1fr); }
  .tool-shell > *, .form-panel, #quoteForm, .form-step { min-width: 0; }
  .step-rail { display: none; }
  .mobile-progress { display: flex; gap: 12px; align-items: center; margin-bottom: 26px; color: var(--teal-700); font-size: 12px; font-weight: 800; }
  .mobile-progress > div { height: 5px; flex: 1; overflow: hidden; background: #e5eeec; border-radius: 99px; }
  .mobile-progress i { display: block; height: 100%; width: 25%; background: var(--yellow); transition: width .2s; }
  .assurance { gap: 22px; }
}

@media (max-width: 640px) {
  html, body, main { width: 100%; max-width: 100%; min-width: 0; overflow-x: hidden; }
  main > *, .hero, .tool-shell, .form-panel, #quoteForm, .form-step, .assurance,
  .field-grid, .choice-grid, .level-grid, .result-grid, .check-grid, .request-choice,
  .ev-options, .ev-result, .contact-card, .result-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .field-grid > *, .choice-grid > *, .level-grid > *, .result-grid > *,
  .check-grid > *, .request-choice > * { min-width: 0; max-width: 100%; }
  .hero { padding: 0 20px 34px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .trust-row { gap: 10px 18px; margin-top: 20px; font-size: 12px; }
  .tool-shell { margin: 0 0 50px; grid-template-columns: minmax(0, 1fr); border-radius: 15px; }
  .form-panel { padding: 25px 18px 22px; }
  legend, .result-top h2 { font-size: 24px; }
  .field-grid.two, .choice-grid, .level-grid, .result-grid, .check-grid { grid-template-columns: 1fr; }
  .field-grid { gap: 17px; }
  .choice > span { min-height: 70px; }
  .level > span { min-height: 105px; }
  .form-actions { margin-top: 26px; }
  #nextButton { flex: 1; max-width: 190px; }
  .result-top { display: block; }
  .fit-badge { display: inline-block; margin-top: 12px; }
  .recommend-card h3 { font-size: 21px; }
  .recommend-meta { gap: 22px; }
  .result-actions button { width: 100%; }
  .contact-card { padding: 19px 15px; }
  .request-choice { grid-template-columns: 1fr; }
  .assurance { margin: 0 0 55px; padding: 0 20px; grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.ev-options { margin: 6px 0 28px; padding: 23px; border: 1px solid #acd5d0; border-top: 4px solid var(--aqua); border-radius: 12px; background: var(--teal-50); }
.ev-heading > span, .ev-result-heading > span { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--teal-700); }
.ev-heading h2, .ev-result-heading h3 { margin: 6px 0 8px; font-size: 21px; line-height: 1.3; color: var(--teal-950); }
.ev-heading p { margin: 0 0 20px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.ev-options .hint { font-size: 13px; line-height: 1.5; color: #536f71; }
.ev-options select { padding-right: 31px; font-size: 14px; }
.ev-assumptions { border-top: 1px solid #c9e1dd; padding-top: 14px; margin-top: 4px; }
.ev-assumptions summary, .ev-result-method summary { font-size: 14px; font-weight: 700; cursor: pointer; color: var(--teal-700); }
.ev-assumptions .field-grid { margin: 18px 0 12px; }
.ev-assumptions > p, .ev-result-method p { font-size: 13px; line-height: 1.6; color: #536f71; }
.ev-live { margin-top: 18px; padding: 15px; color: white; background: var(--teal-950); border-radius: 8px; }
.ev-live > strong { display: block; font-size: 16px; }
.ev-live > div { display: flex; flex-wrap: wrap; gap: 10px 25px; margin: 12px 0 8px; }
.ev-live span { color: #b7d7d2; font-size: 13px; }
.ev-live b { display: block; color: var(--yellow); font-size: 20px; }
.ev-live small { display: block; font-size: 13px; color: #c0dcd7; line-height: 1.5; }
.ev-footnote { margin: 13px 0 0; font-size: 13px; line-height: 1.55; color: #536f71; }
.ev-footnote a { color: var(--teal-700); text-underline-offset: 3px; }
.ev-result { margin-top: 18px; padding: 22px; border: 1px solid #a9d5cc; border-top: 4px solid var(--yellow); border-radius: 12px; background: var(--teal-50); }
.ev-result-plan { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.ev-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.ev-metrics > div { padding: 12px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.ev-metrics small { display: block; color: #536f71; font-size: 13px; line-height: 1.4; margin-bottom: 9px; }
.ev-metrics strong { font-size: 23px; color: var(--teal-950); display: block; }
.ev-metrics strong span { display: block; font-size: 13px; font-weight: 500; }
.ev-comparison { border-top: 1px solid #c9e1dd; border-bottom: 1px solid #c9e1dd; padding: 12px 0; }
.ev-comparison p { margin: 0; font-size: 14px; }
.ev-comparison p + p { margin-top: 10px; }
.ev-comparison span { display: block; font-size: 13px; color: #536f71; }
.ev-comparison b { display: block; color: var(--teal-950); }
.ev-result-detail { font-size: 14px; color: #536f71; line-height: 1.6; margin: 16px 0; }
.ev-result-method p { margin: 10px 0 0; }
@media (max-width:640px) { .ev-options,.ev-result { padding: 18px 14px; }.ev-metrics { grid-template-columns:1fr; gap:8px; }.ev-metrics > div { display:flex; gap:12px; align-items:center; justify-content:space-between; }.ev-metrics small { margin:0; max-width:60%; }.ev-metrics strong { font-size:22px; text-align:right; }.ev-heading h2 { font-size:20px; } }
