/* Pier Management – leaseholder complaints form.
   Brand tokens are documented in docs/design.md. Change :root, not the components. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700-latin.woff2") format("woff2"); }

:root {
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --navy: #092a30;
  --navy-soft: #123f47;
  --turquoise: #25cbd3;
  --turquoise-ink: #157a80;
  --tint: #e4f7f9;
  --tint-soft: #f3fbfc;
  --canvas: #f5f8f8;
  --surface: #ffffff;
  --ink: #0e2a2f;
  --slate: #3a5559;
  --rule: #d5e1e3;
  --rule-strong: #9fb6ba;
  --error: #b3261e;
  --error-tint: #fbe9e7;
  --success: #0f7a4a;
  --warn: #8a5300;
  --warn-tint: #fdf1dc;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(9, 42, 48, .06), 0 8px 24px rgba(9, 42, 48, .06);
  --focus: 0 0 0 3px var(--surface), 0 0 0 6px var(--turquoise);
  --wrap: 72rem;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--canvas);
  display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 1.25rem; }
a { color: var(--turquoise-ink); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: .5rem; z-index: 20; padding: .5rem .75rem; background: var(--navy); color: #fff; border-radius: 6px; }
.skip-link:focus { left: .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header: the one bold element ---------- */
.site-header { background: var(--navy); color: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: 1rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__logo { height: 2.75rem; width: auto; display: block; }
.brand__service { font-size: 1rem; font-weight: 500; letter-spacing: .01em; padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, .25); line-height: 1.2; }
.site-header__help { text-align: right; line-height: 1.25; }
.site-header__help-label { display: block; font-size: .8125rem; color: rgba(255, 255, 255, .72); }
.site-header__phone { color: #fff; font-weight: 600; text-decoration: none; font-size: 1.0625rem; }
.site-header__phone:hover { color: var(--turquoise); }
.roofline { height: 4px; background: linear-gradient(90deg, var(--turquoise) 0 62%, rgba(37, 203, 211, .35) 62% 100%); }

/* ---------- Page grid ---------- */
.main { flex: 1; padding-block: 2rem 4rem; }
.page { display: grid; gap: 2rem; align-items: start; }
.page--single { grid-template-columns: minmax(0, 1fr); }
.page--narrow { max-width: 44rem; }
.page--rail { grid-template-columns: 14rem minmax(0, 1fr); }
.page--split { grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); }
.sheet { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2.25rem clamp(1.25rem, 4vw, 3rem) 2.5rem; max-width: 100%; }
.page--single .sheet, .page--narrow .sheet { max-width: 48rem; }
.sheet > *:not(.card):not(form):not(.confirm):not(.steps) { max-width: var(--measure); }

/* Rail */
.rail { position: sticky; top: 1.25rem; padding: .25rem 0; }
.rail__title { margin: 0 0 .5rem; font-weight: 600; font-size: .875rem; color: var(--slate); padding-left: 1rem; }
.rail__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .125rem; }
.rail__link { display: block; padding: .5rem 1rem; border-left: 3px solid transparent; color: var(--slate); text-decoration: none; font-size: .9375rem; border-radius: 0 8px 8px 0; transition: background .15s, color .15s; }
.rail__link:hover { background: var(--tint-soft); color: var(--navy); }
.rail__link.is-active { border-left-color: var(--turquoise); color: var(--navy); font-weight: 600; background: var(--tint-soft); }
.rail__link.is-error { color: var(--error); }

/* Aside (start page) */
.aside { padding: .5rem 0 0 .5rem; }
.aside__title { margin: 0 0 1rem; font-size: 1.125rem; font-weight: 600; color: var(--navy); }

/* ---------- Typography ---------- */
.display { font-size: clamp(1.75rem, 3.2vw, 2.25rem); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; color: var(--navy); margin: 0 0 .75rem; }
.heading { font-size: 1.375rem; line-height: 1.25; font-weight: 600; color: var(--navy); margin: 2rem 0 .75rem; }
.eyebrow { margin: 0 0 .35rem; font-size: .9375rem; font-weight: 500; color: var(--turquoise-ink); }
.lede { font-size: 1.125rem; line-height: 1.5; color: var(--slate); margin: 0 0 1.75rem; }
p { margin: 0 0 1rem; }

