/* ==========================================================================
   ugcool.com - shared stylesheet
   Publication identity: linen ground, cocoa accent, Sora over Source Serif 4.
   Offer page identity: body.consultation-portal (declared at the end).
   Mobile-first. Breakpoints: 480, 768, 1024.
   ========================================================================== */

:root {
  color-scheme: only light;

  --bg: #FAF7F2;
  --surface: #EDE6DB;
  --ink: #2E2420;
  --muted: #74655B;
  --muted-strong: #62544A;
  --accent: #6B4226;
  --accent-ink: #FFFFFF;
  --accent-deep: #4F2F1B;
  --line: #CDBFAE;

  --font-display: "Sora", sans-serif;
  --font-serif: "Source Serif 4", serif;
  --font-text: var(--font-serif);

  --sheet-pad: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--surface);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "masthead"
    "main"
    "colophon";
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.7;
  overflow-wrap: break-word;
  font-kerning: normal;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  margin: 0 0 1.15em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--accent-deep);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

main {
  grid-area: main;
  min-width: 0;
}

/* ---- Skip link ---------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 100;
  padding: 12px 18px;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--accent-ink);
}

/* ---- Masthead: crest lockup + label, one line --------------------------- */

.masthead {
  grid-area: masthead;
  background-color: var(--bg);
  color: var(--ink);
  padding: 20px 16px 22px;
}

