/* SEABA website styles. Layout from the approved mockups; colours, fonts and
   accessibility from BRAND-GUIDE.md. No external resources.

   Z-INDEX SCALE (keep to these values):
     1   page content (main and its sections)
     5   art layers drawn over content edges (footer landscape scene)
     30  site header / admin sidebar
     40  menus, dropdowns and modal-like panels
   Art rule: artwork is only ever scaled by width (width: 100%; height: auto).
   It is never cropped with object-fit or a fixed height. */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Titan One"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/titan-one-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/nunito-latin-900-normal.woff2") format("woff2"); }

:root {
  --blue: #0E71B4; --blue-bright: #0078D1; --navy: #032753; --navy-mid: #003F80;
  --yellow: #FDFCAA; --cream: #EEEEA4; --hill: #80B8D5; --hill-muted: #5695B7;
  --white: #FFFFFF; --wash: #F6F8E8; --ink: #0B1B33;
  --error: #C0392B; --success: #1E7B4F;
  --tint: #DDEBF5;          /* light Hill Blue tint for icon bubbles and table heads */
  --line: #E1E6D3;
  --radius: 20px; --radius-sm: 12px;
  --shadow: 0 8px 24px rgba(3, 39, 83, .12);
  --shadow-soft: 0 4px 14px rgba(3, 39, 83, .08);
  --display: "Titan One", "Arial Black", "Nunito", system-ui, sans-serif;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 16px;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--blue);
  /* Footer landscape: 1536x596 art drawn at full width, capped at 1600px. */
  --scene-w: min(100vw, 1600px);
  --scene-h: calc(var(--scene-w) * 0.3880);
  /* Share of the scene height kept clear of content. The top of the art is
     transparent sky, so content may sit over the rest; measured from the
     art's alpha profile for the content width at each breakpoint. */
  --scene-clear: 1;
}
@media (min-width: 1200px) { :root { --scene-clear: .94; } }
@media (min-width: 1400px) { :root { --scene-clear: .8; } }
@media (min-width: 1600px) { :root { --scene-clear: .74; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; position: relative; z-index: 1; padding-bottom: calc(var(--scene-h) * var(--scene-clear)); }
body > .site-header, body > .site-footer { flex: none; }
body.page-wash { background: var(--wash); }
img, svg { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { color: var(--navy); font-weight: 900; line-height: 1.12; margin: 0 0 1rem; letter-spacing: -.015em; }
h1, .h1, h2, .h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; }
h1, .h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); }
h2, .h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
/* Slight hand-made tilt, as on the flyer and mockups (decorative only). */
.tilt { display: inline-block; max-width: 100%; transform: rotate(-1.6deg); transform-origin: left center; }
.tilt-up { display: inline-block; transform: rotate(-2.2deg); transform-origin: left bottom; }
h3, .h3 { font-size: 1.35rem; font-weight: 800; }
h4, .h4 { font-size: 1.1rem; font-weight: 800; }
.caps { text-transform: uppercase; letter-spacing: 0; }
strong { font-weight: 800; }
a { color: var(--blue); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--navy-mid); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--yellow); color: var(--navy); padding: 12px 20px; border-radius: 999px; font-weight: 800; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
@media (min-width: 700px) { :root { --gutter: 24px; } }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }
.muted { color: #4A5A70; }

/* ---------- Spark marks beside headings (decorative) ---------- */
.sparked, .sparked-sm, .spark-left-only { position: relative; display: inline-block; max-width: 100%; }
.sparked { padding: 0 1.15em; }
.sparked::before, .sparked::after, .sparked-sm::before, .sparked-sm::after, .spark-left-only::before {
  content: ""; position: absolute; top: 50%; width: .8em; height: 1.2em; transform: translateY(-50%);
  background: url("../img/art/spark-left.svg") center / contain no-repeat;
}
.sparked::before, .sparked-sm::before { left: 0; }
.sparked::after, .sparked-sm::after { right: 0; background-image: url("../img/art/spark-right.svg"); }
.sparked-sm { padding: 0 1.1em; }
.sparked-sm::before, .sparked-sm::after { width: .75em; height: 1.1em; }
.spark-left-only { padding-left: .75em; }
.spark-left-only::before { left: -.2em; top: .2em; transform: none; width: .7em; height: 1.05em; background-image: url("../img/art/spark-left-dark.svg"); }
.page-title .sparked { padding: 0 1.05em; }
.caps { text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 48px; padding: .7rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 1.05rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; stroke-width: 3; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy-mid); color: var(--white); }
.btn-outline-white { border-color: var(--white); }
.btn-secondary { background: var(--yellow); color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--cream); color: var(--navy); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--wash); color: var(--navy); }
.btn-large { min-height: 60px; padding: .9rem 2.4rem; font-size: 1.35rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: relative; z-index: 30; box-shadow: 0 1px 0 rgba(3, 39, 83, .06); }
.header-inner { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; min-height: 80px; padding-top: 8px; padding-bottom: 8px; position: relative; }
.brand { margin-right: auto; display: block; border-radius: 50%; }
.brand-logo { width: 64px; height: 64px; filter: drop-shadow(0 3px 8px rgba(3, 39, 83, .2)); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem 2rem; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { color: var(--blue); text-decoration: underline; text-decoration-color: var(--hill); text-decoration-thickness: 3px; }
.site-nav .btn { color: var(--white); font-size: 1.25rem; padding: .75rem 1.9rem; }
.nav-toggle { display: none; align-items: center; gap: .4rem; min-height: 48px; padding: 0 1.1rem; border-radius: 999px; background: var(--navy); color: var(--white); border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.nav-toggle .icon { width: 1.3em; height: 1.3em; }
@media (min-width: 900px) {
  .header-inner { min-height: 120px; }
  .brand-logo { width: 104px; height: 104px; }
}
@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { z-index: 40; display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius); }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-wrap: wrap; justify-content: flex-end; padding: .5rem 0; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.25rem; gap: 0; }
  .js .site-nav li a:not(.btn) { display: block; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .js .site-nav .nav-cta { margin-top: .9rem; }
  .js .site-nav .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 22px 0; }
