/* =============================================================================
   UCANLY × IBM CARBON  —  Enrolment Interface Stylesheet
   -----------------------------------------------------------------------------
   Design language : IBM Carbon Design System (2x grid, Plex type, sharp edges)
   Brand accent    : Ucanly Green  #16a34a / #22c55e
   Author notes    : Built on Carbon's structural discipline — functional
                     borders, a strict 8px spacing grid, and Carbon motion
                     tokens — then lifted with restrained enterprise depth.
                     Every class name from the original markup is preserved.
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* -----------------------------------------------------------------------------
   1. DESIGN TOKENS
   Carbon works on a token system: a neutral structural scale, one interactive
   accent, and a strict spacing/motion vocabulary. We map Ucanly green onto
   Carbon's "interactive" role (where stock IBM would use #0f62fe blue).
   -------------------------------------------------------------------------- */
:root {
  /* — Brand / interactive (green) ————————————————————————————————— */
  --green-10:  #f0fdf4;
  --green-20:  #dcfce7;
  --green-30:  #bbf7d0;
  --green-40:  #4ade80;
  --green-50:  #22c55e;
  --green-60:  #16a34a;
  --green-70:  #15803d;
  --green-80:  #166534;
  --green-90:  #14532d;

  --brand:        #16a34a;   /* interactive-01  */
  --brand-hover:  #138a3f;   /* interactive-hover */
  --brand-active: #0f6f33;   /* interactive-active */
  --brand-light:  #22c55e;
  --brand-dark:   #14532d;
  --brand-glow:   rgba(34,197,94,.18);
  --brand-soft:   rgba(34,197,94,.08);
  --brand-line:   rgba(34,197,94,.32);

  /* — Carbon cool-gray structural scale ————————————————————————— */
  --gray-10: #f4f5f4;
  --gray-20: #e3e8e4;
  --gray-30: #cbd5cd;
  --gray-50: #8d958f;
  --gray-60: #6b7280;
  --gray-70: #4b5563;
  --gray-90: #1c2620;
  --gray-100:#0a0f0d;

  /* — Ink & surface (semantic) ————————————————————————————————— */
  --ink:        #0a0f0d;   /* text-primary   */
  --ink-2:      #1a2e1f;   /* text-secondary */
  --ink-soft:   #374151;   /* text-helper    */
  --muted:      #6b7280;   /* text-placeholder */
  --muted-2:    #9ca3af;

  --bg:         #f4f5f4;   /* background (Carbon Gray-10 feel) */
  --card:       #ffffff;   /* layer-01 */
  --surface:    #f3f8f4;   /* field-01 */
  --surface-2:  #eaf4ec;   /* field-02 */

  --line:       #e3e8e4;   /* border-subtle */
  --line-strong:#cbd5cd;   /* border-strong */
  --line-soft:  #eef3ef;   /* border-disabled */

  /* — IBM near-black header (Carbon Gray-100) ————————————————————— */
  --navy:       #0a1628;
  --navy-2:     #0f2040;
  --navy-3:     #162d4a;
  --header:     #0c0f12;   /* true Carbon UI-shell black-ish */

  /* — Support / danger ——————————————————————————————————————————— */
  --danger:       #da1e28;   /* Carbon support-error red */
  --danger-hover: #b81921;
  --danger-soft:  rgba(218,30,40,.06);
  --danger-line:  rgba(218,30,40,.30);
  --success:      #16a34a;
  --focus:        #0a0f0d;   /* Carbon focus ring is near-black on light */

  /* — Elevation (Carbon stays flat; we add measured depth) ————————— */
  --shadow-xs: 0 1px 2px rgba(12,15,18,.06);
  --shadow-sm: 0 2px 6px rgba(12,15,18,.07), 0 1px 2px rgba(12,15,18,.05);
  --shadow:    0 6px 20px rgba(12,15,18,.09), 0 1px 3px rgba(12,15,18,.06);
  --shadow-lg: 0 24px 64px rgba(12,15,18,.16), 0 4px 12px rgba(12,15,18,.08);
  --shadow-green: 0 6px 20px rgba(22,163,74,.16);

  /* — Radius (Carbon is sharp — radii are deliberately tiny) ————————— */
  --r-0:  0px;
  --r-xs: 2px;
  --r-sm: 2px;
  --r:    3px;
  --r-lg: 4px;
  --r-xl: 6px;

  /* — Spacing (Carbon 2x grid, 8px base) ———————————————————————————— */
  --sp-01: 2px;
  --sp-02: 4px;
  --sp-03: 8px;
  --sp-04: 12px;
  --sp-05: 16px;
  --sp-06: 24px;
  --sp-07: 32px;
  --sp-08: 40px;
  --sp-09: 48px;
  --sp-10: 64px;

  /* — Carbon motion tokens ——————————————————————————————————————— */
  --ease:            cubic-bezier(.2,0,.38,.9);   /* productive standard */
  --ease-entrance:   cubic-bezier(0,0,.38,.9);     /* productive entrance */
  --ease-exit:       cubic-bezier(.2,0,1,.9);       /* productive exit */
  --ease-expressive: cubic-bezier(.4,.14,.3,1);     /* expressive standard */
  --t-fast: 110ms;   /* fast-02 */
  --t-med:  150ms;   /* moderate-01 */
  --t-slow: 240ms;   /* moderate-02 */
}