/* ---------- Section cards ---------- */
.card { margin: 1.75rem 0 0; padding: 1.75rem 0 0; border-top: 1px solid var(--rule); max-width: var(--measure); }
.card:first-of-type { border-top: 0; padding-top: .5rem; margin-top: .5rem; }
.card__title { font-size: 1.375rem; line-height: 1.25; font-weight: 600; color: var(--navy); margin: 0 0 1.25rem; }
.card__intro { color: var(--slate); margin-bottom: 1.5rem; }

/* Prefilled facts panel */
.prefill { background: var(--tint); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.75rem; }
.prefill__list { margin: 0; }
.prefill .summary-list__row { border: 0; padding: .2rem 0; grid-template-columns: 9.5rem 1fr; }
.prefill__note { margin: .6rem 0 0; font-size: .875rem; color: var(--turquoise-ink); }
.prefill__note--warn { color: var(--warn); }
.prefilled { margin: 0; padding: .65rem .9rem; background: var(--tint-soft); border: 1.5px dashed var(--rule-strong); border-radius: var(--radius); font-weight: 500; }
.prefilled__note { display: inline-block; margin-left: .5rem; font-weight: 400; font-size: .875rem; color: var(--slate); }

/* ---------- Notices ---------- */
.notice { border-radius: var(--radius); padding: .9rem 1.1rem; margin: 0 0 1.5rem; background: var(--tint); color: var(--navy); border: 1px solid #bfe9ee; }
.notice--info { background: var(--tint); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Form groups ---------- */
.form-group { margin-bottom: 1.5rem; }
.form-group--error { position: relative; padding-left: 1rem; }
.form-group--error::before { content: ""; position: absolute; left: 0; top: .2rem; bottom: .2rem; width: 3px; border-radius: 3px; background: var(--error); }
.label, .legend { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; color: var(--navy); margin-bottom: .4rem; }
.legend { padding: 0; }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hint { color: var(--slate); font-size: .9375rem; margin: -.15rem 0 .6rem; }
.error-message { color: var(--error); font-weight: 600; font-size: .9375rem; margin: 0 0 .5rem; }

.input, .select, .textarea {
  font: inherit; width: 100%; padding: .7rem .85rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--rule-strong); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--slate); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--turquoise-ink); box-shadow: 0 0 0 4px rgba(37, 203, 211, .3); border-radius: var(--radius); }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%233a5559' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem; }
.textarea { resize: vertical; min-height: 6.5rem; line-height: 1.5; }
.input--small { max-width: 10rem; }
.input--medium { max-width: 19rem; }
.input--date { max-width: 14rem; }

/* File upload (4.5) */
.aside__note { margin: 0 0 1.25rem; padding: .85rem 1rem; border-left: 3px solid var(--turquoise); background: var(--tint); color: var(--navy); font-size: .9375rem; border-radius: 0 var(--radius) var(--radius) 0; }
.file-input { display: block; width: 100%; font: inherit; color: var(--ink); padding: .45rem; background: var(--surface);
  border: 1.5px dashed var(--rule-strong); border-radius: var(--radius); }
.file-input:hover { border-color: var(--slate); }
.file-input:focus-visible { outline: none; border-color: var(--turquoise-ink); box-shadow: 0 0 0 4px rgba(37, 203, 211, .3); }
.file-input--error { border-color: var(--error); }
.file-input::file-selector-button { font: inherit; font-weight: 600; margin-right: .85rem; padding: .5rem .9rem; color: var(--navy);
  background: var(--tint); border: 0; border-radius: calc(var(--radius) - 2px); cursor: pointer; }
.file-input::file-selector-button:hover { background: #bfe9ee; }
.file-list { list-style: none; margin: .6rem 0 0; padding: 0; font-size: .9375rem; }
.file-list__item { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--rule); }
.file-list__item:last-child { border-bottom: 0; }
.file-list__name { overflow-wrap: anywhere; }
.file-list__meta { color: var(--slate); white-space: nowrap; }
.file-list__item--problem .file-list__meta { color: var(--error); font-weight: 600; white-space: normal; text-align: right; }
.question { margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: var(--tint); border-left: 3px solid var(--turquoise); border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--measure); }
.question__label { margin: 0 0 .25rem; font-size: .8125rem; font-weight: 600; color: var(--turquoise-ink); text-transform: uppercase; letter-spacing: .04em; }
.question__text { margin: 0; font-size: 1.0625rem; color: var(--navy); white-space: pre-line; }
.input--error, .select--error, .textarea--error { border-color: var(--error); }
.input--error:focus-visible, .textarea--error:focus-visible { box-shadow: 0 0 0 4px rgba(179, 38, 30, .2); border-color: var(--error); }