@media (min-width: 900px) { .section { padding: 64px 0; } .section-tight { padding: 26px 0; } }
.heading-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.heading-row h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -.03em; }
.heading-row p { margin: 0; flex: 1 1 240px; max-width: 34rem; font-weight: 600; color: var(--navy); }
.lead-strong { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: .75rem; }
.note { font-size: .95rem; color: var(--navy-mid); margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy); isolation: isolate; z-index: 1; }
.hero-media { overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
/* Photo (not artwork): cropped towards the two riders on the path. */
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 92% 78%; transform: scale(1.42); transform-origin: 86% 80%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 39, 83, .96) 0%, rgba(3, 39, 83, .88) 30%, rgba(3, 39, 83, .45) 52%, rgba(3, 39, 83, 0) 68%); }
.hero-inner { position: relative; z-index: 2; padding-top: 56px; padding-bottom: calc(100vw * 0.1706 * .7 + 24px); min-height: 540px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy { max-width: 36rem; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: -.01em; margin-bottom: 1.1rem; }
.hero-title { transform: rotate(-2deg); transform-origin: left bottom; }
.hero p { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; max-width: 28rem; line-height: 1.35; }
.hero .btn-row { margin-top: 1.4rem; }
.hero .btn { font-size: 1.3rem; min-height: 58px; padding: .8rem 1.8rem; border-width: 3px; }
.hero .btn-secondary { border-color: var(--navy); }
/* Art: trees and hills, fading to white; the white lower part hangs into the next (white) section. */
/* Trees and hills fading to white: scaled by width only. Its white lower part
   hangs into the white section below, so there is no seam. */
.hero-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; transform: translateY(30%); pointer-events: none; z-index: 1; }
@media (max-width: 699px) {
  /* Phones: photo on top (riders clearly visible), headline below on navy. */
  .hero-media { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3; }
  .hero-media img { object-position: 84% 72%; transform: scale(1.35); transform-origin: 84% 72%; }
  .hero::before { inset: auto 0 0 0; height: 100%; background: linear-gradient(180deg, rgba(3, 39, 83, 0) 0%, rgba(3, 39, 83, 0) 28%, var(--navy) 46%, var(--navy) 100%); z-index: 1; }
  .hero-inner { position: relative; z-index: 2; margin-top: -56px; padding-top: 0; padding-bottom: 96px; min-height: 0; }
}

