/* Inspired by runaki.gov.krd: Montserrat, gold pill buttons, cream bands, near-black
   footer. Compact scale (feels like ~80% zoom). Colours and sizes in the variables. */

/* ---------- fonts (self-hosted, variable: one file covers every weight) ---------- */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/noto-sans-arabic-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --ink: #1A1A1C;
  --ink-soft: #2A3337;
  --muted: #64666B;
  --line: #EFEADF;
  --input: #D9D3C4;
  --cream: #FFF8E6;
  --cream-line: #F0E2BC;
  --gold: #ECC76A;          /* buttons */
  --gold-hover: #F2D585;
  --gold-deep: #C9A55A;     /* accents (logo gold #D2AD50) */
  --gold-text: #7E611E;
  --red: #C0392B;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 56px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-ku: "Noto Sans Arabic", "Montserrat", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: #fff; color: var(--ink); font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
p { margin: 0; }
a { color: var(--gold-text); }
[lang="ku"], [lang="ckb"], [lang="ar"] { font-family: var(--font-ku); line-height: 1.75; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- languages ----------
   <html data-lang="ckb|bad|ar|en"> (set by lang.js). Each text says which languages show it
   (data-for="ckb bad"); every other text is hidden. */
html[data-lang="en"] [data-for]:not([data-for~="en"]),
html[data-lang="ckb"] [data-for]:not([data-for~="ckb"]),
html[data-lang="bad"] [data-for]:not([data-for~="bad"]),
html[data-lang="ar"] [data-for]:not([data-for~="ar"]) { display: none !important; }

.lbl, .opt-text, .sec-title, .bi-block, .field-error, .alert, .statement, .footer-note { display: flex; flex-direction: column; }
[dir="rtl"] .q-ku, [dir="rtl"] .t-ku { order: -1; }

/* English inside the right-to-left layout: keep its punctuation in place */
.t-en, .q-en, .map-status, .hint, .opt, #form-errors { unicode-bidi: plaintext; }
[dir="rtl"] .reg-form .q-en, [dir="rtl"] .reg-form .t-en, [dir="rtl"] .reg-form .hint,
[dir="rtl"] .reg-form .map-status, [dir="rtl"] #form-errors { text-align: right; }

/* ---------- header ---------- */
/* header and footer keep the English layout in every language (logo left, switch right) */
.site-header, .site-footer { direction: ltr; }
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 1px 10px rgba(26, 26, 28, .06); }
.header-inner { max-width: 1040px; margin: 0 auto; padding: 0 20px; height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; }
.logo { height: 26px; width: auto; display: block; flex: none; }
.brand-divider { flex: none; width: 1px; height: 24px; background: var(--line); }
/* header title: always English and Sorani, English first */
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; direction: ltr; }
.brand-app { font-weight: 600; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-ku { font-size: 13px; font-weight: 600; color: var(--ink-soft); line-height: 1.4; }
/* the English title is already on the line above */
html[data-lang="en"] .brand-ku { display: none; }

.lang-switch { margin-inline-start: auto; display: flex; flex: none; padding: 3px; gap: 2px; background: #F6F3EC; border-radius: 100px; }
.lang-switch button {
  min-height: 32px; border: 0; background: none; cursor: pointer; padding: 4px 11px; border-radius: 100px;
  font: 600 12px/1.4 var(--font); color: var(--muted);
}
.lang-switch button[lang="ckb"], .lang-switch button[lang="ku"], .lang-switch button[lang="ar"] { font-family: var(--font-ku); }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* ---------- hero band ---------- */
.hero { background: linear-gradient(180deg, var(--cream), #FFFDF7); }
.hero-inner { max-width: 620px; margin: 0 auto; padding: 24px 24px 60px; text-align: center; }
.hero .t-ku { font-size: 15.5px; font-weight: 600; line-height: 1.8; color: var(--ink); }
.hero .t-en { font-size: 13px; color: var(--ink-soft); }
html[data-lang="en"] .hero .t-en { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.hero-band { height: 88px; }
/* intro from Kobo: first paragraph = lead, the others = points with icons */
.hero-inner.has-intro { max-width: 640px; text-align: start; padding-top: 20px; }
.intro { display: flex; flex-direction: column; gap: 14px; }
.intro-lead { font-size: 16.5px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.intro[lang="ckb"] .intro-lead, .intro[lang="ku"] .intro-lead, .intro[lang="ar"] .intro-lead { font-size: 17px; line-height: 1.85; }
.intro-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.intro-point {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--cream-line); border-radius: var(--radius-sm);
}
.intro-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--ink);
}
.intro-icon svg { width: 18px; height: 18px; }
.intro-text { font-size: 14px; line-height: 1.6; color: var(--ink-soft); min-width: 0; }
.intro[lang="ckb"] .intro-text, .intro[lang="ku"] .intro-text, .intro[lang="ar"] .intro-text { font-size: 14.5px; line-height: 1.8; }
.intro-text p { margin: 0; }
.intro-text a[href^="tel:"] { font-weight: 700; color: var(--ink); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.bi-block { gap: 4px; }

/* ---------- page ---------- */
main { width: 100%; max-width: 680px; margin: -40px auto 40px; padding: 0 16px; flex: 1; position: relative; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 20px rgba(26, 26, 28, .06); }

.alert { gap: 2px; padding: 12px 16px; margin-bottom: 12px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; }
.alert.error { background: #FCEDED; border: 1px solid #F2CFCF; color: #8E2323; }
.alert[hidden] { display: none; }
#form-errors { position: relative; z-index: 5; }
#form-errors:focus { outline: none; }

/* ---------- form ---------- */
.reg-form { padding: 8px 28px 24px; }
.form-section { padding: 20px 0 4px; border-bottom: 1px solid var(--cream-line); }
.form-section.last { border-bottom: 0; }
.sec-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.sec-num {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--ink); font: 700 12px/1 var(--font);
}
.sec-title { line-height: 1.3; }
.sec-title .t-en { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--gold-text); }
.sec-title .t-ku { font-size: 16px; font-weight: 700; color: var(--ink); }

.field { padding: 14px 0; margin: 0; scroll-margin-top: calc(var(--header-h) + 16px); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field > label:first-child { display: block; width: 100%; margin-bottom: 8px; padding: 0; }
.lbl { gap: 1px; }
.q-en { font-weight: 600; font-size: 14px; color: var(--ink); }
html[data-lang="en"] .q-en { font-size: 15px; }
.q-ku { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.75; }
.opt { align-self: flex-start; margin-top: 4px; padding: 1px 8px; border-radius: 100px; background: #F4F2EC; color: var(--muted); font-size: 11px; font-weight: 600; }
.hint { margin-top: 6px; font-size: 12px; color: var(--muted); }
.notice { margin: 0 0 8px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--cream); border: 1px solid var(--cream-line); color: var(--gold-text); font-size: 13px; font-weight: 600; display: flex; flex-direction: column; }

input[type="text"], input[type="date"], select, textarea {
  width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: 15px; color: inherit;
  background: #fff; border: 1.5px solid var(--input); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select:disabled { background: #F7F5F0; color: #8F8C84; }
input:hover, select:hover:not(:disabled), textarea:hover { border-color: #C6BA9A; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(236, 199, 106, .3); }
::placeholder { color: #6E6B63; opacity: 1; }
/* numbers stay left-to-right, but sit on the right like the rest of the page */
[dir="rtl"] input[inputmode="numeric"], [dir="rtl"] input[type="date"] { text-align: right; }
[dir="rtl"] input[inputmode="numeric"]::placeholder { font-family: var(--font-ku); }

/* single-choice style rows (declaration) */
.option {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; min-height: 44px; cursor: pointer;
  border: 1.5px solid var(--input); border-radius: var(--radius-sm); background: #fff; font-size: 13.5px;
  transition: border-color .15s, background .15s;
}
.option:hover { border-color: #C6BA9A; }
.option:has(input:checked) { border-color: var(--gold-deep); background: var(--cream); }
.option input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--gold-deep); }
.opt-text { line-height: 1.35; }
.opt-text .t-en { font-weight: 500; }
.opt-text .t-ku { font-weight: 600; font-size: 14px; line-height: 1.6; }

/* ---------- multiple-choice answers as compact chips ---------- */
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options .option {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 16px; border-radius: 100px; border-width: 1.5px; font-size: 13px;
}
.options .option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.options .option .opt-text { flex-direction: row; align-items: baseline; gap: 6px; line-height: 1.3; }
.options .option .t-ku { font-size: 13.5px; font-weight: 600; line-height: 1.4; unicode-bidi: isolate; }
.options .option .t-en { font-size: 13px; font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.options .option::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--input); background: #fff; transition: all .15s;
}
.options .option:has(input:checked)::before {
  border-color: var(--gold-deep); background: var(--gold-deep)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.options .option:has(input:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* yes / no side by side */
.options.inline .option { min-width: 96px; justify-content: center; }

/* messages from Kobo shown inside the form (skip logic) */
.note-field[hidden], .form-section[hidden], .form-foot[hidden] { display: none; }
.note-box {
  padding: 12px 16px; border-radius: var(--radius-sm); background: var(--cream);
  border: 1px solid var(--cream-line); border-inline-start: 4px solid var(--gold-deep);
}
.note-text { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.7; color: var(--ink); }
.note-text a { font-weight: 600; word-break: break-all; }
.field[hidden] { display: none; }

/* declaration */
.declaration .statement {
  gap: 6px; padding: 14px 16px; margin-bottom: 10px;
  background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius);
}
.statement .q-en { font-weight: 400; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.statement .q-ku { font-weight: 400; font-size: 14.5px; line-height: 1.8; color: var(--ink); }
.option.confirm { min-height: 52px; padding: 12px 14px; }
.option.confirm input { width: 22px; height: 22px; }
.option.confirm .opt-text .t-en, .option.confirm .opt-text .t-ku { font-weight: 700; }
.option.confirm:has(input:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* map */
.map-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.map-status { font-size: 12.5px; color: var(--muted); }
.map {
  position: relative; height: 260px; z-index: 0; direction: ltr;
  border: 1.5px solid var(--input); border-radius: var(--radius-sm); background: var(--cream);
  display: grid; place-items: center;
}
.map.ready { display: block; }
.map-loading { color: var(--gold-text); font-size: 13px; font-weight: 600; display: flex; flex-direction: column; text-align: center; }
.map.ready .map-loading, .map.failed .map-loading { display: none; }
.map .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; font-size: 20px; }
.map .leaflet-control-attribution { font-size: 10px; }

/* photos */
.photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-drop {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 84px; padding: 12px; cursor: pointer; text-align: center; color: var(--gold-text); font-weight: 600; font-size: 13px;
  border: 1.5px dashed #E0CB8F; border-radius: var(--radius-sm); background: #FFFCF3; transition: background .15s;
}
.photo-drop:hover { background: var(--cream); }
.field:has(.photo-input:focus-visible) .photo-drop { outline: 3px solid var(--gold-deep); outline-offset: 2px; background: var(--cream); }
.photo-text { display: inline-flex; align-items: center; gap: 8px; }
.photo-text svg, .btn svg { width: 17px; height: 17px; flex: none; }
.photo-preview { height: 60px; width: auto; max-width: 90px; object-fit: cover; border-radius: 6px; }

/* errors shown like Kobo: the whole question tinted red, message underneath */
.field-error { gap: 0; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--red); }
.field-error[hidden] { display: none; }
.field.has-error { background: #FDF1F0; margin: 0 -14px; padding-left: 14px; padding-right: 14px; border-radius: var(--radius-sm); }
.has-error input[type="text"], .has-error input[type="date"], .has-error select,
.has-error textarea, .has-error .map, .has-error .photo-drop, .has-error .option { border-color: var(--red); }
/* honeypot: clipped in place, so it cannot overflow the page in either direction */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; inset-inline-start: 0; }

/* ---------- buttons (runaki.gov.krd pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 34px; padding: 6px 16px; border: 0; border-radius: 100px; cursor: pointer; text-decoration: none;
  font: 700 11.5px/1.3 var(--font); letter-spacing: .5px; text-transform: uppercase;
  color: var(--ink); background: var(--gold); transition: background .15s, transform .1s;
}
.btn [lang] { font-size: 13px; letter-spacing: 0; text-transform: none; }
.btn:hover { background: var(--gold-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn.secondary { background: var(--cream); color: var(--gold-text); box-shadow: inset 0 0 0 1.5px var(--cream-line); }
.btn.secondary:hover { background: #FBEFD0; }
.btn.primary { min-height: 46px; font-size: 13px; letter-spacing: .6px; box-shadow: 0 4px 14px rgba(201, 165, 90, .3); }
.btn.primary [lang] { font-size: 14px; }
[dir="rtl"] .btn.primary[data-msg-key] { font-family: var(--font-ku); font-size: 14px; letter-spacing: 0; }
.btn.primary:disabled { opacity: .65; cursor: wait; }
.btn.block { width: 100%; }
.map-tools .btn { min-height: 44px; }
.form-foot { padding-top: 6px; }
.cf-turnstile { margin-bottom: 12px; min-height: 65px; }

/* ---------- thank-you ---------- */
.thanks-card { margin: 0 auto; padding: 32px 28px 28px; text-align: center; max-width: 520px; }
.thanks-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--gold-deep); }
.thanks-icon svg { width: 26px; height: 26px; stroke-width: 2.5; }
.thanks-card h1 { margin: 0; font-size: 22px; font-weight: 800; }
.thanks-card h1 .t-ku, .thanks-card h1 .t-en { font-size: 22px; font-weight: 800; color: var(--ink); }
.thanks-card .bi-block { margin-top: 8px; gap: 4px; }
.thanks-card .bi-block .t-ku { font-size: 15px; font-weight: 600; }
.thanks-card .bi-block .t-en { font-size: 14px; color: var(--ink-soft); }
.ref-box { margin-top: 20px; padding: 14px 16px; background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius); }
.ref-label { font-size: 12px; font-weight: 600; color: var(--gold-text); text-transform: uppercase; letter-spacing: .06em; display: flex; flex-direction: column; }
.ref-label [lang] { text-transform: none; letter-spacing: 0; font-size: 13px; }
.ref-code { margin: 2px 0 4px; font: 800 20px/1.4 var(--font); letter-spacing: .15em; color: var(--ink); }
.thanks-card .ref-hint .t-en, .thanks-card .ref-hint .t-ku { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.page-thanks main { margin-bottom: 48px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-logo { height: 24px; width: auto; flex: none; }
.footer-text { text-align: right; }
.footer-note { gap: 0; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.footer-note .t-ku { font-size: 13px; }
.footer-copy { margin-top: 4px; font-size: 11.5px; color: rgba(255, 255, 255, .5); }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  :root { --header-h: 52px; }
  body { font-size: 14px; }
  .header-inner { padding: 0 12px; gap: 8px; }
  .logo { height: 22px; }
  .brand { gap: 8px; }
  .brand-divider { height: 20px; }
  .brand-app { font-size: 11px; }
  .brand-ku { font-size: 11.5px; }
  .lang-switch button { min-height: 36px; padding: 4px 9px; font-size: 11.5px; }
  .hero-inner { padding: 16px 16px 48px; }
  .hero .t-en { font-size: 12.5px; }
  .hero-band { height: 64px; }
  main { padding: 0 10px; margin-bottom: 28px; }
  .reg-form { padding: 4px 16px 18px; }
  .field { padding: 12px 0; }
  .q-ku { font-size: 16px; }
  input[type="text"], input[type="date"], select { height: 46px; font-size: 16px; }
  textarea { font-size: 16px; }
  .map { height: 240px; }
  .photo-drop { min-height: 76px; }
  .btn.primary { min-height: 50px; }
  .map-tools { flex-direction: column; align-items: stretch; gap: 6px; }
  .map-tools .btn {
    width: 100%; min-height: 44px; background: var(--gold); color: var(--ink); box-shadow: none; font-size: 12.5px;
  }
  .map-tools .btn [lang] { font-size: 14px; }
  .map-tools .btn:hover { background: var(--gold-hover); }
  .thanks-card { padding: 26px 18px 22px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer-text { text-align: center; }
}
@media (max-width: 420px) {
  /* small phones: logo + language on the first row, the bilingual title on its own row */
  :root { --header-h: 76px; }
  .header-inner {
    display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo . lang" "title title title";
    height: auto; padding: 6px 12px 6px; row-gap: 4px;
  }
  .brand { display: contents; }
  .brand-divider { display: none; }
  .logo { grid-area: logo; height: 22px; align-self: center; }
  .lang-switch { grid-area: lang; }
  .brand-text {
    grid-area: title; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px;
    padding-top: 4px; border-top: 1px solid var(--line);
  }
  .brand-app { font-size: 11px; white-space: nowrap; overflow: visible; text-overflow: clip; }
  .brand-ku { font-size: 11.5px; white-space: nowrap; }
}

/* ---------- UI/UX review, 2026-11-17 ---------- */
/* page title in the hero (the header no longer repeats it on small phones) */
.intro-title { margin: 0 0 10px; font-size: 21px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.intro-title [lang="ckb"], .intro-title [lang="ku"], .intro-title [lang="ar"] { font-size: 22px; }
.hero-inner.has-intro { text-align: start; }
.intro-lead { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.intro[lang="ckb"] .intro-lead, .intro[lang="ku"] .intro-lead, .intro[lang="ar"] .intro-lead { font-size: 15.5px; }
.intro-point { background: #fff; align-items: center; }
.intro-point .intro-text { font-weight: 600; color: var(--ink); }
.intro-more { font-size: 14px; }
.intro-more summary {
  cursor: pointer; color: var(--gold-text); font-weight: 700; min-height: 44px;
  display: flex; align-items: center; gap: 6px; list-style: none;
}
.intro-more summary::-webkit-details-marker { display: none; }
.intro-more summary::after { content: "▾"; font-size: 12px; }
.intro-more[open] summary::after { content: "▴"; }
.intro-more .intro-text p { margin: 0 0 6px; }

/* long remark under a question label ("Important: ...") */
.lbl-note { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; color: var(--muted); line-height: 1.6; }
.lbl-note [lang] { font-weight: 400; }

/* messages that stop the customer (skip logic): a warning, not more cream */
.note-box {
  display: flex; gap: 10px; align-items: flex-start;
  background: #FFF4E5; border: 1px solid #F6D3A1; border-inline-start: 4px solid #E59A1A;
}
.note-icon { flex: none; width: 22px; height: 22px; color: #B86E00; margin-top: 3px; }
.note-body { min-width: 0; }
.note-box .note-text p:first-child { font-weight: 700; }
.note-text a { word-break: normal; overflow-wrap: anywhere; }
.note-box .note-text a {
  display: inline-flex; align-items: center; min-height: 40px; margin-top: 4px; padding: 6px 14px;
  border-radius: 100px; background: var(--gold); color: var(--ink); text-decoration: none; direction: ltr;
}

/* yes / no: two equal buttons */
.options.inline { display: grid; grid-template-columns: 1fr 1fr; }
.options.inline .option { min-height: 48px; font-size: 15px; justify-content: center; }

/* bigger small text for older readers */
.hint { font-size: 13px; }
.opt { font-size: 12px; }
.map-status { font-size: 13px; }
.sec-title .t-en { font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.footer-note { font-size: 13px; }
.footer-note > * { unicode-bidi: plaintext; }
.thanks-card .ref-hint .t-en, .thanks-card .ref-hint .t-ku { font-size: 13px; }

/* the meter photo is required: make its box stand out from the optional bill photo */
.photo-drop { background: #fff; }
[data-q="Picture_of_the_meter"] .photo-drop { min-height: 110px; font-size: 15px; border-color: var(--gold-deep); }
[data-q="Picture_of_the_meter"] .photo-text svg { width: 28px; height: 28px; }

/* language buttons: easier to tap */
.lang-switch button { min-height: 40px; }
.lang-switch button[lang="en"] { min-width: 40px; }

@media (max-width: 760px) {
  .lang-switch button { min-height: 40px; }
  /* one gold button only (Send); "Use my location" is white with a gold edge */
  .map-tools .btn { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--gold-deep); }
  .map-tools .btn:hover { background: var(--cream); }
  .intro-title { font-size: 19px; }
}
@media (max-width: 420px) {
  /* English: the title row shows the English title once */
  html[data-lang="en"] .brand-text { justify-content: flex-start; }
}

/* ---------- welcome page (step 1) ---------- */
.welcome-card { margin: 0 auto; max-width: 600px; padding: 26px 26px 24px; }
.welcome-card .intro-title { margin-bottom: 14px; }
.welcome-card .intro { gap: 12px; }
.intro-body { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.intro[lang="ckb"] .intro-body, .intro[lang="ku"] .intro-body, .intro[lang="ar"] .intro-body { font-size: 15px; line-height: 1.85; }
.welcome-card .intro-point { background: var(--cream); }
.welcome-go { margin-top: 20px; text-decoration: none; justify-content: center; }
@media (max-width: 760px) {
  .welcome-card { padding: 20px 16px 18px; }
}
/* the title is not small hero text */
.hero .intro-title .t-en, .hero .intro-title .t-ku { font-size: inherit; font-weight: inherit; color: inherit; line-height: inherit; }

/* blocking notes, take 2: calm text, the link as its own button underneath */
.note-box .note-text, .note-box .note-text p:first-child, .note-box .note-text strong { font-weight: 500; }
.note-box .note-text { color: #5A3A00; font-size: 14.5px; line-height: 1.75; }
.note-box .note-text[lang="ckb"], .note-box .note-text[lang="ku"], .note-box .note-text[lang="ar"] { font-size: 15px; line-height: 1.9; }
.note-box .note-text a {
  display: flex; width: fit-content; margin: 10px 0 2px; padding: 8px 18px; min-height: 44px;
  font-weight: 700; font-size: 14px; white-space: nowrap; unicode-bidi: isolate;
}

/* same type as the declaration (owner's preference): regular weight, calm colour */
.intro-point .intro-text, .note-box .note-text, .note-box .note-text p:first-child, .note-box .note-text strong { font-weight: 400; }
.intro-point .intro-text[lang="en"], .intro[lang="en"] .intro-point .intro-text,
.note-box .note-text[lang="en"] { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.intro[lang="ckb"] .intro-point .intro-text, .intro[lang="ku"] .intro-point .intro-text, .intro[lang="ar"] .intro-point .intro-text,
.note-box .note-text[lang="ckb"], .note-box .note-text[lang="ku"], .note-box .note-text[lang="ar"] { font-size: 14.5px; line-height: 1.8; color: var(--ink); }
.intro-lead { font-weight: 400; }

/* ---------- UI/UX review, second pass ---------- */
/* no divider under the last section that is shown */
.reg-form .form-section:not(:has(~ .form-section:not([hidden]))) { border-bottom: 0; }

/* one English size for every text box (the declaration renders at 15px) */
.note-box .note-text[lang="en"], .intro[lang="en"] .intro-point .intro-text { font-size: 15px; }

/* same box shape everywhere */
.declaration .statement { border-radius: var(--radius-sm); }
.note-box, .intro-point { padding: 14px 16px; }

/* yes / no: bigger labels and dot */
.options.inline .option .t-ku { font-size: 15.5px; }
.options.inline .option .t-en { font-size: 15px; }
.options.inline .option::before { width: 18px; height: 18px; }

/* "Important: ..." under the date question: readable, with a gold mark */
.lbl-note { font-size: 14px; line-height: 1.6; color: var(--ink-soft); padding-inline-start: 10px; border-inline-start: 3px solid var(--gold-deep); }
.lbl-note [lang="ckb"], .lbl-note [lang="ku"], .lbl-note [lang="ar"] { font-size: 14.5px; line-height: 1.8; color: var(--ink); }

/* error banner: same type as the boxes; error fields do not merge */
.alert { font-size: 14px; font-weight: 400; line-height: 1.6; }
.alert [lang="ckb"], .alert [lang="ku"], .alert [lang="ar"] { font-size: 14.5px; line-height: 1.8; }
.field.has-error + .field.has-error { margin-top: 8px; }

/* welcome title: balanced lines */
.intro-title { text-wrap: balance; }

/* bigger button labels */
.btn.primary [lang], [dir="rtl"] .btn.primary[data-msg-key] { font-size: 15.5px; }
.map-tools .btn [lang] { font-size: 15px; }

/* welcome lead: same colour in every language */
.intro .intro-lead { color: var(--ink); }

/* the note's link opens another site */
.note-box .note-text a::after { content: "↗"; margin-inline-start: 6px; }

.footer-text { text-align: end; }

@media (max-width: 760px) {
  .field.has-error { margin-inline: -10px; padding-inline: 10px; }
  .hero .intro-title [lang], .intro-title [lang] { font-size: 20px; }
}

/* the note's link: a plain underlined link on its own line (no pill) */
.note-box .note-text a {
  display: inline-block; width: auto; min-height: 0; margin: 6px 0 0; padding: 4px 0;
  background: none; border-radius: 0; box-shadow: none;
  color: var(--gold-text); font-weight: 700; font-size: 15px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.note-box .note-text a:hover { color: var(--ink); }
.note-box .note-text a { font-weight: 400; }