/* -----------------------------------------------------------------------------
   2. RESET & DOCUMENT BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* A faint Carbon "grid" texture + brand wash at the masthead */
  background-image:
    linear-gradient(rgba(203,213,205,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203,213,205,.16) 1px, transparent 1px),
    radial-gradient(ellipse 90% 50% at 50% -8%, rgba(22,163,74,.05), transparent 60%);
  background-size: 96px 96px, 96px 96px, 100% 100%;
  background-position: -1px -1px, -1px -1px, center top;
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { appearance: none; background: none; border: none; cursor: pointer; }
a { color: var(--brand); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--brand-hover); }

/* A single, consistent Carbon focus ring used across all interactive elements */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

::selection { background: var(--green-20); color: var(--green-90); }

/* -----------------------------------------------------------------------------
   3. TOPBAR  —  Carbon UI Shell header
   The shell header is near-black with a thin interactive underline. We keep the
   green accent rule and add a precise inset hairline for that "engineered" feel.
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 1px 0 rgba(0,0,0,.4);
}

/* Carbon-style interactive underline beneath the shell header */
.topbar::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--brand) 0%, var(--brand-light) 45%, var(--brand-light) 55%, var(--brand) 100%);
}

.topbar__inner {
  max-width: 1056px;            /* 1056 = Carbon 16-col @ 66px — feels native */
  margin: 0 auto;
  padding: 0 var(--sp-06);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-05);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-04);
  position: relative;
}

/* Thin Carbon divider line to the right of the logo block */
.brand::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.12);
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--r-xs);
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.02);
}

.brand__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #ffffff;
  line-height: 1.2;
}

.brand__sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--green-40);
  line-height: 1.3;
  margin-top: 3px;
}

/* Status pill — Carbon "tag", square edges, mono label */
.meta__pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--green-40);
  border: 1px solid rgba(34,197,94,.30);
  background: rgba(34,197,94,.10);
  padding: 6px 12px;
  border-radius: var(--r-0);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Live dot inside the status pill */
.meta__pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-50);
  box-shadow: 0 0 0 3px rgba(34,197,94,.20);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

/* -----------------------------------------------------------------------------
   4. LAYOUT
   Carbon's content rhythm: a fixed max-width canvas, a two-column productive
   split, and consistent 8px-grid gutters.
   -------------------------------------------------------------------------- */
.container {
  max-width: 1056px;
  margin: 0 auto;
  padding: var(--sp-07) var(--sp-06) var(--sp-10);
}

.layout {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: var(--sp-05);
  align-items: start;
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------------------
   5. CARD  —  Carbon "tile"
   Tiles are sharp-cornered surfaces delineated by a single border. We add a
   top accent keyline and a staggered entrance to feel considered, not flat.
   -------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  animation: card-in .5s var(--ease-expressive) .04s forwards;
}

/* Top interactive keyline — the Carbon "selected tile" cue */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  animation: keyline-in .6s var(--ease-expressive) .3s forwards;
}

@keyframes card-in   { to { opacity: 1; transform: translateY(0); } }
@keyframes keyline-in { to { transform: scaleX(1); } }

.card__head {
  padding: var(--sp-07) var(--sp-07) var(--sp-06);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, #f7fdf9 0%, #ffffff 58%);
  position: relative;
  overflow: hidden;
}

/* Soft brand bloom in the header corner */
.card__head::after {
  content: '';
  position: absolute;
  top: -56px;
  right: -56px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(22,163,74,.07) 0%, transparent 68%);
  pointer-events: none;
}