/* ---------- Aims ---------- */
.section-aims { padding-top: clamp(64px, 9vw, 110px); padding-bottom: 8px; }
.aims-layout { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 960px) { .aims-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 1.5rem; } }
.aims-main { display: flex; flex-direction: column; }
.aim-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; flex: 1; }
@media (min-width: 640px) { .aim-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; } }
.aim-card { display: flex; flex-direction: column; gap: .5rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); border: 1px solid #EEF1E4; padding: 1.1rem; }
.aim-head { display: flex; align-items: center; gap: .9rem; }
.aim-head .icon-bubble { width: 60px; height: 60px; }
.aim-head .icon-bubble .icon { width: 32px; height: 32px; }
.aim-card h3 { font-size: 1.2rem; margin: 0; }
.aim-card p { font-size: .92rem; line-height: 1.5; margin: 0; color: #22324A; }
.icon-bubble { flex: none; display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--tint); color: var(--navy); }
.icon-bubble .icon { width: 38px; height: 38px; stroke-width: 1.8; }
.icon-bubble.small { width: 44px; height: 44px; }
.icon-bubble.small .icon { width: 22px; height: 22px; }
.photo-frame { position: relative; margin: 0; min-height: 280px; }
.photo-frame img { position: absolute; inset: 0; border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; box-shadow: var(--shadow); border: 4px solid var(--yellow); }
@media (max-width: 959px) { .photo-frame { aspect-ratio: 4 / 3; min-height: 0; } }

/* ---------- Code of conduct band ---------- */
.code-band { background: var(--yellow); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width: 900px) { .code-band { padding: 1.5rem 2rem; } }
.code-band .heading-row { margin-bottom: 1rem; }
.code-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
@media (min-width: 640px) { .code-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .code-list { grid-template-columns: repeat(5, 1fr); gap: 0; } .code-list li + li { border-left: 2px solid rgba(3, 63, 128, .25); } }
.code-list li { display: flex; align-items: center; gap: .75rem; padding: .25rem 1rem; font-weight: 800; color: var(--navy); line-height: 1.25; }
.tick { flex: none; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: var(--white); }
.tick .icon { width: 28px; height: 28px; stroke-width: 3.2; }

/* ---------- Why join banner ---------- */
.join-banner {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.75rem 1.75rem calc(60% * 0.1706 * .75 + 1rem); border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #FBFCEF 0%, var(--white) 75%); box-shadow: var(--shadow-soft); border: 1px solid #EEF1E4;
}
.banner-hills { position: absolute; right: 0; bottom: 0; width: 60%; height: auto; z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
@media (min-width: 800px) { .join-banner { padding: 1.75rem 2.5rem calc(60% * 0.1706 * .75 + 1rem); } }
.join-price { font-family: var(--display); font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 400; color: var(--navy); line-height: 1; margin: 0 0 .3rem; letter-spacing: -.02em; }
.join-due { font-family: var(--display); font-size: 1.45rem; font-weight: 400; color: var(--navy); margin: 0 0 .3rem; }
.join-banner p:last-child { margin: 0; font-size: 1.15rem; }

/* ---------- Get involved + contact ---------- */
.split { display: grid; gap: 2.5rem; }
.split { align-items: stretch; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 0; } .split > div { padding: 0 2.5rem; } .split > div:first-child { padding-left: 0; border-right: 2px solid var(--line); } .split > div:last-child { padding-right: 0; } }
.split h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: .5rem; }
.involved { display: flex; flex-direction: column; }
.contact form, .contact .success-panel { position: relative; z-index: 2; background: var(--white); border-radius: var(--radius-sm); }
.contact-person { display: flex; gap: .75rem; align-items: center; background: var(--wash); border-radius: var(--radius-sm); padding: .75rem 1rem; }
.section-split { position: relative; padding-bottom: 24px; }
.section-split > .wrap { position: relative; z-index: 1; }
@media (min-width: 900px) { .contact { position: relative; z-index: 2; } }
.form-inline-labels .field { display: grid; gap: .3rem; }
@media (min-width: 560px) { .form-inline-labels .field { grid-template-columns: 90px 1fr; align-items: start; } .form-inline-labels .field label { padding-top: .8rem; } .form-inline-labels .field-error { grid-column: 2; } }

