/* Recycler accreditation page. Same language as the landing page: Plastiks blue, Recovery green,
   Geist, flat fields, square buttons, nothing printed on a picture. Standalone (no page.css). */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Devanagari";
  src: url("/fonts/NotoSansDevanagari-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

:root {
  --bg: #FFFFFF;
  --surface: #F4F6FA;
  --ink: #0A0F1F;
  --muted: #5E6A7E;
  --field: #082FB9;
  --accent: #08805A;
  --danger: #B42318;
  --dangerTint: #FDEDEB;
  --edge: #0A0F1F;
  --h1: clamp(2.5rem, 1.4rem + 4.6vw, 5.5rem);
  --h2: clamp(1.625rem, 1.2rem + 1.2vw, 2.5rem);
  --body: clamp(1.0625rem, 0.8rem + 0.5vw, 1.5rem);
  --small: clamp(1rem, 0.85rem + 0.3vw, 1.1875rem);
  --gutter: 16px;
  --button: clamp(3.5rem, 2.8rem + 1.1vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Geist", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--body); line-height: 1.5; font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
a { color: inherit; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--field); outline-offset: 3px; }

/* ---------- Header: one white bar, edge to edge ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 0 var(--gutter); background: var(--bg);
}
.bar__brand { display: flex; align-items: center; min-height: 44px; }
.bar__brand img { height: 26px; width: auto; }
.bar__back {
  display: flex; align-items: center; min-height: 44px;
  font-weight: 600; font-size: max(1rem, 0.9rem + 0.2vw);
  text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 0.09em;
}

/* ---------- Buttons: flat and square, as on the landing page ---------- */
.button {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--button); padding: 0 24px; border: 0; width: 100%;
  font: inherit; font-size: max(1.0625rem, 1.05em); font-weight: 600; line-height: 1.2; text-align: center;
  text-decoration: none; color: #FFFFFF; cursor: pointer;
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease;
}
.button--blue { background: var(--field); }
.button--green { background: var(--accent); }
.button:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .button:hover { background-color: var(--ink); } }