/* -----------------------------------------------------------------------------
   6. TYPOGRAPHY  —  Carbon productive type scale
   -------------------------------------------------------------------------- */
.h1, .h2 {
  margin: 0 0 var(--sp-03);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -.018em;
}

.h1 { font-size: 22px; }      /* productive-heading-04 */
.h2 { font-size: 17px; }      /* productive-heading-03 */

.p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* -----------------------------------------------------------------------------
   7. NOTICE  —  Carbon inline notification (informational)
   -------------------------------------------------------------------------- */
.notice {
  margin-top: var(--sp-04);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-xs);
  padding: var(--sp-05) var(--sp-05);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.notice:hover { border-left-color: var(--brand-light); background: #f6fbf7; }
.notice strong { color: var(--ink); font-weight: 600; }
.notice + .notice { margin-top: var(--sp-03); }

/* -----------------------------------------------------------------------------
   8. SECTION LABEL  —  Carbon mono section marker
   -------------------------------------------------------------------------- */
.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: var(--sp-03);
  margin: 0 0 var(--sp-05);
  padding-bottom: var(--sp-04);
  border-bottom: 1px solid var(--line);
}

.section-label::before {
  content: '';
  width: 3px;
  height: 13px;
  background: var(--brand);
  border-radius: 1px;
  display: block;
}

/* -----------------------------------------------------------------------------
   9. FORM SYSTEM
   -------------------------------------------------------------------------- */
.form { padding: var(--sp-07); }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-04);
}

@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-02);
  min-width: 0;
}

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.3;
}

.req { color: var(--danger); margin-left: 2px; }
.opt { color: var(--muted); font-weight: 400; font-size: 10px; text-transform: none; letter-spacing: 0; }
.hint { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* — Carbon text input —————————————————————————————————————————————
   Carbon fields use a subtle fill plus a heavier bottom border that turns
   interactive on focus. This is the single most recognisable Carbon control. */
.input {
  width: 100%;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.3;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  transition:
    border-color var(--t-fast) var(--ease),
    background    var(--t-fast) var(--ease),
    box-shadow    var(--t-fast) var(--ease);
}

.input::placeholder { color: var(--muted-2); font-size: 13px; }

.input:hover { background: #eef4ef; border-bottom-color: var(--gray-50); }

.input:focus {
  background: #ffffff;
  border-color: var(--brand);
  border-bottom-color: var(--brand);
  /* Carbon's inset focus indicator */
  box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px rgba(22,163,74,.14);
}

.input:disabled {
  background: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
  border-color: var(--line-soft);
}

textarea.input {
  min-height: 104px;
  resize: vertical;
  line-height: 1.6;
}

/* Carbon select with custom chevron */
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  background-size: 12px 8px;
  cursor: pointer;
}

select.input:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2316a34a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Carbon error field — red focus ring + bottom border */
.input.input--error {
  border-color: rgba(218,30,40,.55) !important;
  border-bottom-color: var(--danger) !important;
  box-shadow: inset 0 0 0 1px var(--danger), 0 0 0 3px rgba(218,30,40,.10) !important;
}

.mt { margin-top: var(--sp-04); }

.form-section {
  margin-top: var(--sp-06);
  padding-top: var(--sp-06);
  border-top: 1px solid var(--line);
}

/* -----------------------------------------------------------------------------
   10. LANGUAGE CHIPS  —  Carbon selectable tiles
   -------------------------------------------------------------------------- */
.chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--sp-03);
}

@media (max-width: 760px) { .chips { grid-template-columns: repeat(2, 1fr); } }

.chip {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-xs);
  padding: 11px 13px;
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  gap: var(--sp-03);
  align-items: center;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition:
    background     var(--t-fast) var(--ease),
    border-color   var(--t-fast) var(--ease),
    box-shadow      var(--t-fast) var(--ease),
    transform       var(--t-fast) var(--ease);
}

.chip:hover {
  background: var(--green-10);
  border-color: var(--brand-line);
  transform: translateY(-1px);
}

.chip:active { transform: translateY(0); }

.chip input {
  width: auto;
  margin: 0;
  accent-color: var(--brand);
  flex-shrink: 0;
}

/* Carbon selected tile — interactive border + inset keyline */
.chip:has(input:checked) {
  background: var(--green-10);
  border-color: var(--brand);
  color: var(--green-80);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--brand);
}