/* ---------- Footer ---------- */
/* Footer: navy bar with the landscape scene as a layer standing on its top edge.
   The scene is drawn at its natural aspect ratio (never cropped), above page
   content (z 5), and lets clicks through. main reserves the space it needs. */
.site-footer { position: relative; z-index: 5; color: var(--white); }
.site-footer a { color: var(--yellow); }
.footer-bar { position: relative; background: var(--navy); padding: 0 0 1.5rem; }
.footer-scene { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: -1px; pointer-events: none; line-height: 0;
  /* wider than the art (over 1600px): continue the navy ground sideways */
  background: linear-gradient(180deg, transparent 0, transparent 58%, var(--navy) 58%); }
.footer-scene img { display: block; width: 100%; max-width: 1600px; height: auto; margin: 0 auto; }
@media (min-width: 1601px) {
  .footer-scene img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 0; padding-top: 0; }
.footer-logo { width: 104px; height: 104px; margin: -28px 1rem 0 0; position: relative; }
.footer-item { margin: 0; padding: .25rem 1.75rem; font-weight: 600; }
@media (min-width: 800px) { .footer-item + .footer-item { border-left: 2px solid rgba(255, 255, 255, .3); } }
.footer-mail { display: flex; align-items: center; gap: .75rem; }
.mail-dot { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue-bright); color: var(--white); }
.footer-links { list-style: none; display: flex; gap: 1.5rem; }
.footer-small { font-size: .9rem; opacity: .9; margin-top: 1rem; }
.footer-small p { margin: 0; }
@media (max-width: 799px) { .footer-item { padding: .25rem 0; width: 100%; } .footer-logo { margin-top: -30px; width: 84px; height: 84px; } }

/* Landscape band (join, update, privacy) */


/* ---------- Page title (join, update, privacy) ---------- */
.page-title { text-align: center; padding: 28px 0 1.5rem; }
@media (min-width: 900px) { .page-title { padding-top: 40px; } }
.page-title h1 { font-size: clamp(2.4rem, 6.6vw, 5.2rem); margin-bottom: .6rem; }
.page-sub { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 800; color: var(--navy); margin-bottom: 1rem; }
.price-pill { display: inline-flex; flex-direction: column; align-items: center; margin: 0; }
.price-pill strong, .price-pill span { position: relative; }
.price-pill { background: var(--yellow); border: 3px solid var(--blue); border-radius: 999px; padding: .4rem 2.4rem .5rem; color: var(--navy); line-height: 1.15; }
.price-pill strong { font-family: var(--display); font-size: clamp(1.3rem, 2.8vw, 1.85rem); font-weight: 400; }
.price-pill span { font-weight: 800; }
.price-pill.sparked-sm::before, .price-pill.sparked-sm::after { width: 2.2em; height: 3.4em; }
.price-pill.sparked-sm::before { left: -3em; }
.price-pill.sparked-sm::after { right: -3em; }
@media (max-width: 599px) { .price-pill.sparked-sm::before, .price-pill.sparked-sm::after { display: none; } .price-pill { padding: .4rem 1.4rem .5rem; } }
.draft-flag { display: inline-block; background: var(--yellow); color: var(--navy); border: 2px solid var(--navy); border-radius: 999px; padding: .2rem 1rem; font-weight: 900; letter-spacing: .04em; }