.char-count { color: var(--slate); font-size: .875rem; margin-top: .4rem; }
.char-count--warning { color: var(--warn); }
.char-count--error { color: var(--error); font-weight: 600; }

/* ---------- Radios and checkboxes ---------- */
.radios, .checkboxes { display: flex; flex-direction: column; gap: .4rem; }
.radios--inline { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.75rem; }
.radios__item, .checkboxes__item { position: relative; display: flex; align-items: flex-start; min-height: 2.25rem; padding-left: 2.25rem; }
.radios__input, .checkboxes__input { position: absolute; left: 0; top: .2rem; width: 1.5rem; height: 1.5rem; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.radios__label, .checkboxes__label { padding: .3rem 0; cursor: pointer; line-height: 1.4; }
.radios__label::before, .checkboxes__label::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 1.5rem; height: 1.5rem;
  border: 1.5px solid var(--rule-strong); background: var(--surface); border-radius: 6px; transition: border-color .15s, background .15s;
}
.radios__label::before { border-radius: 50%; }
.radios__item:hover .radios__label::before, .checkboxes__item:hover .checkboxes__label::before { border-color: var(--turquoise-ink); }
.radios__label::after { content: ""; position: absolute; left: .4375rem; top: .6375rem; width: .625rem; height: .625rem; border-radius: 50%; background: var(--navy); transform: scale(0); transition: transform .12s; }
.checkboxes__label::after { content: ""; position: absolute; left: .5rem; top: .55rem; width: .5rem; height: .85rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .12s; }
.radios__input:checked + .radios__label::before { border-color: var(--turquoise-ink); background: var(--tint); }
.radios__input:checked + .radios__label::after { transform: scale(1); }
.checkboxes__input:checked + .checkboxes__label::before { border-color: var(--navy); background: var(--navy); }
.checkboxes__input:checked + .checkboxes__label::after { transform: rotate(45deg) scale(1); }
.radios__input:focus-visible + .radios__label::before, .checkboxes__input:focus-visible + .checkboxes__label::before { box-shadow: 0 0 0 4px rgba(37, 203, 211, .35); border-color: var(--turquoise-ink); }
.form-group--error .radios__label::before, .form-group--error .checkboxes__label::before { border-color: var(--error); }

/* Choice cards: big radios on the start page */
.radios--cards { gap: .75rem; }
.radios--cards .radios__item { padding-left: 0; min-height: 0; }
.radios--cards .radios__input { left: 1rem; top: 50%; transform: translateY(-50%); }
.radios--cards .radios__label { flex: 1; padding: 1rem 1.25rem 1rem 3.25rem; border: 1.5px solid var(--rule); border-radius: var(--radius); font-weight: 500; color: var(--navy); background: var(--surface); transition: border-color .15s, background .15s; }
.radios--cards .radios__label::before { left: 1rem; top: 50%; transform: translateY(-50%); }
.radios--cards .radios__label::after { left: 1.4375rem; top: 50%; margin-top: -.3125rem; }
.radios--cards .radios__item:hover .radios__label { border-color: var(--turquoise-ink); }
.radios--cards .radios__input:checked + .radios__label { border-color: var(--turquoise-ink); background: var(--tint-soft); box-shadow: inset 0 0 0 1px var(--turquoise-ink); }

/* ---------- Conditional blocks ---------- */
.conditional { margin: -.25rem 0 1.5rem .7rem; padding-left: 1.25rem; border-left: 2px solid var(--rule); }
.conditional .form-group:last-child { margin-bottom: .25rem; }
[hidden] { display: none !important; }