/* Tiny corner check mark on selected chips */
.chip:has(input:checked)::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  border-width: 0 14px 14px 0;
  border-style: solid;
  border-color: transparent var(--brand) transparent transparent;
}

/* -----------------------------------------------------------------------------
   11. ALERTS  —  Carbon inline notifications
   -------------------------------------------------------------------------- */
.alert {
  display: none;
  margin-top: var(--sp-04);
  padding: 12px 14px;
  border-radius: var(--r-xs);
  font-size: 13px;
  border: 1px solid;
  border-left-width: 3px;
  line-height: 1.5;
  align-items: flex-start;
  gap: var(--sp-03);
  animation: alert-in var(--t-slow) var(--ease-entrance);
}

.alert.is-visible { display: flex; }

@keyframes alert-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alert--error {
  border-color: var(--danger-line);
  border-left-color: var(--danger);
  background: var(--danger-soft);
  color: #a8141c;
}

.alert--success {
  border-color: var(--brand-line);
  border-left-color: var(--brand);
  background: var(--brand-soft);
  color: var(--green-80);
}

/* -----------------------------------------------------------------------------
   12. CONSENT ROWS  —  Carbon checkbox tiles
   -------------------------------------------------------------------------- */
.consent {
  margin-top: var(--sp-05);
  display: grid;
  gap: var(--sp-03);
}

.consent__row {
  display: flex;
  gap: var(--sp-04);
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  transition:
    border-color var(--t-fast) var(--ease),
    background    var(--t-fast) var(--ease);
}

.consent__row:hover { border-color: var(--line-strong); background: #f6fbf7; }

.consent__row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.consent__row:has(input:checked) {
  background: var(--green-10);
  border-color: var(--brand-line);
  color: var(--green-80);
}

/* -----------------------------------------------------------------------------
   13. ACTIONS + BUTTONS  —  Carbon button system
   Carbon buttons are sharp, weighty, and split label/icon. Primary uses the
   interactive color; secondary is a ghost/tertiary outline.
   -------------------------------------------------------------------------- */
.actions {
  margin-top: var(--sp-06);
  padding-top: var(--sp-06);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-04);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-03);
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  padding: 13px 26px;
  font-weight: 600;
  font-size: 13.5px;
  font-family: 'IBM Plex Sans', sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
  background: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-green);
  position: relative;
  overflow: hidden;
  transition:
    background  var(--t-fast) var(--ease),
    transform   var(--t-fast) var(--ease),
    box-shadow  var(--t-fast) var(--ease),
    opacity     var(--t-fast) var(--ease);
}

/* Subtle top sheen for depth */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, transparent 48%);
  pointer-events: none;
}

/* Carbon's signature wipe on the trailing edge */
.btn::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 0;
  background: rgba(0,0,0,.10);
  transition: width var(--t-med) var(--ease);
}

.btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(22,163,74,.26);
}

.btn:hover::after { width: 8px; }

.btn:active {
  transform: translateY(0);
  background: var(--brand-active);
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  box-shadow: inset 0 0 0 2px #fff, var(--shadow-green);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: var(--gray-50);
}

/* Secondary / tertiary ghost button */
.btn--outline {
  background: #ffffff;
  color: var(--ink-soft);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn--outline::before { display: none; }

.btn--outline:hover {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.btn--outline:active { background: var(--green-10); }

.btn__text {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-03);
  position: relative;
  z-index: 1;
}

.fineprint {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
}

/* -----------------------------------------------------------------------------
   14. HONEYPOT
   -------------------------------------------------------------------------- */
.hp { display: none !important; }

/* -----------------------------------------------------------------------------
   15. OVERLAY  —  Carbon modal + loading
   -------------------------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,13,.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-05);
  z-index: 999;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: overlay-in var(--t-med) var(--ease-entrance);
}

@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.overlay__card {
  width: min(480px, 100%);
  background: #ffffff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-07) var(--sp-07);
  text-align: center;
  animation: pop var(--t-slow) var(--ease-expressive) forwards;
}

.overlay__card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 2px;
  margin: 0 auto var(--sp-06);
  width: 48px;
}

@keyframes pop {
  from { transform: scale(.97) translateY(8px); opacity: 0; }
  to   { transform: scale(1) translateY(0);     opacity: 1; }
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(22,163,74,.20);
  border-top-color: var(--brand);
  margin: 0 auto var(--sp-04);
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.overlay__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}

.overlay__desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: var(--sp-05);
  line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   16. PROGRESS STEPS  —  Carbon progress indicator
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--sp-03); text-align: left; }

.step {
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 11px 14px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: var(--sp-03);
  transition:
    background   var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color        var(--t-fast) var(--ease);
}

.step::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.step.active {
  border-color: var(--brand-line);
  background: var(--green-10);
  color: var(--green-80);
  font-weight: 600;
}

.step.active::before {
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(22,163,74,.18);
  animation: pulse 1.6s var(--ease) infinite;
}

.step.done {
  border-color: rgba(22,163,74,.25);
  background: var(--green-20);
  color: var(--green-70);
}

.step.done::before { background: var(--green-50); }

/* -----------------------------------------------------------------------------
   17. INFO PANEL  —  Carbon UI-shell side panel
   -------------------------------------------------------------------------- */
.info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: card-in .5s var(--ease-expressive) .14s forwards;
}