.masthead-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crest {
  display: inline-flex;
  flex: none;
  align-items: stretch;
  border: 1px solid var(--ink);
  background-color: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.crest:hover {
  background-color: var(--surface);
  color: var(--ink);
}

.crest-mark {
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
}

.crest-mark .tile {
  fill: var(--accent);
}

.crest-mark .shield,
.crest-mark .glyph {
  fill: none;
  stroke: var(--bg);
}

.crest-mark .shield {
  stroke-width: 1.4;
}

.crest-mark .glyph {
  stroke-width: 3.2;
  stroke-linecap: square;
}

.crest-words {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 4px 12px;
  border-left: 1px solid var(--ink);
}

.crest-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.crest-meta {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-label {
  margin: 0;
  padding: 6px 9px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background-color: transparent;
  color: var(--muted);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.6875rem;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.masthead-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
}

/* ---- Opening: full-bleed framed image, double hairline above ------------ */

.opening {
  background-color: var(--bg);
  color: var(--ink);
  border-top: 3px double var(--ink);
}

.plate {
  margin: 0;
}

.plate--bleed {
  width: 100%;
}

.article-head {
  display: block;
  margin-bottom: 8px;
}

.frame {
  padding: 8px;
  border: 1px solid var(--ink);
  background-color: var(--bg);
}

.frame--bleed {
  padding-inline: 0;
  border-width: 0 0 1px;
}

.frame-media {
  position: relative;
  aspect-ratio: var(--ratio, 3 / 2);
  overflow: hidden;
  background-color: var(--surface);
}

.frame-media img,
.frame-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-media--hero {
  --ratio: 4 / 3;
}

.frame-media--hero video {
  object-position: 42% 50%;
}

.frame-media--notes {
  --ratio: 5 / 4;
}

.frame-media--notes img {
  object-position: 0% 50%;
}

.frame-media--desk {
  --ratio: 2 / 1;
}

.frame-media--desk img {
  object-position: 50% 12%;
}

.frame-media--portrait {
  --ratio: 4 / 5;
}

.frame-media--portrait video {
  object-position: 50% 42%;
}

.frame-media--zoom {
  --ratio: 3 / 2;
}

.frame-media--zoom video {
  transform: scale(2);
  transform-origin: 58% 100%;
}

.plate figcaption {
  margin-top: 10px;
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.plate--inline {
  margin: 36px 0;
}

.split {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  margin: 36px 0;
}

.split > p {
  margin: 0;
}

.plate--side .frame {
  max-width: 340px;
}

/* ---- Desk and paper sheet ---------------------------------------------- */

.desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "sheet";
  background-color: var(--surface);
  color: var(--ink);
  padding: 16px 8px 32px;
}

main > .desk:first-child {
  border-top: 3px double var(--ink);
}

.sheet {
  grid-area: sheet;
  justify-self: center;
  width: 100%;
  max-width: 794px;
  min-width: 0;
  padding: 30px var(--sheet-pad) 40px;
  background-color: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
}

/* ---- Article head ------------------------------------------------------- */

.kicker {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2 {
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  margin: 0 0 22px;
  font-weight: 700;
  font-size: clamp(1.75rem, 1.25rem + 2.4vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
}

.dek {
  margin: 0 0 18px;
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.375rem);
  line-height: 1.55;
  color: var(--ink);
}

.updated {
  margin: 0 0 8px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
}

.intro {
  margin-top: 36px;
}

/* ---- Numbered parts ----------------------------------------------------- */

.part {
  margin-top: clamp(48px, 8vw, 80px);
  padding-top: clamp(26px, 5vw, 38px);
  border-top: 1px solid var(--ink);
}

.part-head {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "num"
    "title"
    "tag";
  margin-bottom: 26px;
}

.ordinal {
  grid-area: num;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--muted);
}

.part h2 {
  grid-area: title;
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.375rem, 1.1rem + 1.25vw, 1.875rem);
  line-height: 1.22;
  letter-spacing: -0.016em;
}

.part-tag {
  grid-area: tag;
  justify-self: start;
  margin: 12px 0 0;
  padding: 4px 9px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.part h3,
.qa-item h3 {
  margin: 34px 0 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.3125rem);
  line-height: 1.35;
  color: var(--ink);
}

.part-head + h3 {
  margin-top: 0;
}

.qa-item {
  margin: 34px 0;
  padding: 6px 20px 8px;
  background-color: var(--surface);
  color: var(--ink);
  border-left: 3px solid var(--accent);
}

.qa-item h3 {
  margin-top: 18px;
}

.qa-item p {
  margin-bottom: 18px;
}

/* ---- Comparison table: stacked blocks on mobile ------------------------- */

.compare {
  margin: 34px 0;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

.compare caption {
  margin-bottom: 14px;
  text-align: left;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink);
}

.compare thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.compare tbody,
.compare tr,
.compare th,
.compare td {
  display: block;
}

.compare tr {
  padding: 16px 0 18px;
  border-top: 1px solid var(--ink);
}

.compare tr:last-child {
  border-bottom: 1px solid var(--ink);
}

.compare tbody th {
  margin-bottom: 8px;
  text-align: left;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
}

.compare td {
  margin-top: 8px;
  color: var(--ink);
}

.compare td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Calls to action: solid rectangle, no arrow ------------------------- */

.cta {
  margin: 44px 0 8px;
}

.cta-lede {
  margin: 0 0 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 26px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background-color: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

/* ---- Legal, contact and about pages ------------------------------------- */

.legal-meta {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.clause {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.clause h2 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: clamp(1.1875rem, 1.05rem + 0.8vw, 1.5rem);
  line-height: 1.28;
  letter-spacing: -0.012em;
}

.clause p:last-child {
  margin-bottom: 0;
}

.clause ul:not([class]) {
  margin: 0 0 1.15em;
  padding-left: 1.2em;
}

.clause ul:not([class]) li {
  margin-bottom: 0.4em;
}

.principles {
  margin: 28px 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--ink);
}

.principles li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 4px 8px;
  padding: 16px 0;
  border-top: 1px solid var(--ink);
  line-height: 1.5;
}

.principles .principle-no {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
}

.principles strong {
  font-weight: 700;
}

.fact-list {
  margin: 0 0 1.15em;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.fact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

/* ---- Footer: disclosure, links, company --------------------------------- */

.page-end {
  grid-area: colophon;
  background-color: var(--surface);
  color: var(--ink);
  border-top: 1px solid var(--ink);
  padding: 40px 16px 48px;
}

.page-end-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "note"
    "links"
    "company";
}

.closing_note {
  grid-area: note;
  max-width: 780px;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
}

.page-end .links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.page-end .links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration-thickness: 1px;
}

.page-end .links a:hover {
  color: var(--accent);
}

.page-end .address {
  grid-area: company;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-strong);
}

.page-end .address p {
  margin: 0;
}

/* ==========================================================================
   Breakpoint 480
   ========================================================================== */

@media (min-width: 480px) {
  .masthead {
    padding: 24px 24px 26px;
  }

  .crest-name {
    font-size: 1.375rem;
  }

  .ad-label {
    padding: 7px 12px;
    font-size: 0.75rem;
  }

  .button {
    display: inline-flex;
    width: auto;
    min-width: 300px;
  }

  .desk {
    padding: 20px 14px 40px;
  }

  .page-end {
    padding: 48px 24px 56px;
  }
}

/* ==========================================================================
   Breakpoint 768
   ========================================================================== */