/* ---------- Buttons and actions ---------- */
.actions { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); max-width: var(--measure); }
.actions__note { margin: .9rem 0 0; font-size: .9375rem; color: var(--slate); }
.button {
  font: inherit; font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; min-height: 3rem;
  border: 1.5px solid var(--navy); border-radius: var(--radius); background: var(--navy); color: #fff; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.button:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: #fff; }
.button:active { transform: translateY(1px); }
.button:focus-visible { box-shadow: var(--focus); border-radius: var(--radius); }
.button--secondary { background: var(--surface); color: var(--navy); border-color: var(--rule-strong); }
.button--secondary:hover { background: var(--tint-soft); border-color: var(--navy); color: var(--navy); }

/* ---------- Error summary ---------- */
.error-summary { border: 1.5px solid var(--error); border-left-width: 6px; background: var(--error-tint); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.75rem; }
.error-summary__title { margin: 0 0 .5rem; font-size: 1.125rem; color: var(--error); }
.error-summary__list { margin: 0; padding-left: 1.2rem; }
.error-summary__list li { margin: .2rem 0; }
.error-summary__list a { color: var(--error); font-weight: 600; }

/* ---------- Summary list ---------- */
.summary-list { margin: 0 0 1rem; }
.summary-list__row { display: grid; grid-template-columns: minmax(7rem, 10rem) 1fr; gap: .25rem 1.25rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.summary-list__row:last-child { border-bottom: 0; }
.summary-list__key { font-weight: 600; color: var(--navy); margin: 0; font-size: .9375rem; }
.summary-list__value { margin: 0; overflow-wrap: anywhere; }

/* ---------- Steps (what to expect / what happens next) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.steps__item { display: grid; grid-template-columns: 2rem 1fr; gap: .9rem; align-items: start; }
.steps__item p { margin: .15rem 0 0; color: var(--slate); font-size: .9375rem; }
.steps__item strong { color: var(--navy); font-weight: 600; }
.steps__marker { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tint); color: var(--turquoise-ink); font-weight: 600; font-size: .9375rem; }
.steps--plain { max-width: var(--measure); margin-bottom: 2rem; }

/* ---------- Confirmation ---------- */
.confirm { text-align: left; padding: .25rem 0 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: .5rem; max-width: var(--measure); }
.confirm__icon { width: 3.25rem; height: 3.25rem; color: var(--success); margin-bottom: .75rem; }
.confirm__label { margin: 1.25rem 0 .15rem; color: var(--slate); font-size: .9375rem; }
.confirm__reference { display: inline-block; margin: 0 0 1.25rem; padding: .6rem 1rem; background: var(--tint); color: var(--navy); border-radius: var(--radius); font-size: 1.75rem; font-weight: 600; letter-spacing: .04em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: .9375rem; margin-top: auto; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 2rem; padding-block: 2rem; }
.site-footer__strap { color: #fff; font-weight: 600; margin-bottom: .5rem; }
.site-footer__address { margin: .5rem 0 0; font-weight: 500; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--turquoise); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; white-space: nowrap; }

/* Honeypot: off-screen, not display:none, so naive bots still fill it */
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .page--rail { grid-template-columns: minmax(0, 1fr); }
  .rail { position: sticky; top: 0; z-index: 5; background: var(--canvas); margin: -1rem -1.25rem 0; padding: .5rem 1.25rem; border-bottom: 1px solid var(--rule); }
  .rail__title { display: none; }
  .rail__list { flex-direction: row; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
  .rail__list::-webkit-scrollbar { display: none; }
  .rail__link { border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; white-space: nowrap; padding: .5rem .75rem; }
  .rail__link.is-active { border-bottom-color: var(--turquoise); background: transparent; }
  .page--split { grid-template-columns: minmax(0, 1fr); }
  .aside { padding: 0 .5rem; }
}
@media (max-width: 40rem) {
  html { font-size: 100%; }
  .site-header__inner { min-height: 4rem; }
  .brand__logo { height: 2.25rem; }
  .brand__service { display: none; }
  .site-header__help-label { display: none; }
  .sheet { padding: 1.5rem 1.1rem 2rem; border-radius: var(--radius); }
  .main { padding-block: 1.25rem 3rem; }
  .summary-list__row, .prefill .summary-list__row { grid-template-columns: 1fr; gap: .1rem; }
  .site-footer__inner { flex-direction: column; gap: 1rem; }
  .radios--inline { flex-direction: column; gap: .4rem; }
}

/* Several questions answered on one secure page (30 Oct 2026). */
.question-block { margin-bottom: 2.25rem; padding-bottom: .25rem; border-bottom: 1px solid var(--rule); }
.question-block:last-of-type { border-bottom: 0; }