.info__hero {
  padding: var(--sp-06);
  background:
    linear-gradient(145deg, var(--header) 0%, var(--navy-3) 130%);
  position: relative;
  overflow: hidden;
}

/* Brand bloom + top keyline on the hero */
.info__hero::before {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(34,197,94,.14) 0%, transparent 68%);
}

.info__hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--brand));
}

.info__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-0);
  border: 1px solid rgba(34,197,94,.32);
  background: rgba(34,197,94,.10);
  color: var(--green-40);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.info__title {
  margin: var(--sp-04) 0 var(--sp-03);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -.02em;
}

.info__desc {
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: 12.5px;
  line-height: 1.66;
}

.info__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--sp-03);
  margin-top: var(--sp-05);
}

@media (max-width: 760px) { .info__meta { grid-template-columns: 1fr; } }

.metaCard {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xs);
  background: rgba(255,255,255,.06);
  padding: 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.metaCard:hover { background: rgba(255,255,255,.10); border-color: rgba(34,197,94,.30); }

.metaCard__k {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .07em;
  color: var(--green-40);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.metaCard__v {
  font-size: 13px;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.4;
}

.info__cta {
  margin-top: var(--sp-05);
  display: flex;
  gap: var(--sp-03);
  flex-wrap: wrap;
}

.info__section {
  padding: var(--sp-05) var(--sp-06);
  border-bottom: 1px solid var(--line);
}

.info__section:last-child { border-bottom: none; }

.info__h2 {
  margin: 0 0 var(--sp-04);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand);
  font-family: 'IBM Plex Mono', monospace;
}

/* -----------------------------------------------------------------------------
   18. LISTS  —  timeline + bullets
   -------------------------------------------------------------------------- */
.timeline, .bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.timeline li, .bullets li {
  padding: 7px 0 7px 20px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}

.timeline li:last-child, .bullets li:last-child { border-bottom: none; }

/* Connected node rail for the timeline */
.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(22,163,74,.14);
}

.timeline li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 22px;
  bottom: -1px;
  width: 1px;
  background: var(--line);
}

.timeline li:last-child::after { display: none; }

.bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 11px;
}

.timeline b, .bullets b { color: var(--ink); font-weight: 600; }

/* -----------------------------------------------------------------------------
   19. FAQ  —  Carbon accordion
   -------------------------------------------------------------------------- */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface);
  padding: 0;
  margin-top: var(--sp-03);
  overflow: clip;
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow   var(--t-fast) var(--ease);
}

.faq:hover { border-color: var(--line-strong); }

.faq[open] {
  border-color: var(--brand-line);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
  list-style: none;
  padding: 13px 42px 13px 14px;
  position: relative;
  transition: color var(--t-fast) var(--ease);
}

.faq[open] summary { color: var(--ink); }
.faq summary:hover { color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translateY(-50%);
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 11 11'%3E%3Cpath d='M5.5 0v11M0 5.5h11' stroke='%236b7280' stroke-width='1.4'/%3E%3C/svg%3E");
  transition: transform var(--t-med) var(--ease);
}

.faq[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='3' viewBox='0 0 11 3'%3E%3Cpath d='M0 1.5h11' stroke='%2316a34a' stroke-width='1.4'/%3E%3C/svg%3E");
  transform: translateY(-50%) rotate(180deg);
}

.faq__body {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid var(--line-soft);
  animation: faq-reveal var(--t-slow) var(--ease-entrance);
}

@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------------------------------------
   20. ACKNOWLEDGEMENT PAGE
   -------------------------------------------------------------------------- */