@media (min-width: 768px) {
  :root {
    --sheet-pad: 40px;
  }

  .masthead {
    padding: 36px 40px 40px;
  }

  .crest-mark {
    width: 54px;
    height: 54px;
  }

  .crest-words {
    padding: 4px 18px;
    gap: 5px;
  }

  .crest-name {
    font-size: 1.625rem;
  }

  .crest-meta {
    font-size: 0.75rem;
  }

  .ad-label {
    font-size: 0.8125rem;
    padding: 8px 14px;
  }

  .frame-media--hero {
    --ratio: 16 / 9;
  }

  .frame-media--hero video {
    object-position: 50% 0%;
  }

  .desk {
    padding: 56px 32px 88px;
  }

  .sheet {
    padding: 60px var(--sheet-pad) 68px;
    box-shadow: 0 1px 0 rgba(46, 36, 32, 0.08), 0 28px 48px -32px rgba(46, 36, 32, 0.4);
  }

  .part-head {
    column-gap: 20px;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    grid-template-areas:
      "num title"
      ". tag";
  }

  .ordinal {
    padding-top: 0.2rem;
    white-space: nowrap;
  }

  .frame-media--zoom {
    --ratio: 18 / 5;
  }

  .frame-media--zoom video {
    transform: none;
    object-position: 50% 100%;
  }

  .split {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .plate--side .frame {
    max-width: none;
  }

  .qa-item {
    padding: 8px 30px 10px;
  }

  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: revert;
  }

  .compare table {
    display: table;
  }

  .compare thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .compare th,
  .compare td {
    padding: 15px 16px;
    vertical-align: top;
    text-align: left;
    border-top: 1px solid var(--ink);
  }

  .compare tr {
    padding: 0;
    border-top: 0;
  }

  .compare tr:last-child {
    border-bottom: 0;
  }

  .compare tbody tr:last-child th,
  .compare tbody tr:last-child td {
    border-bottom: 1px solid var(--ink);
  }

  .compare thead th {
    padding-top: 0;
    border-top: 0;
    border-bottom: 1px solid var(--ink);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-strong);
  }

  .compare tbody tr:nth-child(even) th,
  .compare tbody tr:nth-child(even) td {
    background-color: var(--surface);
  }

  .compare tbody th {
    width: 22%;
    margin: 0;
    font-size: 1rem;
  }

  .compare td {
    margin: 0;
  }

  .compare td::before {
    content: none;
  }

  .page-end .address {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Breakpoint 1024
   ========================================================================== */

@media (min-width: 1024px) {
  .frame-media--hero {
    --ratio: 21 / 9;
  }

  .frame-media--hero video {
    object-position: 50% 0%;
  }

  .desk {
    padding: 72px 40px 104px;
  }

  .page-end {
    padding: 64px 40px 72px;
  }

  .page-end-inner {
    gap: 32px;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .button,
  .crest {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

/* ==========================================================================
   OFFER PAGE IDENTITY - body.consultation-portal
   Cool teal-slate consultation desk. Sora throughout, rounded forms,
   pill buttons, split hero band. Intentionally unlike the publication.
   ========================================================================== */

html:has(body.consultation-portal) {
  background-color: #F1F5F3;
  color: #12262B;
}

body.consultation-portal {
  --bg: #F1F5F3;
  --surface: #DDEAE6;
  --ink: #12262B;
  --muted: #4D6269;
  --muted-strong: #3E545B;
  --accent: #0E5C58;
  --accent-ink: #FFFFFF;
  --accent-deep: #0A4542;
  --line: #BDD0CB;
  --paper: #FFFFFF;
  --control: #6C8A84;
  --error: #A12B1C;
  --font-text: var(--font-display);

  background-color: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.consultation-portal .masthead {
  background-color: var(--bg);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.consultation-portal .crest {
  border-radius: 10px;
  overflow: hidden;
  border-color: var(--ink);
}

.consultation-portal .crest-name,
.consultation-portal .crest-meta,
.consultation-portal .ad-label,
.consultation-portal .masthead-back {
  font-family: var(--font-display);
}

.consultation-portal .ad-label {
  border-radius: 999px;
  border-color: var(--accent);
  color: var(--accent);
}

.consultation-portal .crest-meta {
  letter-spacing: 0.08em;
}

.consultation-portal .page-end .links a {
  font-size: 0.875rem;
}

html:not(.js) [data-next],
html:not(.js) [data-back] {
  display: none;
}

.portal-band {
  background-color: var(--accent);
  color: #FFFFFF;
  padding: 40px 16px 52px;
}

.portal-band-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "form";
}

.portal-intro {
  grid-area: intro;
  background-color: transparent;
  color: #FFFFFF;
}

.portal-intro .kicker {
  font-family: var(--font-display);
  color: #BFE0DA;
}

.portal-intro h1 {
  margin-bottom: 20px;
  color: #FFFFFF;
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.625rem);
  line-height: 1.15;
}

.portal-lede {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
  color: #FFFFFF;
}

.portal-note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid #5E9690;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #D6E8E4;
}

.request-card {
  grid-area: form;
  min-width: 0;
  padding: 26px 20px 30px;
  border-radius: 18px;
  background-color: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 56px -30px rgba(3, 28, 26, 0.7);
}

.request-card h2 {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.request-intro {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.stepper li {
  padding-top: 10px;
  border-top: 4px solid var(--line);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--muted);
}

.stepper li.is-current {
  border-top-color: var(--accent);
  color: var(--accent);
}

.stepper li.is-done {
  border-top-color: var(--accent);
  color: var(--ink);
}

.request-form {
  margin: 0;
  min-width: 0;
}

.form-step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  background-color: transparent;
  color: var(--ink);
}

.form-step[hidden] {
  display: none;
}

.form-step legend {
  float: left;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink);
}

.form-step legend + * {
  clear: both;
}

.field {
  margin: 0 0 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink);
}

.field select,
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--control);
  border-radius: 10px;
  background-color: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%230E5C58' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 9px;
}