/* ---------- Layout: blue field with the explanation, white page with the form ---------- */
.page { display: grid; }
.intro {
  background: var(--field); color: #FFFFFF;
  padding: 32px var(--gutter) 36px; display: grid; align-content: start; row-gap: 22px;
}
.intro :focus-visible { outline-color: #FFFFFF; }
.intro h1 { font-size: var(--h1); font-weight: 600; line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.intro__lead { max-width: 40rem; font-weight: 500; }
.steps { display: grid; row-gap: 14px; max-width: 40rem; counter-reset: step; }
.steps li { position: relative; padding-left: 2.4em; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0.08em; width: 1.7em; height: 1.7em;
  display: grid; place-items: center; background: #FFFFFF; color: var(--field);
  font-weight: 700; font-size: 0.9em; line-height: 1;
}
.steps strong { font-weight: 600; }
.already { background: #FFFFFF; color: var(--ink); padding: 18px; display: grid; row-gap: 12px; max-width: 40rem; }
.already__say { font-weight: 600; font-size: var(--small); }
.already .button { width: 100%; }
.already :focus-visible { outline-color: var(--field); }

.ask { padding: 32px var(--gutter) 40px; background: var(--bg); }
.form, .done, .problem { max-width: 44rem; }
.form h2, .done h2, .problem h2 { font-size: var(--h2); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; }
.form { display: grid; row-gap: 20px; }
.form__note { font-size: var(--small); color: var(--muted); margin-top: -8px; }

/* ---------- Fields ---------- */
.pair { display: grid; row-gap: 20px; }
.field { display: grid; row-gap: 6px; }
.field label { font-weight: 600; font-size: var(--small); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 56px; padding: 12px 14px;
  font: inherit; font-size: max(1rem, 1.05em); color: var(--ink);
  background: #FFFFFF; border: 2px solid var(--edge); border-radius: 0;
}
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.4; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--field); outline-offset: 2px; }
.field__hint { font-size: var(--small); color: var(--muted); }
.field__error { display: none; font-size: var(--small); font-weight: 600; color: var(--danger); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); background: var(--dangerTint); }
.field.has-error .field__error { display: block; }
.field--check { grid-template-columns: 28px 1fr; column-gap: 12px; align-items: start; }
.field--check input { width: 28px; height: 28px; margin: 2px 0 0; accent-color: var(--field); }
.field--check label { font-weight: 500; font-size: max(1rem, 1.02em); }
.field--check .field__error { grid-column: 1 / -1; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__status { min-height: 1.5em; font-size: var(--small); font-weight: 600; }
.form__status.is-error { color: var(--danger); }
.form__fine { font-size: var(--small); color: var(--muted); }

/* ---------- Result panels: pure CSS, so they work without JavaScript ---------- */
.done, .problem { display: none; row-gap: 16px; padding: 24px; margin-bottom: 8px; }
.done { background: var(--surface); border-left: 0; }
.done p, .problem p { max-width: 36rem; }
.problem { background: var(--dangerTint); color: var(--ink); margin-bottom: 24px; }
.problem a { font-weight: 600; }
.done:target, .problem:target { display: grid; }
.done:target ~ .form { display: none; }
.done:focus { outline: none; }

/* ---------- Footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 16px var(--gutter) 14px; background: var(--ink); color: #FFFFFF; }
.foot__logo { display: flex; align-items: center; min-height: 44px; }
.foot__logo img { height: 26px; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: max(1rem, 0.95em); }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.foot :focus-visible { outline-color: #FFFFFF; }

/* ---------- Wide screens ---------- */
@media (min-width: 760px) {
  :root { --gutter: 24px; }
  .pair { grid-template-columns: 1fr 1fr; column-gap: 20px; }
}
@media (min-width: 1000px) {
  :root { --gutter: 32px; }
  .page { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: calc(100svh - 56px - 76px); }
  .intro { padding: clamp(40px, 5vw, 96px) clamp(32px, 4vw, 88px) clamp(40px, 5vw, 96px) var(--gutter); row-gap: clamp(22px, 2vw, 36px); }
  .ask { padding: clamp(40px, 5vw, 96px) var(--gutter) clamp(40px, 5vw, 96px) clamp(32px, 4vw, 88px); }
  .bar { min-height: 64px; }
  .bar__brand img { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

/* ---------- The standardized questions: grouped options ---------- */
.group { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; row-gap: 4px; }
.group legend { padding: 0; font-weight: 600; font-size: max(1.0625rem, 1.03em); line-height: 1.3; margin-bottom: 4px; }
.group__hint { font-size: var(--small); color: var(--muted); margin-bottom: 6px; }
.opt { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: start; min-height: 48px; padding: 10px 12px; background: var(--surface); }
.opt input { width: 28px; height: 28px; margin: 0; accent-color: var(--field); }
.opt label { font-size: max(1rem, 1.02em); line-height: 1.35; font-weight: 500; padding-top: 2px; cursor: pointer; }
.opt input[type="radio"] { border-radius: 50%; }
.opt__text { margin-top: 2px; }
.group .opt__text {
  width: 100%; min-height: 56px; padding: 12px 14px;
  font: inherit; font-size: max(1rem, 1.05em); color: var(--ink);
  background: #FFFFFF; border: 2px solid var(--edge); border-radius: 0;
}
.group .opt__text:focus { outline: 3px solid var(--field); outline-offset: 2px; }
.group.has-error .opt { background: var(--dangerTint); }
.group.has-error .field__error { display: block; }
.group .opt__text[aria-invalid="true"] { border-color: var(--danger); }

/* On wide screens the explanation stays in view while the longer form scrolls. */
.intro__inner { display: grid; row-gap: 22px; align-content: start; }
@media (min-width: 1000px) {
  .intro__inner { position: sticky; top: 24px; row-gap: clamp(22px, 2vw, 36px); }
}