.ack { max-width: 980px; }
.ack__body { padding: var(--sp-07); }

.ack__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-03);
  padding: 7px 12px;
  border-radius: var(--r-0);
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  color: var(--green-70);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: var(--sp-05);
}

.ack__tick {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(22,163,74,.20);
}

.ack__info {
  margin-top: var(--sp-04);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-xs);
  padding: 14px 16px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.ack__info b { color: var(--ink); font-weight: 600; }

.ack__ref {
  margin-top: var(--sp-04);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface);
  padding: 14px 16px;
}

.ack__refLabel {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-03);
}

.ack__refRow {
  display: flex;
  align-items: center;
  gap: var(--sp-03);
  flex-wrap: wrap;
}

.ack__mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  padding: 9px 13px;
  display: inline-block;
  letter-spacing: .05em;
}

.ack__copyBtn { padding: 9px 14px; font-size: 12px; font-weight: 600; }

.ack__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-04);
  margin-top: var(--sp-04);
}

.ack__panel {
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 14px 16px;
  background: var(--surface);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.ack__panel:hover { border-color: var(--line-strong); box-shadow: var(--shadow-xs); }

.ack__panel h3 {
  margin: 0 0 var(--sp-03);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
  font-family: 'IBM Plex Mono', monospace;
}

.ack__panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.ack__panel li {
  padding: 5px 0 5px 16px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}

.ack__panel li:last-child { border-bottom: none; }

.ack__panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.ack__footer {
  margin-top: var(--sp-04);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.ack__small { font-size: 11px; color: var(--muted-2); margin-top: 6px; }

/* -----------------------------------------------------------------------------
   21. INTL TELEPHONE INPUT  (intl-tel-input)
   -------------------------------------------------------------------------- */
.iti { width: 100%; display: block; }
.iti input.input { width: 100%; }
.iti__country-container { z-index: 5; }

.iti__selected-country {
  border-radius: var(--r-xs) 0 0 var(--r-xs);
  background: var(--surface-2);
  border-right: 1px solid var(--line-strong);
}

.iti__selected-country:hover { background: var(--green-10); }

.iti__country-list {
  z-index: 50;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  box-shadow: var(--shadow-lg);
  margin-top: 6px;
  background: #ffffff;
}

.iti__search-input {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}

.iti__search-input:focus {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.iti__country { font-size: 13px; }
.iti__country.iti__highlight { background: var(--green-10); }
.iti__dial-code { color: var(--muted); }

/* -----------------------------------------------------------------------------
   22. UTILITIES
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.text-muted { color: var(--muted) !important; }
.text-brand { color: var(--brand) !important; }
.stack-8  > * + * { margin-top: var(--sp-03); }
.stack-10 > * + * { margin-top: 10px; }
.stack-12 > * + * { margin-top: var(--sp-04); }

/* -----------------------------------------------------------------------------
   23. RESPONSIVE  —  Carbon collapses gutters on small viewports
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  body { background-size: 64px 64px, 64px 64px, 100% 100%; }
  .topbar__inner { padding: 0 var(--sp-05); height: 56px; }
  .brand::after { display: none; }
  .container { padding: var(--sp-05) var(--sp-05) var(--sp-09); }
  .card__head, .form, .info__hero, .info__section { padding: var(--sp-05); }
  .ack__body { padding: var(--sp-05); }
  .h1 { font-size: 19px; }
  .h2 { font-size: 15px; }
  .info__title { font-size: 18px; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }
  .fineprint { max-width: 100%; font-size: 11px; }
  .ack__grid { grid-template-columns: 1fr; }
  .ack__refRow { flex-direction: column; align-items: stretch; }
  .ack__copyBtn { width: 100%; justify-content: center; }
  .overlay__card { padding: var(--sp-06) var(--sp-05); }
}

/* -----------------------------------------------------------------------------
   24. REDUCED MOTION  —  respect user preference, kill all motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card, .info { opacity: 1; transform: none; animation: none; }
  .card::before { transform: scaleX(1); animation: none; }
}

/* -----------------------------------------------------------------------------
   25. PRINT  —  clean documentary output for the acknowledgement page
   -------------------------------------------------------------------------- */
@media print {
  body { background: #fff; }
  .topbar, .btn, .overlay, .info__cta { display: none !important; }
  .card, .info, .ack { box-shadow: none; border-color: #ccc; }
  .card::before, .info__hero::after { display: none; }
}