/* uaejobless.com — the public form.
   Phone-first: most people filling this in are on a mid-range Android on mobile
   data, not at a desk. Big targets, 16px inputs so iOS never zooms, no web
   fonts to wait for. From 980px up the page becomes two columns — the pitch and
   the reassurance on the left, the form on the right — so a wide screen fills
   with something useful instead of margin. */

:root {
  color-scheme: light;
  --ink: #0f2230;
  --muted: #5b6b76;
  --line: #e3e9e7;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --brand: #0e7c5a;
  --brand-dark: #0a6349;
  --brand-tint: #e8f4ef;
  --warn: #8a5a00;
  --warn-bg: #fff8ea;
  --warn-line: #f0dcb4;
  --danger: #b3261e;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 34, 48, .05), 0 14px 38px -20px rgba(15, 34, 48, .3);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--brand-dark); }

.shell { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .shell { padding: 0 28px; } }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 0 8px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(145deg, var(--brand) 0%, #16a37a 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55);
}
.brand__name { font-size: 18px; letter-spacing: -.2px; }
.brand__name strong { color: var(--brand-dark); }

.badge {
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--brand-dark); background: var(--brand-tint);
  border-radius: 999px; padding: 5px 11px;
}

/* ── Two-column page ────────────────────────────────────────────────────── */

.page { display: grid; gap: 22px; padding: 14px 0 40px; }

@media (min-width: 980px) {
  .page {
    grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    padding: 26px 0 64px;
  }
  /* The form is long; the pitch rides along beside it rather than scrolling
     away at the top. */
  .intro { position: sticky; top: 26px; }
}

/* ── Intro column ───────────────────────────────────────────────────────── */

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 6.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.hero__title span { color: var(--brand-dark); }

.hero__lead { margin: 0 0 18px; color: var(--muted); font-size: 16.5px; max-width: 46ch; }

.trust { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.trust li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; }
.trust span { color: var(--brand); font-weight: 700; }

.steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  font-size: 14.5px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 50%;
  font-size: 12.5px; font-weight: 700; color: var(--brand-dark);
}
.steps strong { display: block; font-weight: 650; }
.steps span { color: var(--muted); }

.warnbox {
  display: block;
  padding: 14px 16px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-left: 4px solid #d99d1c;
  border-radius: 12px;
  font-size: 14px;
  color: #6b4a08;
}
.warnbox strong { display: block; margin-bottom: 3px; color: var(--warn); }
.warnbox a { color: #6b4a08; }

.intro__note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }

/* ── Card & form ────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
}
@media (min-width: 720px) { .card { padding: 30px 32px; } }

.group { border: 0; margin: 0 0 28px; padding: 0; }
.group:last-of-type { margin-bottom: 20px; }

.group__title {
  display: flex; align-items: center; gap: 10px;
  padding: 0 0 16px;
  font-size: 17px; font-weight: 650; letter-spacing: -.01em;
}
.group__num {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-dark);
  font-size: 13px; font-weight: 700;
}
.group__note { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.field { display: block; margin-bottom: 15px; min-width: 0; }
.field__label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field__label b { color: var(--brand); font-weight: 700; }
.field__opt { font-weight: 400; color: var(--muted); }
.field__hint { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.field__error { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--danger); }

/* One column on a phone; two or three once there is room for them. The form
   column is ~700px wide on a laptop, so three selects sit comfortably. */
.grid-2, .grid-3 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.cv-row { display: grid; gap: 0 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .cv-row { grid-template-columns: 1fr 1fr; align-items: start; } }

.input {
  width: 100%;
  padding: 12px 13px;
  font: inherit;
  font-size: 16px; /* anything smaller makes iOS zoom on focus */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.input:hover { border-color: #cfdad6; }
.input:focus-visible,
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 124, 90, .16);
}
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { resize: vertical; min-height: 84px; }
textarea.input--tall { min-height: 150px; height: calc(100% - 26px); }

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6b76' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  text-overflow: ellipsis;
}

/* ── Country combobox ───────────────────────────────────────────────────── */
/* The list the page draws itself, replacing the operating system's datalist
   popup — which ignores every style here and renders as a black box. */

.field--combo { position: relative; }

.combo {
  position: absolute;
  z-index: 20;
  top: calc(100% - 18px);
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 5px;
  max-height: 264px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  background: var(--surface);
  border: 1.5px solid var(--brand);
  border-radius: 12px;
  box-shadow: 0 18px 40px -16px rgba(15, 34, 48, .38);
  -webkit-overflow-scrolling: touch;
}

.combo__option {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
}
.combo__option b { font-weight: 700; color: var(--brand-dark); }
.combo__option:hover,
.combo__option.is-active { background: var(--brand-tint); }
.combo__option.is-active b { color: var(--brand-dark); }

