/* Shared styles for the LINDA Party membership pages (register, status, resign).
   Colours are LINDA Party's brand palette (navy, blue, red), as used on the original form. */
:root {
  color-scheme: light;
  --navy: #071d4b;
  --blue: #0926c8;
  --blue-dark: #071eaa;
  --red: #ed262d;
  --red-brand: #ed262d;
  --ink: #10244c;
  --muted: #66738b;
  --line: #dce3ef;
  --paper: #ffffff;
  --wash: #f5f7fc;
  --ok-bg: #e9f8ef; --ok-ink: #125b36;
  --err-bg: #fdecec; --err-ink: #8f1116;
  --warn-bg: #fff4d6; --warn-ink: #5c4300;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: clamp(20px, 5vw, 72px) 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--wash);
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 8px;
  color: #fff; background: var(--navy); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.demo-banner {
  max-width: 1120px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 12px;
  color: var(--warn-ink); background: var(--warn-bg); border: 1px solid #e8c766; font-size: .92rem;
}
.shell { max-width: 1120px; margin: auto; overflow: hidden; border-radius: 24px; background: var(--paper); box-shadow: 0 22px 70px #0a1c4930; }
.topline { height: 7px; background: linear-gradient(90deg, var(--blue) 0 76%, var(--red-brand) 76%); }
.layout { display: grid; grid-template-columns: .78fr 1.22fr; }
.intro { position: relative; isolation: isolate; padding: clamp(32px, 5vw, 56px); color: #fff; background: var(--navy); overflow: hidden; }
.intro::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -220px; top: 50%; border: 1px solid #ffffff1c; border-radius: 50%; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; text-decoration: none; }
.brand-link img { width: 44px; height: 44px; border-radius: 10px; background: #fff; object-fit: contain; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-top: 28px; color: #dbe4ff; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: var(--red-brand); }
.intro h1 { max-width: 440px; margin: 18px 0 14px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.035em; }
.intro p { max-width: 410px; margin: 0 0 14px; color: #dde5f5; line-height: 1.7; }
.intro a { color: #fff; }
.side-nav { display: grid; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.side-nav a { display: block; padding: 12px 14px; border: 1px solid #ffffff3a; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 700; }
.side-nav a:hover, .side-nav a:focus-visible { background: #ffffff14; }
.side-nav a[aria-current="page"] { background: #fff; color: var(--navy); }
.dpo { margin-top: 30px; padding-top: 20px; border-top: 1px solid #ffffff2c; font-size: .9rem; }
.dpo strong { display: block; margin-bottom: 4px; }

.main { padding: clamp(28px, 5vw, 56px); }
.main h2 { margin: 0; color: var(--navy); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; }
.lede { margin: 10px 0 24px; color: var(--muted); line-height: 1.65; }
.steps { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .85rem; color: var(--muted); }
.steps li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; }
.steps li[aria-current="step"] { color: #fff; background: var(--navy); border-color: var(--navy); font-weight: 700; }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
fieldset.group { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin: 6px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid #e3e8f1; }
fieldset.group > legend { padding: 0 0 4px; color: var(--navy); font-size: 1.02rem; font-weight: 800; }
.field { display: grid; gap: 6px; align-content: start; }
.field.full, .full { grid-column: 1 / -1; }
label, .label { color: var(--ink); font-size: .9rem; font-weight: 700; }
.req { color: var(--red); }
.hint { color: var(--muted); font-size: .84rem; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); background: #fff; font: inherit; font-size: 1rem;
}
input[readonly] { background: #f1f4f9; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #0926c855; outline-offset: 1px; border-color: var(--blue); }
[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.error-text { color: var(--err-ink); font-size: .86rem; font-weight: 600; }
.error-text:empty { display: none; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: .95rem; }
.choice input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
fieldset.choices { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
fieldset.choices > legend { padding: 0; margin-bottom: 6px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }

.notice { grid-column: 1 / -1; margin: 0; padding: 13px 15px; border-radius: 10px; font-size: .95rem; line-height: 1.5; }
.notice.ok { color: var(--ok-ink); background: var(--ok-bg); }
.notice.err { color: var(--err-ink); background: var(--err-bg); }
.notice.info { color: var(--ink); background: #eef2fb; }
.error-summary { grid-column: 1 / -1; padding: 14px 16px; border: 2px solid var(--red); border-radius: 10px; background: var(--err-bg); color: var(--err-ink); }
.error-summary h3 { margin: 0 0 6px; font-size: 1rem; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--err-ink); font-weight: 600; }

.consent { grid-column: 1 / -1; display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: var(--wash); font-size: .9rem; color: var(--ink); }
.consent a { color: var(--blue); }
.actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
  color: #fff; background: var(--blue); font: inherit; font-size: .95rem; font-weight: 800; text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--blue-dark); }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 3px solid var(--red-brand); outline-offset: 3px; }
button.secondary, .button.secondary { color: var(--navy); background: #e6ebf6; }
button.danger { background: var(--red); }
button[disabled] { opacity: .6; cursor: not-allowed; }
.panel { grid-column: 1 / -1; padding: 18px; border: 1px solid #e3e8f1; border-radius: 14px; }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.summary dt { color: var(--muted); font-weight: 600; }
.summary dd { margin: 0; font-weight: 700; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .85rem; font-weight: 800; }
.badge.active { color: var(--ok-ink); background: var(--ok-bg); }
.badge.resigned { color: var(--err-ink); background: var(--err-bg); }
.badge.pending { color: var(--warn-ink); background: var(--warn-bg); }
.otp-input { max-width: 220px; font-size: 1.4rem; letter-spacing: .35em; text-align: center; }
.footer-note { margin: 22px 0 0; color: var(--muted); font-size: .85rem; }

@media (max-width: 860px) {
  body { padding: 14px 10px; }
  .layout { grid-template-columns: 1fr; }
  .intro, .main { padding: 28px 22px; }
}
@media (max-width: 560px) {
  form, fieldset.group, .checks { grid-template-columns: 1fr; }
  .field.full, .full, fieldset.group, .notice, .consent, .actions, .panel { grid-column: auto; }
  .actions button, .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  body { background: #fff; padding: 0; }
  .intro, .actions, .skip-link, .demo-banner, .steps { display: none !important; }
  .layout { grid-template-columns: 1fr; }
  .shell { box-shadow: none; }
}
