
:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --white: #fffefa;
  --ink: #163429;
  --text: #253831;
  --muted: #52635a;
  --line: #d8ded4;
  --wash: #ebefe7;
  --green: #174735;
  --gold: #f1c467;
  --gold-hover: #f6d58f;
  --test: #ede9dc;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); line-height: 1.55; }
main { min-height: 64vh; }
a { color: var(--green); font-weight: 650; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.13em; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { color: var(--ink); }
h1 { font: 500 clamp(2.5rem, 6.1vw, 4.2rem)/1.05 var(--serif); letter-spacing: -0.036em; overflow-wrap: anywhere; }
h2 { font: 500 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--serif); letter-spacing: -0.018em; }
h3 { color: var(--ink); line-height: 1.3; font-size: 1.06rem; }
small, .helper, .optional { color: var(--muted); font-size: 0.875rem; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #99630f; outline-offset: 3px; }
.wrap { width: min(100% - 2rem, 75rem); margin-inline: auto; }
.skip { position: absolute; top: 0.5rem; left: 0.5rem; background: var(--white); padding: 0.7rem; z-index: 2; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.nav, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav { min-height: 4.5rem; }
.nav nav { display: flex; gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.nav a, .brand { text-decoration: none; }
.brand { color: var(--ink); display: inline-flex; gap: 0.55rem; align-items: center; font-weight: 500; font-size: 1.02rem; line-height: 1.1; }
.brand-mark { display: block; width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem; object-fit: contain; }
.nav-main, .portal-link { font-size: 0.92rem; }
.portal-link { white-space: nowrap; border: 1px solid var(--line); border-radius: 0.38rem; padding: 0.55rem 0.75rem; }
.portal-link:hover { background: var(--wash); }
.test-banner { background: var(--test); color: #4e4835; font-size: 0.82rem; }
.test-banner .wrap { display: flex; gap: 0.45rem 0.8rem; flex-wrap: wrap; padding-block: 0.43rem; }
footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-row { min-height: 5.4rem; flex-wrap: wrap; padding-block: 1.2rem; }
.footer-row > span, .footer-row > a:last-child { color: var(--muted); font-size: 0.9rem; }

.hero { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 7vw, 5.4rem) clamp(2.5rem, 6vw, 4.8rem); align-items: center; }
.hero-content { display: grid; gap: 1.25rem; justify-items: start; }
.eyebrow { color: var(--green); font-weight: 700; font-size: 0.79rem; text-transform: uppercase; letter-spacing: 0.09em; }
.eyebrow span { display: inline-block; width: 0.48rem; height: 0.48rem; vertical-align: 0.1em; background: #b77a28; border-radius: 50%; margin-right: 0.5rem; }
.lede { font-size: clamp(1.04rem, 2vw, 1.17rem); color: var(--muted); max-width: 49ch; }
.price { display: flex; align-items: center; gap: 0.86rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-left: 3px solid #bc8e48; background: var(--white); border-radius: 0 0.45rem 0.45rem 0; max-width: 100%; }
.price > strong { color: var(--ink); font-family: var(--serif); font-size: clamp(1.85rem, 5vw, 2.9rem); font-weight: 500; line-height: 1; }
.price p { font-weight: 600; font-size: 0.94rem; line-height: 1.4; }
.price small { display: block; font-weight: 400; margin-top: 0.2rem; }
.hero-image { overflow: hidden; border-radius: 0.6rem; background: #d9dfd0; }
.hero-image img { width: 100%; height: auto; aspect-ratio: 1.26; object-fit: cover; object-position: 53% 50%; }
.button { min-height: 2.8rem; border: 1px solid transparent; padding: 0.68rem 1rem; border-radius: 0.4rem; text-align: center; display: inline-flex; align-items: center; justify-content: center; width: fit-content; color: var(--ink); font: 700 0.96rem/1.25 var(--sans); text-decoration: none; cursor: pointer; }
.button.primary { background: var(--gold); border-color: #deb15c; color: #263323; }
.button.primary:hover { background: var(--gold-hover); }
.hero-button { min-height: 3.25rem; padding-inline: 1.34rem; }
.button.secondary { background: var(--white); border-color: #a6b8ac; }
.button.secondary:hover { background: var(--wash); }
button:disabled { opacity: 0.55; cursor: wait; }
.text-button { background: transparent; border: 0; padding: 0.4rem 0.15rem; color: var(--green); font: 650 0.95rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; width: fit-content; }
.secondary-link { display: inline-block; margin-top: 0.9rem; margin-right: 0.7rem; }
.process { background: var(--wash); padding-block: 2.7rem 3.8rem; }
.process-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1.3rem; }
.process-head p { color: var(--muted); }
.process-grid { display: grid; gap: 0.85rem; }
.process-grid article { background: var(--white); border: 1px solid var(--line); border-radius: 0.5rem; padding: 1.15rem; display: grid; gap: 0.52rem; align-content: start; }
.process-grid article p { color: var(--muted); font-size: 0.96rem; }
.step-symbol { display: grid; place-items: center; border: 1px solid #cbdacf; background: var(--wash); width: 2.15rem; height: 2.15rem; border-radius: 0.33rem; margin-bottom: 0.2rem; color: var(--green); }
.step-symbol::before { content: ""; display: block; }
.step-symbol.building::before { width: 0.83rem; height: 0.77rem; border: 2px solid currentColor; border-top-width: 4px; box-shadow: inset 0.26rem 0 currentColor; }
.step-symbol.document::before { width: 0.61rem; height: 0.88rem; border: 2px solid currentColor; border-radius: 2px; background: linear-gradient(currentColor, currentColor) center / 70% 2px no-repeat; }
.step-symbol.tick::before { width: 0.42rem; height: 0.85rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(42deg) translate(-1px, -2px); }

.pricing, .home-faq { padding-block: clamp(2.7rem, 6vw, 4.8rem); }
.pricing-intro { display: grid; gap: 0.55rem; margin-bottom: 1.35rem; }
.pricing-intro p { color: var(--muted); }
.pricing-grid { display: grid; gap: 0.85rem; }
.pricing-card { background: var(--white); border: 1px solid var(--line); border-radius: 0.5rem; padding: clamp(1rem, 3vw, 1.55rem); }
.pricing-card ul { padding-inline-start: 1.25rem; margin-block: 0.65rem 0; }
.pricing-card li + li { margin-top: 0.55rem; }
.pricing-card ul + p { margin-top: 0.75rem; }
.home-faq { border-top: 1px solid var(--line); background: var(--white); }
.faq-layout { display: grid; gap: 1.15rem; }
.faq-items details { border-bottom: 1px solid var(--line); }
.faq-items details:first-child { border-top: 1px solid var(--line); }
.faq-items summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; list-style: none; }
.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary::after {
  content: "";
  flex: 0 0 0.75rem;
  height: 0.75rem;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}
.faq-items details[open] summary::after { background-size: 100% 2px, 0 0; }
.faq-items details p { color: var(--muted); padding-block-end: 0.85rem; }
.home-contact { margin-top: 1.4rem; }
.home-contact p { margin-top: 0.35rem; overflow-wrap: anywhere; }
.faq-enquiry { margin-top: 1.25rem; }

.content-page, .wizard-shell { padding-block: 2.3rem 4.6rem; }
.page-heading { display: grid; gap: 0.6rem; margin-bottom: 1.45rem; }
.page-heading h1, .auth-panel h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); }
.panel { border: 1px solid var(--line); border-radius: 0.6rem; background: var(--white); padding: clamp(1rem, 3vw, 1.55rem); min-width: 0; }
.stack { display: grid; gap: 1rem; align-content: start; }
.narrow { max-width: 42rem; padding-block: clamp(2rem, 6vw, 4rem) 5rem; }
.auth-panel { display: grid; gap: 1rem; padding: clamp(1.25rem, 5vw, 2.6rem); }
.auth-panel .secondary-link { margin-top: 0; }
.notice { border-left: 3px solid #8a6835; border-radius: 0.25rem; background: var(--test); padding: 0.7rem 0.86rem; }
.reference { background: var(--wash); padding: 0.7rem 0.8rem; border-radius: 0.35rem; }
.reference strong { margin-left: 0.5rem; }
.actions { margin-top: 0.7rem; }
.muted { color: var(--muted); }
.fields { display: grid; gap: 0.83rem; align-content: start; min-width: 0; }
label, legend { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.fields > label:has(+ input), .fields > label:has(+ select), .fields > label:has(+ textarea) { margin-bottom: -0.58rem; }
input:not([type="checkbox"], [type="radio"]), textarea, select {
  display: block; width: 100%; min-height: 2.75rem; max-width: 100%; background-color: #fff; color: var(--text);
  border: 1px solid #91a399; border-radius: 0.35rem; padding: 0.53rem 0.68rem; font: inherit;
}
input:disabled { background: var(--wash); }
select { appearance: none; padding-right: 2.1rem; background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: right 1.01rem center, right 0.7rem center; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { min-height: 5.2rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); height: 1.05rem; width: 1.05rem; flex: 0 0 auto; }
input[type="file"] { background: var(--paper); }
::file-selector-button { color: var(--green); border: 1px solid var(--line); border-radius: 0.2rem; background: var(--wash); padding: 0.32rem 0.45rem; margin-right: 0.55rem; font: 650 0.84rem var(--sans); cursor: pointer; }
.field-row { display: grid; gap: 0.7rem; }
.field-row > div, .conditional, .conditional > div { min-width: 0; }
.field-row label, .conditional label, .fields > div > label { display: block; margin-bottom: 0.28rem; }
.question { margin: 0; padding: 0; border: 0; min-width: 0; }
.radio-options { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.43rem; margin-top: 0.35rem; }
.radio-options label, .check { display: inline-flex !important; gap: 0.45rem; align-items: center; min-height: 2.7rem; font-weight: 500; }
.radio-options label { padding: 0.35rem 0.62rem; border: 1px solid var(--line); border-radius: 0.4rem; flex-wrap: nowrap; background: #fff; }
.radio-options label:has(input:checked) { border-color: var(--green); background: var(--wash); }
.conditional { border-left: 2px solid #b5c9bb; padding-left: 0.7rem; }
.conditional > div { margin-top: 0.65rem; }
.attachment-details { border: 1px solid var(--line); border-radius: 0.45rem; padding: 0.6rem 0.8rem; }
summary { cursor: pointer; font-weight: 700; color: var(--green); }
.inset { margin-top: 0.85rem; }
.feedback { padding: 0.7rem; margin-top: 0.9rem; border-radius: 0.35rem; }
.feedback.error { background: #f9e5e3; color: #6d2920; }
.feedback.saved { background: var(--wash); color: var(--green); }
.field-error { color: #6d2920; font-size: 0.9rem; font-weight: 650; }
.wizard-panel [aria-invalid="true"]:not([type="radio"]), .wizard-panel label:has(input[type="radio"][aria-invalid="true"]) { border-color: #96382b; }
.wizard-shell { max-width: 62rem; }
.wizard-layout { display: grid; gap: 1rem; }
.wizard-aside { display: none; }
.wizard-panel { padding: clamp(1rem, 4vw, 2rem); }
.progress-list { list-style: none; margin: 0.75rem 0; padding: 0; display: grid; gap: 0.48rem; }
.progress-list li { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); padding: 0.3rem; }
.progress-list li span { border: 1px solid var(--line); border-radius: 50%; width: 1.65rem; height: 1.65rem; flex: 0 0 1.65rem; display: grid; place-items: center; font-size: 0.82rem; }
.progress-list li[aria-current] { font-weight: 700; color: var(--green); }
.progress-list li[aria-current] span, .progress-list li.complete span { background: var(--green); color: white; border-color: var(--green); }
.mobile-progress { color: var(--green); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; }
progress { height: 0.42rem; width: 100%; border: 0; border-radius: 1rem; background: var(--wash); display: block; margin-bottom: 1.2rem; }
progress::-webkit-progress-bar { background: var(--wash); border-radius: 1rem; }
progress::-webkit-progress-value { background: var(--green); border-radius: 1rem; }
progress::-moz-progress-bar { background: var(--green); border-radius: 1rem; }
.step-heading { display: grid; gap: 0.38rem; margin-bottom: 1.1rem; }
.step-heading p { color: var(--muted); }
.wizard-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 0.9rem; }
#continue-step { margin-left: auto; }
.review-section { padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
.review-section:last-child { border: 0; }
.review-heading, .queue-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 0.7rem; margin-bottom: 0.5rem; }
.facts { margin: 0; display: grid; gap: 0.55rem; }
.facts > div { display: grid; grid-template-columns: minmax(6rem, 0.8fr) minmax(0, 1.4fr); gap: 0.65rem; }
.facts dt { color: var(--muted); font-size: 0.91rem; }
.facts dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.case-topline { display: flex; justify-content: space-between; align-items: center; }
.case-meta, .filters { display: flex; gap: 0.65rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.case-meta > span:last-child { font-size: 0.88rem; color: var(--muted); }
.status { display: inline-flex; padding: 0.24rem 0.57rem; background: var(--wash); color: var(--green); border-radius: 0.35rem; font-size: 0.83rem; font-weight: 700; width: fit-content; }
.status.client { background: #f7e9cd; color: #694716; }
.status.council { background: #e3eaf3; color: #2d4864; }
.next-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-block: 1.3rem 1.1rem; background: var(--green); color: #fff; border-radius: 0.6rem; padding: clamp(1.1rem, 3vw, 1.7rem); }
.next-action h2 { color: #fff; margin-block: 0.3rem; }
.next-action .eyebrow { color: #efdaab; }
.case-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.documents, .timeline, .case-links, .quote-items, .queue-list { list-style: none; padding: 0; margin: 0; }
.documents li, .timeline li, .case-links li, .quote-items li, .queue-list li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.documents li:last-child, .timeline li:last-child, .case-links li:last-child, .quote-items li:last-child, .queue-list li:last-child { border: 0; }
.documents li, .quote-items li, .quote-total, .queue-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.45rem 0.9rem; flex-wrap: wrap; }
.documents small, .case-links span, .quote-items small, .queue-list small, .timeline time { display: block; color: var(--muted); font-size: 0.86rem; }
.timeline time { margin-top: 0.16rem; }
.timeline p { margin-top: 0.38rem; }
.quote-total { padding: 0.65rem; background: var(--wash); border-radius: 0.35rem; font-weight: 700; }
.authorisation { display: grid; gap: 0.55rem; padding: 0.85rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0.4rem; }
.authorisation-check { align-items: flex-start; }
.authorisation-check input { margin-top: 0.28rem; }
.quote-line { margin: 0; border: 1px solid var(--line); border-radius: 0.45rem; padding: 0.6rem; display: grid; gap: 0.5rem; min-width: 0; }
.quote-line legend { padding-inline: 0.2rem; }
.extra-items:not(:empty) { display: grid; gap: 0.7rem; }
.extra-items:empty { display: none; }
.request-history article, .private-note { background: var(--paper); border-radius: 0.4rem; padding: 0.75rem; }
.request-history article + article { margin-top: 0.65rem; }
.reply-history { margin-top: 0.5rem; padding-left: 0.64rem; border-left: 2px solid #9cb2a3; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.search { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1rem; }
.search > div { flex: 1 1 13rem; }
.filters a { background: var(--white); border: 1px solid var(--line); border-radius: 0.43rem; padding: 0.48rem 0.65rem; font-size: 0.9rem; text-decoration: none; }
.filters a[aria-current] { background: var(--green); color: white; border-color: var(--green); }

@media (max-width: 31rem) {
  .nav-main { display: none; }
  .footer-row > span { flex-basis: 100%; order: 3; }
}
@media (max-width: 38rem) {
  .nav-detail { display: none; }
}
@media (min-width: 37rem) {
  .wrap { width: min(100% - 3rem, 75rem); }
  .wizard-shell { max-width: 62rem; }
  .narrow { max-width: 42rem; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .quote-line { grid-template-columns: minmax(0, 2fr) minmax(4.8rem, 0.72fr) minmax(7.4rem, 1.2fr); }
}
@media (min-width: 49rem) {
  .wrap { width: min(100% - 5rem, 75rem); }
  .wizard-shell { max-width: 62rem; }
  .narrow { max-width: 42rem; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr); gap: clamp(1.6rem, 5vw, 4.4rem); }
  .hero-image img { aspect-ratio: 1.12; }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; }
  .wizard-layout { grid-template-columns: 13.5rem minmax(0, 1fr); }
  .wizard-aside { display: grid; align-content: start; padding: 1rem 0.45rem 0 0; }
  .wizard-aside > p:last-child { padding-top: 0.8rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
  .case-grid { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
}