/* A country field that is open should not be hidden behind the next row. */
.field--combo:focus-within { z-index: 21; }

/* ── Upload ─────────────────────────────────────────────────────────────── */

.drop {
  position: relative;
  display: grid; justify-items: center; gap: 3px;
  padding: 30px 16px;
  text-align: center;
  background: #fbfdfc;
  border: 1.5px dashed #c8d7d1;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover { border-color: var(--brand); background: var(--brand-tint); }
.drop__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__input:focus-visible + .drop__icon { outline: 2px solid var(--brand); outline-offset: 4px; }
.drop__icon { font-size: 26px; line-height: 1; }
.drop__text { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.drop__hint { font-size: 13px; color: var(--muted); }

/* ── Consent, honeypot, submit ──────────────────────────────────────────── */

.consent {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 14px;
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
}
.consent input {
  flex: none;
  width: 21px; height: 21px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}
.consent b { color: var(--brand); }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The widget is a fixed ~300px block. Flex, not grid, so the button fills the
   row on its own if Cloudflare's script is blocked or still loading — a grid
   column would leave it stranded on the right. */
.submit-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 18px; }
.submit-row .cf-turnstile { flex: 0 0 auto; }
.submit-row .btn--lg { flex: 1 1 260px; width: auto; }
.cf-turnstile { min-height: 65px; }

/* ── Button ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 18px;
  font: inherit; font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn--lg { width: 100%; padding: 15px 20px; font-size: 17px; }
.btn:disabled { opacity: .65; cursor: progress; }
.btn:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }

.btn__spinner { display: none; width: 17px; height: 17px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; }
.btn.is-busy .btn__spinner { display: block; animation: spin .7s linear infinite; }
.btn.is-busy .btn__label { font-size: 0; }
.btn.is-busy .btn__label::after { font-size: 17px; content: "Sending…"; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.fineprint { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.form-status {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #fdecea;
  border: 1px solid #f3c6c2;
  border-left: 4px solid var(--danger);
  border-radius: 10px;
  color: #8c1d18;
  font-size: 14.5px;
  font-weight: 500;
}

/* ── Success ────────────────────────────────────────────────────────────── */

.card--done { text-align: center; padding: 40px 24px; }
.done__tick {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-dark);
  border-radius: 50%; font-size: 28px; font-weight: 700;
}
.done__title { margin: 0 0 8px; font-size: 24px; letter-spacing: -.01em; }
.done__lead { margin: 0 auto 20px; color: var(--muted); max-width: 46ch; }
.done__ref {
  margin: 0 auto 16px; padding: 14px; max-width: 320px;
  background: #fbfdfc; border: 1px dashed #c8d7d1; border-radius: 12px;
  font-size: 13px; color: var(--muted);
}
.done__ref strong {
  display: block; margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px; letter-spacing: .06em; color: var(--ink);
}
.done__note { margin: 0 auto 14px; font-size: 14px; color: var(--muted); max-width: 46ch; }
.done__warn { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--brand-dark); }

/* ── Content bands (below the form) ─────────────────────────────────────── */

.band { padding: 38px 0; border-top: 1px solid var(--line); }
.band__title { margin: 0 0 10px; font-size: clamp(21px, 3.2vw, 28px); letter-spacing: -.02em; }
.band__lead { margin: 0 0 22px; max-width: 68ch; color: var(--muted); }
.band__note { margin: 22px 0 0; max-width: 72ch; font-size: 14px; color: var(--muted); }

.families { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .families { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .families { grid-template-columns: repeat(4, 1fr); } }
.family { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.family__title { margin: 0 0 5px; font-size: 15.5px; }
.family__detail { margin: 0; font-size: 14px; color: var(--muted); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 72ch; }
.ticks li { position: relative; padding-left: 27px; font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }

.faq { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; gap: 22px 44px; } }
.faq__q { margin: 0 0 6px; font-size: 16px; letter-spacing: -.01em; }
.faq__a { margin: 0; max-width: 62ch; font-size: 14.8px; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-foot {
  display: flex; flex-wrap: wrap; gap: 10px 32px;
  align-items: flex-end; justify-content: space-between;
  padding: 26px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.site-foot p { margin: 0 0 7px; max-width: 70ch; }
.site-foot__links { white-space: nowrap; }

/* ── Standalone prose pages (privacy) ───────────────────────────────────── */

.prose { max-width: 720px; margin: 0 auto; padding: 8px 0 48px; }
.prose h2 { margin: 24px 0 8px; font-size: 17px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0; color: var(--muted); }
.prose .hero__lead { max-width: none; }
.prose__back { margin: 18px 0 0; }
