:root {
  --ink: #090b09;
  --ink-soft: #151a17;
  --paper: #f2f4ef;
  --paper-deep: #e4e9e2;
  --card: #ffffff;
  --muted: #626963;
  --line: #d8ddd7;
  --line-dark: #343b36;
  --green: #34e884;
  --green-deep: #0b9b53;
  --green-soft: #dffaea;
  --danger: #933f38;
  --danger-soft: #fff0ed;
  --shadow: 0 32px 90px rgba(8, 14, 10, .19);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(52, 232, 132, .18), transparent 23rem),
    linear-gradient(90deg, rgba(255, 255, 255, .7) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(145deg, #d7ddd7, #f6f8f4 48%, #dbe1db);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}

button,
input { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2 {
  max-width: 700px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5.8vw, 4.85rem);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .96;
}

.page-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 44px 0 24px;
}

.calculator {
  min-height: 700px;
  overflow: hidden;
  border: 1px solid rgba(9, 11, 9, .17);
  border-radius: 4px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.calculator.result-mode {
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.calculator.result-mode .calculator-header,
.calculator.result-mode .form-panel { display: none; }

.calculator-header {
  min-height: 136px;
  padding: 20px 36px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0, rgba(52, 232, 132, .11), transparent 15rem),
    #070907;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-logo {
  width: 214px;
  height: 86px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.brand-lockup p {
  margin: -3px 0 0 4px;
  color: #aeb7b0;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.steps li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #69716c;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.steps li:not(:last-child)::after {
  content: "";
  height: 1px;
  margin: 0 18px;
  flex: 1 1 auto;
  background: #303632;
}

.step-number {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid #39413c;
  border-radius: 50%;
  font-size: .74rem;
}

.steps li.active { color: #fff; }
.steps li.active .step-number { border-color: var(--green); background: var(--green); color: var(--ink); }
.steps li.done { color: #cdd4cf; }
.steps li.done .step-number { border-color: var(--green); color: var(--green); }

.form-panel { padding: 64px clamp(34px, 7.4vw, 96px) 76px; }

.form-screen {
  max-width: 810px;
  margin: 0 auto;
  display: none;
}

.form-screen.active { display: block; animation: reveal .28s ease both; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .form-screen.active { animation: none; }
}

.kicker {
  margin: 0 0 18px;
  color: var(--green-deep);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.form-intro,
.result-intro {
  max-width: 650px;
  margin: 22px 0 35px;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.65;
}

fieldset { margin: 0; padding: 0; border: 0; }

legend,
label > span:first-child {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .025em;
}

label em {
  margin-left: 5px;
  color: #8a918c;
  font-size: .68rem;
  font-weight: 400;
  font-style: normal;
}

.mode-switch {
  width: min(100%, 490px);
  margin-bottom: 26px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.mode-button {
  min-height: 45px;
  padding: 10px 13px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 800;
  cursor: pointer;
}

.mode-button.active { background: var(--ink); color: #fff; }
.mode-button:focus-visible { outline: 3px solid rgba(52, 232, 132, .4); outline-offset: 2px; }

.measurement-panel { margin-bottom: 22px; }

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: #fafbf9;
  color: var(--ink);
}

input:focus {
  border-color: var(--green-deep);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(52, 232, 132, .18);
}

.unit-input { position: relative; display: block; }
.unit-input input { padding-right: 86px; }
.unit-input b {
  position: absolute;
  top: 20px;
  right: 15px;
  color: #7b837d;
  font-size: .7rem;
}

.unit-input--large input {
  height: 74px;
  padding-right: 74px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.unit-input--large b { top: 27px; font-size: .85rem; }

.quick-sizes { margin-top: 18px; }
.quick-sizes legend { color: var(--muted); font-size: .67rem; }
.quick-sizes > div { display: flex; flex-wrap: wrap; gap: 9px; }
.quick-sizes button {
  min-width: 78px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: .74rem;
  font-weight: 800;
  cursor: pointer;
}
.quick-sizes button:hover,
.quick-sizes button.selected { border-color: var(--green-deep); background: var(--green-soft); }

.area-ready {
  margin-top: 24px;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  background: var(--paper);
  color: var(--muted);
  font-size: .76rem;
}

.area-ready strong { color: var(--ink); font-size: 1.12rem; white-space: nowrap; }

.primary-button {
  width: 100%;
  min-height: 60px;
  margin-top: 30px;
  padding: 15px 20px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.primary-button:hover:not(:disabled) { border-color: var(--green); background: var(--green); color: var(--ink); }
.primary-button:active:not(:disabled) { transform: translateY(1px); }
.primary-button:focus-visible { outline: 3px solid rgba(52, 232, 132, .38); outline-offset: 3px; }
.primary-button:disabled { border-color: #c7ccc8; background: #c7ccc8; cursor: not-allowed; }

.back-button {
  margin: -28px 0 24px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}

.extra-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.extra-option { position: relative; cursor: pointer; }
.extra-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.extra-card {
  min-height: 175px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.extra-card b {
  width: 39px;
  height: 39px;
  margin-bottom: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green-deep);
  font-size: .68rem;
}

.extra-card strong { font-size: .87rem; }
.extra-card small { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.extra-option:hover .extra-card { border-color: #8c958e; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(9, 11, 9, .07); }
.extra-option input:checked + .extra-card { border-color: var(--green-deep); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-deep); }
.extra-option input:checked + .extra-card b { border-color: var(--ink); background: var(--ink); color: var(--green); }
.extra-option input:focus-visible + .extra-card { outline: 3px solid rgba(52, 232, 132, .35); outline-offset: 2px; }

.no-extras {
  margin-top: 14px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}

.no-extras input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-deep); }
.no-extras span { margin: 0; }
.no-extras strong { display: block; font-size: .75rem; }
.no-extras small { display: block; margin-top: 2px; color: var(--muted); font-size: .68rem; }

.locked-estimate {
  margin-bottom: 26px;
  padding: 17px 19px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 13px;
  border: 1px solid #b9e9cc;
  background: var(--green-soft);
}

.lock-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--green);
  font-size: .75rem;
  font-weight: 800;
}

.locked-estimate strong { display: block; font-size: .79rem; }
.locked-estimate small { display: block; margin-top: 2px; color: var(--muted); font-size: .69rem; }

.full-field { display: block; margin-top: 19px; }
.postcode { font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.service-area-note {
  margin: 9px 0 0;
  color: #7b837d;
  font-size: .67rem;
  line-height: 1.5;
}

.consent {
  margin-top: 21px;
  display: grid;
  grid-template-columns: 19px 1fr;
  align-items: start;
  gap: 11px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 400;
  line-height: 1.55;
  cursor: pointer;
}

.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-deep); }
.consent span { margin: 0; color: inherit; font-size: inherit; font-weight: inherit; }

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

.form-notice {
  margin-top: 18px;
  padding: 15px 17px;
  display: none;
  border-left: 3px solid var(--danger);
  background: var(--danger-soft);
  color: #763a34;
  font-size: .74rem;
  line-height: 1.5;
}

.form-notice.show { display: block; }
.form-notice.info { border-left-color: var(--green-deep); background: var(--green-soft); color: #28503a; }
.privacy-note { margin: 11px 0 0; color: #868d88; font-size: .65rem; text-align: center; }

.result {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(345px, .92fr);
  border: 1px solid rgba(9, 11, 9, .16);
  background: #fff;
  box-shadow: var(--shadow);
}

.result.show { display: grid; }

.result-main {
  padding: 66px clamp(30px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-intro { margin-bottom: 26px; }

.headline-price {
  margin-bottom: 16px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.headline-price span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.headline-price strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 7vw, 5.65rem);
  letter-spacing: -.07em;
  line-height: .95;
}

.price-breakdown { margin: 0 0 24px; }
.price-breakdown div {
  padding: 11px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.price-breakdown dt { color: var(--muted); font-size: .73rem; }
.price-breakdown dd { margin: 0; color: var(--ink); font-size: .77rem; font-weight: 800; }

.inclusions {
  margin-bottom: 22px;
  padding: 21px 22px;
  border: 1px solid #bfe8cf;
  background: var(--green-soft);
}

.inclusions h3 {
  margin: 0 0 16px;
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.inclusions ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  list-style: none;
}

.inclusions li { position: relative; padding-left: 21px; color: #314037; font-size: .73rem; }
.inclusions li::before { content: "✓"; position: absolute; left: 0; color: var(--green-deep); font-weight: 900; }

.disclaimer {
  margin: 0;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: #747b76;
  font-size: .67rem;
  line-height: 1.6;
}

.contact-actions {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.contact-actions a {
  min-height: 55px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-decoration: none;
}

.primary-link { background: var(--ink); color: #fff; }
.primary-link:hover { background: var(--green); color: var(--ink); }
.secondary-link { border: 1px solid var(--line); color: var(--ink); }
.secondary-link:hover { border-color: var(--ink); background: var(--paper); }

.result-summary {
  margin: 22px 22px 22px 0;
  padding: 29px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 0, rgba(52, 232, 132, .14), transparent 14rem),
    var(--ink);
}

.summary-brand img {
  width: 170px;
  height: 82px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.summary-brand p {
  margin: 0 0 9px;
  color: #98a19a;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.summary-card {
  padding: 17px 18px;
  border: 1px solid var(--line-dark);
  background: #151a17;
}

.summary-card--highlight { border-color: rgba(52, 232, 132, .46); background: rgba(52, 232, 132, .09); }
.summary-card span { display: block; margin-bottom: 5px; color: #8e9790; font-size: .64rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.summary-card strong { display: block; color: #fff; font-size: .96rem; }
.summary-card--highlight strong { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; letter-spacing: -.03em; }
.summary-card small { display: block; margin-top: 5px; color: #8e9790; font-size: .65rem; line-height: 1.45; }

.next-step {
  margin-top: auto;
  padding: 18px;
  background: var(--green);
  color: var(--ink);
}

.next-step span { display: block; margin-bottom: 5px; font-size: .65rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.next-step p { margin: 0; font-size: .74rem; line-height: 1.55; }

.site-footer {
  padding: 17px 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #5f675f;
  font-size: .66rem;
}
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .page-shell { width: min(100% - 32px, 780px); padding-top: 24px; }
  .calculator-header { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 18px 24px; }
  .brand-logo { width: 170px; height: 78px; }
  .steps strong { display: none; }
  .result { grid-template-columns: 1fr; }
  .result-summary { margin: 0 18px 18px; min-height: 470px; }
}

@media (max-width: 620px) {
  body { background-size: auto, 42px 42px, 42px 42px, auto; }
  .page-shell { width: calc(100% - 20px); padding: 10px 0 18px; }
  .calculator { min-height: calc(100vh - 20px); }
  .calculator-header { min-height: 104px; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 11px 13px; }
  .brand-logo { width: 108px; height: 63px; }
  .brand-lockup p { display: none; }
  .steps li { gap: 4px; justify-content: center; }
  .steps li:not(:last-child)::after { margin: 0 4px; }
  .step-number { width: 30px; height: 30px; flex-basis: 30px; }
  .form-panel { padding: 43px 20px 42px; }
  .back-button { margin-top: -20px; }
  .two-column,
  .extra-grid,
  .inclusions ul,
  .contact-actions { grid-template-columns: 1fr; }
  .mode-switch { width: 100%; }
  .mode-button { font-size: .68rem; }
  .area-ready { align-items: flex-start; flex-direction: column; gap: 5px; }
  .extra-card { min-height: 102px; padding: 17px; display: grid; grid-template-columns: 43px 1fr; align-content: center; column-gap: 13px; }
  .extra-card b { grid-row: 1 / 3; margin: 0; }
  .extra-card small { margin-top: 1px; }
  .result-main { padding: 49px 22px 38px; }
  .result-summary { margin: 0 10px 10px; padding: 21px; min-height: 450px; }
  .site-footer { padding-inline: 3px; flex-direction: column; gap: 3px; }
}