/* ---------- Forms ---------- */
.form-wrap { max-width: 980px; position: relative; z-index: 2; }
.form .field { margin-bottom: 1rem; }
.form label, .form legend { display: block; font-weight: 800; color: var(--navy); margin-bottom: .35rem; }
.req { color: var(--navy-mid); font-weight: 600; font-size: .9em; }
.hint { font-size: .95rem; color: #3B4A5E; margin: .35rem 0 0; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="password"],
.form input[type="search"], .form input[type="url"], .form input[type="date"], .form input[type="number"], .form select, .form textarea {
  width: 100%; min-height: 52px; padding: .7rem 1rem; font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid var(--hill-muted); border-radius: var(--radius-sm); appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.form textarea { min-height: 100px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(14, 113, 180, .35); }
.form [aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-weight: 700; font-size: .95rem; margin: .35rem 0 0; display: flex; gap: .4rem; }
.field-error::before { content: "!"; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--error); color: var(--white); display: grid; place-items: center; font-size: .8rem; font-weight: 900; margin-top: .15rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-grid { display: grid; gap: 0 1.5rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }

/* Step cards (join form) */
.step-card { display: grid; grid-template-columns: 1fr; gap: .75rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 1.25rem; margin-bottom: 1rem; }
@media (min-width: 700px) { .step-card { grid-template-columns: 72px 1fr; gap: 1.25rem; padding: 1.25rem 1.5rem 1.25rem 1.25rem; } }
.step-icon { width: 64px; height: 64px; }
@media (max-width: 699px) { .step-icon { display: none; } }
.step-title { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 400; color: var(--navy) !important; margin: .35rem 0 .25rem !important; float: left; width: 100%; }
.step-title + * { clear: both; }
.step-note { color: #3B4A5E; margin-bottom: .9rem; }
@media (min-width: 700px) {
  .field-row { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; align-items: start; }
  .field-row label { padding-top: .8rem; margin: 0; }
  .field-row .field-error { grid-column: 2; }
}

/* Payment option cards */
.pay-options { display: grid; gap: 1rem; }
@media (min-width: 760px) { .pay-options { grid-template-columns: repeat(3, 1fr); } }
.pay-option { position: relative; display: flex; flex-direction: column; }
.pay-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-option label {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: 0; padding: 1rem 1rem 1.1rem; cursor: pointer; text-align: center;
  border: 2px solid #D5DEE6; border-radius: var(--radius); background: var(--white); font-weight: 600; color: var(--ink); position: relative;
}
.pay-head { display: flex; align-items: center; gap: .6rem; align-self: stretch; font-weight: 800; color: var(--navy); font-size: 1.08rem; text-align: left; }
.pay-head::before { content: ""; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--navy); background: var(--white); }
.pay-option input:checked + label { border: 3px solid var(--blue); box-shadow: 0 0 0 1px var(--blue); padding: calc(1rem - 1px) calc(1rem - 1px) calc(1.1rem - 1px); }
.pay-option input:checked + label .pay-head::before { border-color: var(--blue); background: radial-gradient(var(--blue) 0 42%, var(--white) 46%); }
.pay-option input:focus-visible + label { box-shadow: var(--focus); }
.pay-qr { width: 150px; border-radius: 8px; }
.pay-text { font-size: .98rem; }
.pay-text.small { font-size: .9rem; color: #3B4A5E; }
.pay-link { font-size: .9rem; }
.bank-box { align-self: stretch; display: grid; gap: .3rem; background: var(--tint); border-radius: var(--radius-sm); padding: .9rem 1rem; text-align: left; }
.bank-row { display: flex; flex-direction: column; line-height: 1.3; }
.bank-row span { color: var(--navy-mid); font-size: .9rem; font-weight: 700; }
.bank-row strong { color: var(--navy); }
.pill { display: inline-block; border-radius: 999px; padding: .1rem .9rem; font-size: .9rem; font-weight: 800; }
.pill-yellow { background: var(--yellow); color: var(--navy); border: 2px solid #E7E68C; }

/* Consent panel */
.consent-panel { background: var(--yellow); border-radius: var(--radius); padding: 1rem 1.25rem .25rem; color: var(--navy); }
.check, .form .check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 600 !important; color: var(--ink) !important; margin: 0 0 .9rem !important; cursor: pointer; }
.check input { flex: none; width: 26px; height: 26px; margin: .05rem 0 0; accent-color: var(--blue); cursor: pointer; }
.submit-area { text-align: center; padding: 1rem 0 0; position: relative; z-index: 2; }
.lock-note { display: flex; gap: .5rem; align-items: center; justify-content: center; font-size: .95rem; color: var(--navy); margin: .8rem 0; font-weight: 600; }
.lock-note .icon { color: var(--navy); }
.contact .lock-note { justify-content: flex-start; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Info box (update page) */
.info-box { display: flex; gap: 1rem; align-items: center; background: var(--yellow); border-radius: var(--radius); padding: 1rem 1.5rem; color: var(--navy); font-weight: 800; font-size: 1.1rem; line-height: 1.4; max-width: 820px; margin: 0 auto 1.25rem; text-align: left; }
.info-box .info-dot { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: var(--white); }
.info-box .icon { width: 32px; height: 32px; stroke-width: 3.4; }
.info-box p { margin: 0; }
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 1.5rem; max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
@media (min-width: 700px) { .form-card { padding: 2rem 2.5rem 1.25rem; } }
.update-grid { display: grid; gap: 0 2rem; }
@media (min-width: 700px) { .update-grid { grid-template-columns: 1.35fr 1fr; } }

/* Messages */
.alert { border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 0 0 1.25rem; font-weight: 600; border-left: 6px solid; }
.alert-error { background: #FBEDEB; color: #7A2318; border-color: var(--error); }
.alert-success { background: #E8F4EE; color: #134D31; border-color: var(--success); }
.alert-info { background: #EAF3FA; color: var(--navy); border-color: var(--blue); }
.alert ul { margin: .5rem 0 0; }
.success-panel { text-align: center; padding: 2rem 1rem; }
.success-icon { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; background: var(--success); color: var(--white); display: grid; place-items: center; }
.success-icon .icon { width: 44px; height: 44px; stroke-width: 3; }
.success-panel h2, .success-panel h3 { color: var(--success); }
[hidden] { display: none !important; }

/* Cards and prose */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 1.5rem; }
@media (min-width: 700px) { .card { padding: 2rem; } }
.card-top { border-top: 4px solid var(--yellow); }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose h2:first-of-type { margin-top: 1rem; }
.todo { background: #FFF3CD; outline: 2px dashed var(--navy-mid); padding: 0 .25rem; }
.plain-page { background: var(--wash); }

/* 2FA setup (installer and admin) */
.qr-box { background: var(--white); padding: 12px; border: 2px solid var(--hill-muted); border-radius: var(--radius-sm); width: max-content; max-width: 100%; margin-bottom: 1rem; }
.qr-box svg { width: 240px; height: 240px; }
.codes { columns: 2; font-size: 1.1rem; }
.codes code, code.secret { font-weight: 800; letter-spacing: .05em; color: var(--navy); }
code.secret { word-break: break-all; }
pre.copy { background: var(--navy); color: var(--yellow); padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.step-n { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--blue); color: var(--white); display: inline-grid; place-items: center; font-size: 1.05rem; flex: none; margin-right: .5rem; }
.form-step { margin-bottom: 1.5rem; }
.form-step > legend { font-size: 1.35rem; font-weight: 900; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print { .site-header, .site-footer, .hero-hills, .btn { display: none !important; } }