.field select:hover,
.field input:hover {
  border-color: var(--accent);
}

.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px #BFE0DA;
}

.field select:focus-visible,
.field input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: none;
}

.field.has-error select,
.field.has-error input {
  border-color: var(--error);
  border-width: 2px;
}

.field-error {
  margin: 8px 0 0;
  min-height: 0;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.field--consent {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--bg);
}

.field--consent input[type="checkbox"] {
  width: 28px;
  height: 28px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.field--consent label {
  margin: 0;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}

.field--consent a {
  color: var(--accent);
  font-weight: 600;
}

.field--consent .field-error {
  grid-column: 1 / -1;
}

.consultation-portal .button {
  min-height: 56px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  width: 100%;
}

.consultation-portal .button:hover {
  transform: none;
  box-shadow: 0 10px 22px -12px rgba(10, 69, 66, 0.8);
}

.form-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.button-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background-color: transparent;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button-quiet:hover {
  background-color: var(--surface);
  color: var(--accent-deep);
}

.form-help {
  margin: 14px 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.form-success {
  padding: 22px 20px;
  border-radius: 14px;
  background-color: var(--surface);
  color: var(--ink);
}

.form-success[hidden] {
  display: none;
}

.form-success h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--ink);
}

.form-success p {
  margin: 0;
  color: var(--ink);
}

.portal-after {
  background-color: var(--bg);
  color: var(--ink);
  padding: 52px 16px 68px;
}

.portal-after-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.portal-after h2 {
  margin: 0;
  max-width: 24ch;
  font-weight: 700;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  line-height: 1.22;
  letter-spacing: -0.016em;
}

.portal-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.portal-steps li {
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--paper);
  color: var(--ink);
}

.portal-steps li::before {
  content: "";
  display: block;
  width: 28px;
  height: 6px;
  margin-bottom: 16px;
  border-radius: 999px;
  background-color: var(--accent);
}

.portal-steps h3 {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--ink);
}

.portal-steps p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-strong);
}

.consultation-portal .page-end {
  border-top: 1px solid var(--line);
}

.consultation-portal .closing_note,
.consultation-portal .page-end .links a {
  font-family: var(--font-display);
}

.consultation-portal .closing_note {
  font-size: 1rem;
  line-height: 1.65;
}

.consultation-portal .page-end .links {
  border-top-color: var(--line);
}

.consultation-portal .page-end .address {
  font-family: var(--font-display);
  font-size: 0.875rem;
}

@media (min-width: 480px) {
  .consultation-portal .button {
    width: auto;
    min-width: 260px;
  }

  .portal-band {
    padding: 52px 24px 64px;
  }

  .request-card {
    padding: 32px 30px 36px;
  }

  .portal-after {
    padding: 64px 24px 80px;
  }

  .form-actions {
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: center;
    gap: 14px;
  }
}

@media (min-width: 768px) {
  .portal-band {
    padding: 68px 40px 84px;
  }

  .portal-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .portal-after {
    padding: 80px 40px 96px;
  }
}

@media (min-width: 1024px) {
  .portal-band-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: "intro form";
    gap: 64px;
    align-items: start;
  }

  .portal-intro {
    padding-top: 16px;
  }

  .request-card {
    padding: 40px 40px 44px;
  }
}
