/* ============================================================
   MERIDIAN GLOBAL RECRUITMENT — Shared design system
   Warm earth + deep green · Spectral / Hanken Grotesk
   Mobile-first, lightweight, no heavy assets
   ============================================================ */

:root {
  /* Palette */
  --cream:        #f6f1e7;
  --cream-2:      #efe7d5;
  --paper:        #fffdf8;
  --forest:       #1e4435;
  --forest-deep:  #13291f;
  --forest-soft:  #2c5b46;
  --clay:         #c25e3a;
  --clay-deep:    #a84c2c;
  --ochre:        #cf9b3f;
  --ink:          #1d201b;
  --muted:        #5d6358;
  --muted-2:      #868b7d;
  --line:         #e2dac7;
  --line-strong:  #d2c8b0;

  /* Type */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29,32,27,.04), 0 12px 32px -12px rgba(29,32,27,.18);
  --shadow-soft: 0 1px 2px rgba(29,32,27,.05), 0 8px 20px -14px rgba(29,32,27,.22);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--clay);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--ochre); }
.eyebrow.on-dark::before { background: var(--ochre); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--clay); color: #fff; box-shadow: 0 10px 22px -12px rgba(168,76,44,.8); }
.btn--primary:hover { background: var(--clay-deep); }
.btn--forest { background: var(--forest); color: #fbf7ee; }
.btn--forest:hover { background: var(--forest-deep); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--forest); color: var(--forest); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fbf7ee; }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.btn .arrow { font-size: 18px; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,241,231,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--forest);
  display: grid; place-items: center;
  flex: none;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand__name small {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 1px;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav__links { display: none; gap: 26px; }
.nav__links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--forest); }
.nav .btn { padding: 11px 20px; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: #d7d3c4;
  padding: 56px 0 30px;
  margin-top: 0;
}
.site-footer a { color: #d7d3c4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-top {
  display: grid;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .brand__name { color: #fbf7ee; }
.footer-brand p { color: #a9ad9d; font-size: 15px; margin-top: 14px; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d9282;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col ul a { font-size: 15px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13.5px;
  color: #9a9e8e;
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--cream2 { background: var(--cream-2); }
.section--forest { background: var(--forest); color: #ece7d8; }
.section-head { max-width: 620px; margin-bottom: clamp(34px, 5vw, 52px); }
.section-head h2 {
  font-size: clamp(30px, 6vw, 46px);
  margin-top: 16px;
}
.section-head p { color: var(--muted); font-size: 18px; margin-top: 16px; }
.section--forest .section-head p { color: #b9c4b6; }

/* ---------- Utility ---------- */
.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;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--forest-deep);
  color: #f4efe2;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(19,41,31,.42) 0%, rgba(19,41,31,.62) 55%, rgba(19,41,31,.92) 100%),
    linear-gradient(95deg, rgba(19,41,31,.78) 0%, rgba(19,41,31,.30) 70%);
}
.hero__inner {
  position: relative; z-index: 2;
  padding-top: clamp(64px, 13vw, 132px);
  padding-bottom: clamp(48px, 9vw, 96px);
}
.hero__content { max-width: 660px; }
.hero h1 {
  color: #fff;
  font-size: clamp(40px, 9.5vw, 78px);
  font-weight: 700;
  line-height: 1.02;
  margin-top: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--ochre);
}
.hero__sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: #d9e0d2;
  margin-top: 22px;
  max-width: 50ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero__flags {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__flags .label {
  font-size: 13px;
  letter-spacing: .04em;
  color: #b7c0b1;
}
.hero__flags .flag-row { display: flex; }
.hero__flags .flag-row img {
  width: 34px; height: 24px;
  object-fit: cover;
  border-radius: 4px;
  margin-left: -6px;
  border: 2px solid var(--forest-deep);
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.hero__flags .flag-row img:first-child { margin-left: 0; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--paper);
  padding: 26px 22px;
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
}
.stat__num span { color: var(--clay); }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ============================================================
   INTRO / WHAT WE DO
   ============================================================ */
.intro-grid { display: grid; gap: clamp(36px, 5vw, 56px); align-items: center; }
.intro__lead {
  font-family: var(--serif);
  font-size: clamp(23px, 3.6vw, 32px);
  line-height: 1.32;
  color: var(--ink);
  font-weight: 500;
}
.intro__lead b { color: var(--forest); font-weight: 600; }
.intro__body { color: var(--muted); margin-top: 20px; font-size: 17px; }
.intro__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.intro__media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   PROFESSIONS
   ============================================================ */
.prof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.prof {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 17px 18px;
  transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.prof:hover { border-color: var(--forest-soft); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.prof__dot {
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--clay);
  flex: none;
  transform: rotate(45deg);
}
.prof__name { font-weight: 600; font-size: 15.5px; letter-spacing: -0.005em; }

/* ============================================================
   COUNTRIES
   ============================================================ */
.country-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.country {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform .18s ease, box-shadow .2s ease;
}
.country:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.country__flag {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}
.country__flag img { width: 100%; height: 100%; object-fit: cover; }
.country__name { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.country__note { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

.section--forest .country {
  background: var(--forest-soft);
  border-color: rgba(255,255,255,.12);
}
.section--forest .country__name { color: #fff; }
.section--forest .country__note { color: #b9c4b6; }

/* ============================================================
   WHY / TRUST + STEPS
   ============================================================ */
.value-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.value {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.value__ico {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--cream-2);
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: var(--forest);
}
.value__ico svg { width: 22px; height: 22px; }
.value h3 { font-size: 21px; }
.value p { color: var(--muted); font-size: 15.5px; margin-top: 9px; }

.steps {
  display: grid;
  gap: 22px;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step__num {
  counter-increment: step;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--ochre);
  color: var(--ochre);
  display: grid; place-items: center;
  flex: none;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { color: #fff; font-size: 21px; }
.step p { color: #b9c4b6; font-size: 15.5px; margin-top: 6px; }

.why-layout { display: grid; gap: clamp(40px, 6vw, 72px); }

/* ============================================================
   LIFESTYLE BAND
   ============================================================ */
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.lifestyle figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.lifestyle figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform .5s ease;
}
.lifestyle figure:hover img { transform: scale(1.04); }
.lifestyle figure.tall { grid-row: span 2; }
.lifestyle figure.tall img { aspect-ratio: 1 / 2.06; }
.lifestyle figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(19,41,31,.82));
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.quote {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.quote__mark { font-family: var(--serif); font-size: 64px; line-height: .5; color: var(--ochre); }
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.34;
  color: #fff;
  font-weight: 500;
}
.quote__who { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.quote__who img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.quote__who .n { color: #fff; font-weight: 600; font-size: 16px; }
.quote__who .r { color: #b9c4b6; font-size: 14px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; background: var(--clay); }
.cta-band__inner {
  position: relative; z-index: 1;
  text-align: center;
  padding: clamp(56px, 9vw, 96px) 0;
}
.cta-band h2 { color: #fff; font-size: clamp(30px, 6vw, 50px); }
.cta-band p { color: #fbe7dc; font-size: 18px; margin-top: 16px; max-width: 46ch; margin-inline: auto; }
.cta-band .btn { margin-top: 30px; }
.cta-band__deco {
  position: absolute; z-index: 0;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.16);
}
.cta-band__deco.a { top: -150px; right: -90px; }
.cta-band__deco.b { bottom: -200px; left: -120px; width: 460px; height: 460px; }

/* ============================================================
   APPLICATION FORM (Page 2)
   ============================================================ */
.apply-hero {
  background: var(--forest);
  color: #f4efe2;
  padding: clamp(40px, 7vw, 68px) 0 clamp(48px, 8vw, 84px);
}
.apply-hero .eyebrow.on-dark { color: var(--ochre); }
.apply-hero h1 {
  color: #fff;
  font-size: clamp(32px, 6.5vw, 52px);
  margin-top: 16px;
  max-width: 16ch;
}
.apply-hero p { color: #c2cabd; margin-top: 16px; max-width: 56ch; font-size: 17px; }

.apply-layout {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
  margin-top: clamp(-40px, -5vw, -56px);
  position: relative;
  z-index: 5;
  padding-bottom: clamp(56px, 9vw, 100px);
}

/* Warm human aside */
.apply-aside { display: grid; gap: 18px; position: sticky; top: 88px; }
.apply-aside__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.apply-aside__media img { width: 100%; height: 100%; object-fit: cover; }
.apply-aside__card {
  background: var(--forest);
  color: #e7e2d4;
  border-radius: var(--radius);
  padding: 24px 22px;
}
.apply-aside__card h3 { color: #fff; font-size: 20px; }
.apply-aside__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.apply-aside__list li { display: flex; gap: 11px; font-size: 14.5px; color: #c2cabd; line-height: 1.45; }
.apply-aside__list svg { width: 19px; height: 19px; flex: none; color: var(--ochre); margin-top: 1px; }

/* The form card */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}
.form-card__head { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.form-card__head h2 { font-size: clamp(24px, 4vw, 30px); }
.form-card__head p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }

.fieldset { border: 0; margin: 0 0 30px; padding: 0; }
.fieldset:last-of-type { margin-bottom: 0; }
.fieldset__legend {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.fieldset__legend .n {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest); color: #fff;
  display: grid; place-items: center;
  font-size: 11px; flex: none;
}

.grid-2 { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > label, .field__label {
  font-weight: 600; font-size: 14px; color: var(--ink);
}
.field .req { color: var(--clay); }
.field .hint { font-size: 12.5px; color: var(--muted-2); font-weight: 400; }

.input, .select, textarea.input {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: #a9ad9d; }
.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  border-color: var(--forest-soft);
  box-shadow: 0 0 0 3px rgba(44,91,70,.14);
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d6358' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
textarea.input { resize: vertical; min-height: 96px; line-height: 1.5; }

/* Choice chips (profession radios / country checks) */
.choice-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.choice {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
  font-size: 15px; font-weight: 500;
}
.choice:hover { border-color: var(--forest-soft); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {
  width: 20px; height: 20px; flex: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  display: grid; place-items: center;
  transition: all .15s ease;
}
.choice__box.round { border-radius: 50%; }
.choice__box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .12s ease; }
.choice input:checked ~ .choice__box { background: var(--forest); border-color: var(--forest); }
.choice input:checked ~ .choice__box svg { opacity: 1; }
.choice input:checked ~ .choice__txt { color: var(--forest); font-weight: 600; }
.choice:has(input:checked) { border-color: var(--forest); background: #f3f6f1; }
.choice input:focus-visible ~ .choice__box { box-shadow: 0 0 0 3px rgba(44,91,70,.2); }
.choice__flag { width: 26px; height: 18px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.choice.is-disabled { opacity: .45; cursor: not-allowed; }

.choice-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.choice-note b { color: var(--forest); }

/* File uploads */
.upload-grid { display: grid; gap: 12px; }
.upload {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.upload:hover { border-color: var(--forest-soft); background: #fafcf8; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload__ico {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--cream-2); color: var(--forest);
  display: grid; place-items: center; flex: none;
}
.upload__ico svg { width: 20px; height: 20px; }
.upload__txt { flex: 1; min-width: 0; }
.upload__name { font-weight: 600; font-size: 14.5px; }
.upload__name .req { color: var(--clay); }
.upload__meta { font-size: 12.5px; color: var(--muted-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload.has-file { border-style: solid; border-color: var(--forest-soft); background: #f3f6f1; }
.upload.has-file .upload__ico { background: var(--forest); color: #fff; }
.upload__action { font-size: 13px; font-weight: 600; color: var(--clay); flex: none; }

/* Consent + submit */
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--forest); flex: none; }
.consent label { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.consent a { color: var(--forest); font-weight: 600; }

.form-submit { display: grid; gap: 14px; }
.form-submit .btn { width: 100%; padding: 18px; font-size: 17px; }
.form-note { font-size: 13px; color: var(--muted-2); text-align: center; }

.field-error { color: var(--clay-deep); font-size: 13px; font-weight: 600; display: none; }
.field.invalid .input, .field.invalid .select { border-color: var(--clay); }
.field.invalid .field-error { display: block; }

/* Success state */
.success {
  display: none;
  text-align: center;
  padding: clamp(30px, 6vw, 56px) clamp(20px, 4vw, 40px);
}
.success.show { display: block; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.success__check {
  width: 76px; height: 76px; border-radius: 50%;
  background: #f0f5ee; border: 2px solid var(--forest-soft);
  color: var(--forest);
  display: grid; place-items: center; margin: 0 auto 24px;
}
.success__check svg { width: 38px; height: 38px; }
.success h2 { font-size: clamp(26px, 4.5vw, 34px); color: var(--forest); }
.success__msg {
  font-size: 17px; color: var(--muted); margin: 18px auto 0; max-width: 52ch; line-height: 1.6;
}
.success__email {
  margin-top: 24px; padding: 16px 20px;
  background: var(--cream-2); border-radius: var(--radius-sm);
  font-size: 14.5px; color: var(--forest-deep); display: inline-flex; gap: 10px; align-items: center;
}
.success__email svg { width: 18px; height: 18px; flex: none; color: var(--forest-soft); }
.success .btn { margin-top: 30px; }



/* ============================================================
   LEGAL PAGES (Privacy / Terms)
   ============================================================ */
.legal-hero { background: var(--forest); color: #f4efe2; padding: clamp(40px,7vw,64px) 0; }
.legal-hero h1 { color: #fff; font-size: clamp(30px,6vw,46px); margin-top: 14px; }
.legal-hero p { color: #c2cabd; margin-top: 12px; font-size: 16px; }
.legal { padding: clamp(40px,7vw,72px) 0; }
.legal__body { max-width: 760px; }
.legal__body h2 {
  font-size: clamp(22px,3.4vw,28px);
  margin: 38px 0 12px;
  color: var(--forest);
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.legal__body p { margin-bottom: 14px; }
.legal__body ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.legal__body strong { color: var(--ink); }
.legal__toc {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 36px;
}
.legal__toc p { font-weight: 600; color: var(--forest); margin-bottom: 6px; font-size: 14px; letter-spacing: .02em; }
.legal__toc a { color: var(--muted); text-decoration: none; font-size: 15px; }
.legal__toc a:hover { color: var(--clay); }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 620px) {
  .prof-grid { grid-template-columns: repeat(3, 1fr); }
  .country-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .choice-grid.cols-1 { grid-template-columns: 1fr; }
}

@media (min-width: 760px) {
  body { font-size: 18px; }
  .nav__links { display: flex; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .intro-grid { grid-template-columns: 1.05fr .95fr; }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .why-layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .lifestyle-grid { grid-template-columns: repeat(4, 1fr); }
  .hero__cta .btn { font-size: 17px; }
}

@media (min-width: 1000px) {
  .prof-grid { grid-template-columns: repeat(4, 1fr); }
  .country-grid { grid-template-columns: repeat(6, 1fr); }
  .apply-layout { grid-template-columns: 0.82fr 1.18fr; }
  .choice-grid.prof-choices { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================================
   MOBILE IMPROVEMENTS — Apply Page & Global
   ============================================================ */

/* ---- Apply page mobile layout ---- */
@media (max-width: 767px) {

  /* Hide aside on mobile — move checklist below hero instead */
  .apply-aside { display: none; }

  /* Full width form on mobile */
  .apply-layout {
    grid-template-columns: 1fr !important;
    margin-top: 0 !important;
    padding: 0 0 48px !important;
    gap: 0 !important;
  }

  /* Hero smaller on mobile */
  .apply-hero {
    padding: 28px 0 28px !important;
  }
  .apply-hero h1 { font-size: 26px !important; }
  .apply-hero p  { font-size: 15px !important; }

  /* Form card full width, no top radius */
  .form-card {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 24px 16px !important;
    margin-top: 0 !important;
  }

  /* Fieldset legend bigger tap target */
  .fieldset__legend {
    font-size: 16px !important;
    padding: 12px 0 !important;
  }

  /* Single column grid on mobile */
  .grid-2 { grid-template-columns: 1fr !important; }
  .choice-grid { grid-template-columns: 1fr 1fr !important; }
  .choice-grid.prof-choices { grid-template-columns: 1fr 1fr !important; }

  /* Bigger inputs for fat fingers */
  .input, select.input {
    padding: 14px 16px !important;
    font-size: 16px !important; /* prevents iOS zoom */
    min-height: 52px !important;
    border-radius: 10px !important;
  }

  /* Bigger labels */
  .field label { font-size: 14px !important; margin-bottom: 8px !important; }

  /* Choice cards bigger tap targets */
  .choice-card {
    padding: 14px 10px !important;
    font-size: 13px !important;
    min-height: 56px !important;
    border-radius: 10px !important;
  }
  .choice-card .ico { font-size: 22px !important; }

  /* Upload areas bigger */
  .upload {
    padding: 16px !important;
    border-radius: 10px !important;
    min-height: 72px !important;
  }
  .upload__action {
    padding: 10px 16px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
  }

  /* Submit button full width */
  .form-submit { flex-direction: column !important; }
  .btn--primary {
    width: 100% !important;
    padding: 18px 24px !important;
    font-size: 17px !important;
    justify-content: center !important;
    border-radius: 12px !important;
  }

  /* Consent checkbox bigger */
  .consent {
    gap: 12px !important;
    align-items: flex-start !important;
    margin-bottom: 24px !important;
  }
  .consent input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
  }
  .consent label { font-size: 14px !important; line-height: 1.6 !important; }

  /* Fieldset spacing */
  .fieldset { margin-bottom: 24px !important; }

  /* Success state */
  .success { padding: 32px 16px !important; }

  /* Nav on mobile */
  .nav__links { display: none !important; }
  .site-header { padding: 12px 0 !important; }

  /* Wrap padding mobile */
  .wrap { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ---- Payment page mobile ---- */
@media (max-width: 860px) {
  .payment-layout {
    grid-template-columns: 1fr !important;
    padding: 24px 0 48px !important;
  }
  .payment-card {
    padding: 24px 16px !important;
    border-radius: 12px !important;
  }
  .nexapay-btn {
    padding: 18px 24px !important;
    font-size: 16px !important;
  }
  .steps-card { padding: 20px 16px !important; }
  .guarantee-card { padding: 20px 16px !important; }
}

/* ---- Admin portal mobile ---- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%) !important;
    position: fixed !important;
    z-index: 200 !important;
    transition: transform 0.25s ease !important;
  }
  .sidebar.open { transform: translateX(0) !important; }
  .main { margin-left: 0 !important; }
  .shell { grid-template-columns: 1fr !important; }
  .stat-cards { grid-template-columns: 1fr 1fr !important; }
  .modal { width: 95vw !important; max-height: 90vh !important; overflow-y: auto !important; }
  .compose-grid { grid-template-columns: 1fr !important; }
  .compose-col:last-child { display: none !important; }

  /* Login card on mobile */
  .login__card {
    padding: 28px 20px !important;
    margin: 16px !important;
    border-radius: 16px !important;
  }
  .input {
    padding: 14px 16px !important;
    font-size: 16px !important;
    min-height: 52px !important;
  }
  .btn--forest {
    padding: 16px 24px !important;
    font-size: 16px !important;
  }
}

/* ---- Global mobile index page ---- */
@media (max-width: 767px) {
  .hero { padding: 48px 0 40px !important; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px) !important; }
  .section { padding: clamp(40px, 8vw, 60px) 0 !important; }
  .prof-grid { grid-template-columns: 1fr 1fr !important; }
  .country-cards { grid-template-columns: 1fr 1fr !important; }
  .how-steps { grid-template-columns: 1fr !important; }
  .footer-top { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column !important; gap: 12px !important; text-align: center !important; }
}


/* Mobile checklist bar */
.mobile-checklist {
  display: none;
  background: #f0f7f3;
  border-bottom: 1px solid #d4e8dd;
  padding: 14px 0;
}
.mobile-checklist__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.mobile-checklist__items span {
  font-size: 13px;
  color: var(--forest);
  font-weight: 600;
}
@media (max-width: 767px) {
  .mobile-checklist { display: block; }
}
