/* Shared SOTA webinar registration form, country picker portal & boarding pass confirmation.
 * Themes keyed off [data-wf-theme="ui-b"|"ui-a"|"ui-c"|"ui-d"|"lovable"|"register"].
 * Uses rgb()/rgba() and MoneyLab CSS tokens cleanly for zero raw-hex drift.
 */

/* ── Base semantic defaults (light neutral fallback on :root so ancestor [data-wf-theme] inherits cleanly) ─ */
:root {
  --wf-font: inherit;
  --wf-font-head: inherit;
  --wf-text: rgb(20, 20, 20);
  --wf-muted: rgb(94, 90, 85);
  --wf-label: rgb(20, 20, 20);
  --wf-placeholder: rgb(118, 114, 108);

  --wf-input-bg: rgb(255, 255, 255);
  --wf-input-text: rgb(20, 20, 20);
  --wf-input-border: rgba(20, 20, 20, 0.28);
  --wf-input-border-hover: rgba(20, 20, 20, 0.5);
  --wf-input-border-width: 1.5px;
  --wf-input-radius: 12px;
  --wf-input-height: 52px;

  --wf-trigger-bg: rgb(247, 245, 240);
  --wf-trigger-hover: rgb(238, 235, 228);
  --wf-trigger-divider: rgba(20, 20, 20, 0.16);
  --wf-iso-bg: rgb(230, 234, 245);
  --wf-iso-text: rgb(20, 20, 20);
  --wf-dial-text: rgb(55, 55, 55);

  --wf-accent: rgb(15, 53, 238);
  --wf-accent-hover: rgb(18, 37, 199);
  --wf-accent-fg: rgb(255, 255, 255);
  --wf-focus-ring: rgb(15, 53, 238);
  --wf-focus-halo: rgba(15, 53, 238, 0.2);

  --wf-err-bg: rgb(254, 226, 226);
  --wf-err-border: rgb(220, 38, 38);
  --wf-err-text: rgb(153, 27, 27);
  --wf-err-inline: rgb(185, 28, 28);

  --wf-portal-bg: rgb(255, 255, 255);
  --wf-portal-text: rgb(20, 20, 20);
  --wf-portal-muted: rgb(94, 90, 85);
  --wf-portal-border: rgba(20, 20, 20, 0.18);
  --wf-portal-border-width: 1px;
  --wf-portal-radius: 14px;
  --wf-portal-shadow: 0 18px 42px -10px rgba(15, 23, 42, 0.24), 0 4px 12px rgba(15, 23, 42, 0.08);
  --wf-portal-search-bg: rgb(247, 248, 250);
  --wf-portal-hover: rgb(243, 245, 249);
  --wf-portal-active: rgb(235, 241, 255);
  --wf-portal-section-bg: rgb(249, 250, 251);
  --wf-scrim: rgba(10, 12, 20, 0.52);

  --wf-ok-bg: rgb(244, 251, 247);
  --wf-ok-border: rgb(16, 118, 76);
  --wf-ok-border-width: 1.5px;
  --wf-ok-radius: 16px;
  --wf-ok-shadow: none;
  --wf-ok-text: rgb(20, 20, 20);
  --wf-ok-muted: rgb(72, 82, 76);
  --wf-ok-eyebrow: rgb(14, 102, 66);
  --wf-ok-badge-bg: rgba(16, 138, 86, 0.14);
  --wf-ok-badge-fg: rgb(14, 118, 74);

  --wf-pass-bg: rgb(255, 255, 255);
  --wf-pass-border: rgba(20, 20, 20, 0.12);
  --wf-pass-radius: 12px;
  --wf-pill-bg: rgba(15, 53, 238, 0.1);
  --wf-pill-text: rgb(15, 53, 238);

  --wf-cal-bg: rgb(15, 53, 238);
  --wf-cal-hover: rgb(18, 37, 199);
  --wf-cal-fg: rgb(255, 255, 255);
  --wf-cal-border: transparent;
  --wf-cal-shadow: none;
  --wf-cal-radius: 12px;
  --wf-cal-sec-bg: rgb(255, 255, 255);
  --wf-cal-sec-hover: rgb(244, 246, 250);
  --wf-cal-sec-fg: rgb(20, 20, 20);
  --wf-cal-sec-border: rgba(20, 20, 20, 0.24);

  --wf-step-num-bg: rgba(20, 20, 20, 0.08);
  --wf-step-num-fg: rgb(20, 20, 20);
  --wf-reset-fg: rgb(72, 82, 76);
}

/* ── Theme 1: ui-b (Spotlight — Obsidian & Warm Amber) ───────────────────── */
[data-wf-theme="ui-b"],
.wf-portal[data-wf-theme="ui-b"] {
  --wf-font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wf-font-head: "Anton", "Arial Narrow", Impact, sans-serif;
  --wf-text: rgb(246, 240, 231);
  --wf-muted: rgb(184, 173, 161);
  --wf-label: rgb(246, 240, 231);
  --wf-placeholder: rgba(184, 173, 161, 0.65);

  --wf-input-bg: rgb(10, 8, 7);
  --wf-input-text: rgb(246, 240, 231);
  --wf-input-border: rgba(255, 255, 255, 0.28);
  --wf-input-border-hover: rgba(255, 182, 41, 0.65);
  --wf-input-border-width: 1.5px;
  --wf-input-radius: 10px;
  --wf-input-height: 54px;

  --wf-trigger-bg: rgb(23, 18, 15);
  --wf-trigger-hover: rgb(36, 28, 23);
  --wf-trigger-divider: rgba(255, 255, 255, 0.18);
  --wf-iso-bg: rgba(255, 182, 41, 0.16);
  --wf-iso-text: rgb(255, 198, 88);
  --wf-dial-text: rgb(246, 240, 231);

  --wf-accent: rgb(255, 182, 41);
  --wf-accent-hover: rgb(255, 199, 80);
  --wf-accent-fg: rgb(18, 14, 11);
  --wf-focus-ring: rgb(255, 182, 41);
  --wf-focus-halo: rgba(255, 182, 41, 0.26);

  --wf-err-bg: rgb(69, 10, 10);
  --wf-err-border: rgb(248, 113, 113);
  --wf-err-text: rgb(254, 202, 202);
  --wf-err-inline: rgb(252, 165, 165);

  --wf-portal-bg: rgb(23, 18, 15);
  --wf-portal-text: rgb(246, 240, 231);
  --wf-portal-muted: rgb(184, 173, 161);
  --wf-portal-border: rgba(255, 255, 255, 0.2);
  --wf-portal-border-width: 1px;
  --wf-portal-radius: 14px;
  --wf-portal-shadow: 0 22px 48px -10px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 182, 41, 0.18);
  --wf-portal-search-bg: rgb(10, 8, 7);
  --wf-portal-hover: rgb(38, 30, 24);
  --wf-portal-active: rgba(255, 182, 41, 0.16);
  --wf-portal-section-bg: rgb(18, 14, 11);
  --wf-scrim: rgba(0, 0, 0, 0.72);

  --wf-ok-bg: rgb(23, 18, 15);
  --wf-ok-border: rgb(255, 182, 41);
  --wf-ok-border-width: 1.5px;
  --wf-ok-radius: 14px;
  --wf-ok-text: rgb(246, 240, 231);
  --wf-ok-muted: rgb(196, 185, 173);
  --wf-ok-eyebrow: rgb(255, 182, 41);
  --wf-ok-badge-bg: rgba(52, 211, 153, 0.16);
  --wf-ok-badge-fg: rgb(52, 211, 153);

  --wf-pass-bg: rgb(33, 26, 21);
  --wf-pass-border: rgba(255, 255, 255, 0.14);
  --wf-pass-radius: 12px;
  --wf-pill-bg: rgba(255, 182, 41, 0.16);
  --wf-pill-text: rgb(255, 202, 92);

  --wf-cal-bg: rgb(255, 182, 41);
  --wf-cal-hover: rgb(255, 199, 80);
  --wf-cal-fg: rgb(18, 14, 11);
  --wf-cal-border: transparent;
  --wf-cal-radius: 10px;
  --wf-cal-sec-bg: rgba(255, 255, 255, 0.06);
  --wf-cal-sec-hover: rgba(255, 255, 255, 0.12);
  --wf-cal-sec-fg: rgb(246, 240, 231);
  --wf-cal-sec-border: rgba(255, 255, 255, 0.24);

  --wf-step-num-bg: rgba(255, 182, 41, 0.18);
  --wf-step-num-fg: rgb(255, 198, 88);
  --wf-reset-fg: rgb(184, 173, 161);
}

/* ── Theme 2: ui-a (Invitation — Ivory, Forest Green & Brass) ────────────── */
[data-wf-theme="ui-a"],
.wf-portal[data-wf-theme="ui-a"] {
  --wf-font: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --wf-font-head: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --wf-text: rgb(35, 26, 21);
  --wf-muted: rgb(111, 97, 88);
  --wf-label: rgb(35, 26, 21);
  --wf-placeholder: rgba(111, 97, 88, 0.72);

  --wf-input-bg: rgb(255, 255, 255);
  --wf-input-text: rgb(35, 26, 21);
  --wf-input-border: rgba(35, 26, 21, 0.28);
  --wf-input-border-hover: rgba(30, 77, 59, 0.6);
  --wf-input-border-width: 1.5px;
  --wf-input-radius: 14px;
  --wf-input-height: 54px;

  --wf-trigger-bg: rgb(250, 246, 238);
  --wf-trigger-hover: rgb(241, 232, 218);
  --wf-trigger-divider: rgba(35, 26, 21, 0.16);
  --wf-iso-bg: rgb(221, 231, 221);
  --wf-iso-text: rgb(22, 58, 44);
  --wf-dial-text: rgb(35, 26, 21);

  --wf-accent: rgb(30, 77, 59);
  --wf-accent-hover: rgb(22, 58, 44);
  --wf-accent-fg: rgb(255, 255, 255);
  --wf-focus-ring: rgb(176, 141, 87);
  --wf-focus-halo: rgba(176, 141, 87, 0.26);

  --wf-err-bg: rgb(254, 226, 226);
  --wf-err-border: rgb(185, 28, 28);
  --wf-err-text: rgb(127, 29, 29);
  --wf-err-inline: rgb(153, 27, 27);

  --wf-portal-bg: rgb(255, 255, 255);
  --wf-portal-text: rgb(35, 26, 21);
  --wf-portal-muted: rgb(111, 97, 88);
  --wf-portal-border: rgba(35, 26, 21, 0.16);
  --wf-portal-border-width: 1px;
  --wf-portal-radius: 18px;
  --wf-portal-shadow: 0 20px 44px -12px rgba(35, 26, 21, 0.22), 0 4px 12px rgba(35, 26, 21, 0.08);
  --wf-portal-search-bg: rgb(250, 246, 238);
  --wf-portal-hover: rgb(250, 246, 238);
  --wf-portal-active: rgb(221, 231, 221);
  --wf-portal-section-bg: rgb(247, 242, 233);
  --wf-scrim: rgba(22, 34, 28, 0.56);

  --wf-ok-bg: rgb(250, 246, 238);
  --wf-ok-border: rgb(30, 77, 59);
  --wf-ok-border-width: 1.5px;
  --wf-ok-radius: 20px;
  --wf-ok-text: rgb(35, 26, 21);
  --wf-ok-muted: rgb(75, 63, 56);
  --wf-ok-eyebrow: rgb(30, 77, 59);
  --wf-ok-badge-bg: rgb(221, 231, 221);
  --wf-ok-badge-fg: rgb(22, 58, 44);

  --wf-pass-bg: rgb(255, 255, 255);
  --wf-pass-border: rgba(35, 26, 21, 0.14);
  --wf-pass-radius: 14px;
  --wf-pill-bg: rgb(221, 231, 221);
  --wf-pill-text: rgb(22, 58, 44);

  --wf-cal-bg: rgb(30, 77, 59);
  --wf-cal-hover: rgb(22, 58, 44);
  --wf-cal-fg: rgb(255, 255, 255);
  --wf-cal-border: transparent;
  --wf-cal-radius: 999px;
  --wf-cal-sec-bg: rgb(255, 255, 255);
  --wf-cal-sec-hover: rgb(241, 232, 218);
  --wf-cal-sec-fg: rgb(22, 58, 44);
  --wf-cal-sec-border: rgba(30, 77, 59, 0.35);

  --wf-step-num-bg: rgb(221, 231, 221);
  --wf-step-num-fg: rgb(22, 58, 44);
  --wf-reset-fg: rgb(75, 63, 56);
}

/* ui-a dark forest bottom section (.a-last) & dark surface override */
.a-last [data-wf-theme="ui-a"],
[data-wf-theme="ui-a"] .a-last,
.a-last .wf-form,
.a-panel--green .wf-form,
[data-wf-theme="ui-a"][data-wf-surface="dark"],
[data-wf-theme="ui-a"] [data-wf-surface="dark"] {
  --wf-text: rgb(255, 255, 255);
  --wf-muted: rgb(208, 223, 214);
  --wf-label: rgb(255, 255, 255);
  --wf-input-bg: rgb(255, 255, 255);
  --wf-input-text: rgb(35, 26, 21);
  --wf-input-border: rgba(255, 255, 255, 0.45);
  --wf-input-border-hover: rgb(243, 223, 168);
  --wf-focus-ring: rgb(243, 223, 168);
  --wf-focus-halo: rgba(243, 223, 168, 0.32);
  --wf-err-bg: rgb(254, 226, 226);
  --wf-err-text: rgb(127, 29, 29);
  --wf-err-inline: rgb(254, 226, 226);
  --wf-ok-bg: rgb(250, 246, 238);
  --wf-ok-border: rgb(243, 223, 168);
  --wf-ok-text: rgb(35, 26, 21);
  --wf-ok-muted: rgb(75, 63, 56);
}

.a-last .wf-field-err,
.a-panel--green .wf-field-err,
[data-wf-theme="ui-a"][data-wf-surface="dark"] .wf-field-err,
[data-wf-theme="ui-a"] [data-wf-surface="dark"] .wf-field-err {
  background: rgba(127, 29, 29, 0.6);
  color: rgb(254, 226, 226);
  padding: 4px 10px;
  border-radius: 8px;
}

/* ── Theme 3: ui-c (Open Letter — Ink Borders, Highlighter Yellow & Cobalt) */
[data-wf-theme="ui-c"],
.wf-portal[data-wf-theme="ui-c"] {
  --wf-font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --wf-font-head: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --wf-text: rgb(20, 20, 20);
  --wf-muted: rgb(94, 90, 85);
  --wf-label: rgb(20, 20, 20);
  --wf-placeholder: rgb(120, 115, 108);

  --wf-input-bg: rgb(255, 255, 255);
  --wf-input-text: rgb(20, 20, 20);
  --wf-input-border: rgb(20, 20, 20);
  --wf-input-border-hover: rgb(30, 58, 138);
  --wf-input-border-width: 2px;
  --wf-input-radius: 8px;
  --wf-input-height: 54px;

  --wf-trigger-bg: rgb(255, 254, 250);
  --wf-trigger-hover: rgb(255, 246, 194);
  --wf-trigger-divider: rgb(20, 20, 20);
  --wf-iso-bg: rgb(255, 231, 102);
  --wf-iso-text: rgb(20, 20, 20);
  --wf-dial-text: rgb(20, 20, 20);

  --wf-accent: rgb(255, 217, 61);
  --wf-accent-hover: rgb(255, 226, 98);
  --wf-accent-fg: rgb(20, 20, 20);
  --wf-focus-ring: rgb(30, 58, 138);
  --wf-focus-halo: rgba(30, 58, 138, 0.22);

  --wf-err-bg: rgb(254, 226, 226);
  --wf-err-border: rgb(185, 28, 28);
  --wf-err-text: rgb(127, 29, 29);
  --wf-err-inline: rgb(153, 27, 27);

  --wf-portal-bg: rgb(255, 255, 255);
  --wf-portal-text: rgb(20, 20, 20);
  --wf-portal-muted: rgb(94, 90, 85);
  --wf-portal-border: rgb(20, 20, 20);
  --wf-portal-border-width: 2px;
  --wf-portal-radius: 10px;
  --wf-portal-shadow: 4px 4px 0 rgb(20, 20, 20);
  --wf-portal-search-bg: rgb(255, 254, 250);
  --wf-portal-hover: rgb(255, 250, 220);
  --wf-portal-active: rgb(255, 246, 194);
  --wf-portal-section-bg: rgb(245, 241, 233);
  --wf-scrim: rgba(20, 20, 20, 0.56);

  --wf-ok-bg: rgb(255, 254, 250);
  --wf-ok-border: rgb(20, 20, 20);
  --wf-ok-border-width: 2px;
  --wf-ok-radius: 12px;
  --wf-ok-shadow: 4px 4px 0 rgb(20, 20, 20);
  --wf-ok-text: rgb(20, 20, 20);
  --wf-ok-muted: rgb(74, 71, 67);
  --wf-ok-eyebrow: rgb(30, 58, 138);
  --wf-ok-badge-bg: rgb(255, 246, 194);
  --wf-ok-badge-fg: rgb(30, 58, 138);

  --wf-pass-bg: rgb(255, 246, 194);
  --wf-pass-border: rgb(20, 20, 20);
  --wf-pass-radius: 8px;
  --wf-pill-bg: rgb(255, 255, 255);
  --wf-pill-text: rgb(30, 58, 138);

  --wf-cal-bg: rgb(255, 217, 61);
  --wf-cal-hover: rgb(255, 226, 98);
  --wf-cal-fg: rgb(20, 20, 20);
  --wf-cal-border: rgb(20, 20, 20);
  --wf-cal-shadow: 3px 3px 0 rgb(20, 20, 20);
  --wf-cal-radius: 8px;
  --wf-cal-sec-bg: rgb(255, 255, 255);
  --wf-cal-sec-hover: rgb(255, 246, 194);
  --wf-cal-sec-fg: rgb(20, 20, 20);
  --wf-cal-sec-border: rgb(20, 20, 20);

  --wf-step-num-bg: rgb(255, 231, 102);
  --wf-step-num-fg: rgb(20, 20, 20);
  --wf-reset-fg: rgb(30, 58, 138);
}

/* ── Theme 4: ui-d (Bold Ticket — Plum, Butter & Cream Event Pass) ───────── */
[data-wf-theme="ui-d"],
.wf-portal[data-wf-theme="ui-d"] {
  --wf-font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --wf-font-head: "Gloock", "Iowan Old Style", Georgia, serif;
  --wf-text: rgb(58, 18, 48);
  --wf-muted: rgb(107, 74, 96);
  --wf-label: rgb(58, 18, 48);
  --wf-placeholder: rgba(107, 74, 96, 0.72);

  --wf-input-bg: rgb(255, 255, 255);
  --wf-input-text: rgb(58, 18, 48);
  --wf-input-border: rgba(58, 18, 48, 0.48);
  --wf-input-border-hover: rgb(58, 18, 48);
  --wf-input-border-width: 1.5px;
  --wf-input-radius: 14px;
  --wf-input-height: 54px;

  --wf-trigger-bg: rgb(255, 246, 234);
  --wf-trigger-hover: rgb(255, 223, 107);
  --wf-trigger-divider: rgba(58, 18, 48, 0.24);
  --wf-iso-bg: rgb(255, 223, 107);
  --wf-iso-text: rgb(58, 18, 48);
  --wf-dial-text: rgb(58, 18, 48);

  --wf-accent: rgb(58, 18, 48);
  --wf-accent-hover: rgb(86, 28, 71);
  --wf-accent-fg: rgb(255, 246, 234);
  --wf-focus-ring: rgb(58, 18, 48);
  --wf-focus-halo: rgba(255, 223, 107, 0.55);

  --wf-err-bg: rgb(254, 226, 226);
  --wf-err-border: rgb(181, 48, 28);
  --wf-err-text: rgb(127, 29, 29);
  --wf-err-inline: rgb(181, 48, 28);

  --wf-portal-bg: rgb(255, 255, 255);
  --wf-portal-text: rgb(58, 18, 48);
  --wf-portal-muted: rgb(107, 74, 96);
  --wf-portal-border: rgba(58, 18, 48, 0.28);
  --wf-portal-border-width: 1.5px;
  --wf-portal-radius: 18px;
  --wf-portal-shadow: 0 20px 44px -10px rgba(58, 18, 48, 0.28), 0 4px 12px rgba(58, 18, 48, 0.12);
  --wf-portal-search-bg: rgb(255, 246, 234);
  --wf-portal-hover: rgb(255, 246, 234);
  --wf-portal-active: rgba(255, 223, 107, 0.5);
  --wf-portal-section-bg: rgb(255, 240, 222);
  --wf-scrim: rgba(58, 18, 48, 0.58);

  --wf-ok-bg: rgb(255, 246, 234);
  --wf-ok-border: rgb(58, 18, 48);
  --wf-ok-border-width: 1.5px;
  --wf-ok-radius: 16px;
  --wf-ok-text: rgb(58, 18, 48);
  --wf-ok-muted: rgb(107, 74, 96);
  --wf-ok-eyebrow: rgb(181, 48, 28);
  --wf-ok-badge-bg: rgb(255, 223, 107);
  --wf-ok-badge-fg: rgb(58, 18, 48);

  --wf-pass-bg: rgb(255, 255, 255);
  --wf-pass-border: rgba(58, 18, 48, 0.2);
  --wf-pass-radius: 14px;
  --wf-pill-bg: rgb(255, 223, 107);
  --wf-pill-text: rgb(58, 18, 48);

  --wf-cal-bg: rgb(58, 18, 48);
  --wf-cal-hover: rgb(86, 28, 71);
  --wf-cal-fg: rgb(255, 246, 234);
  --wf-cal-border: transparent;
  --wf-cal-radius: 999px;
  --wf-cal-sec-bg: rgb(255, 255, 255);
  --wf-cal-sec-hover: rgb(255, 223, 107);
  --wf-cal-sec-fg: rgb(58, 18, 48);
  --wf-cal-sec-border: rgba(58, 18, 48, 0.35);

  --wf-step-num-bg: rgb(255, 199, 218);
  --wf-step-num-fg: rgb(58, 18, 48);
  --wf-reset-fg: rgb(107, 74, 96);
}

/* ── Theme 5: lovable (Deep Wine, Highlight Yellow & Crisp Ink Card) ─────── */
[data-wf-theme="lovable"],
.wf-portal[data-wf-theme="lovable"] {
  --wf-font: "Libre Franklin", system-ui, -apple-system, sans-serif;
  --wf-font-head: "Libre Franklin", system-ui, -apple-system, sans-serif;
  --wf-text: rgb(22, 22, 22);
  --wf-muted: rgb(85, 85, 85);
  --wf-label: rgb(22, 22, 22);
  --wf-placeholder: rgb(115, 115, 115);

  --wf-input-bg: rgb(255, 255, 255);
  --wf-input-text: rgb(22, 22, 22);
  --wf-input-border: rgb(22, 22, 22);
  --wf-input-border-hover: rgb(85, 17, 18);
  --wf-input-border-width: 2px;
  --wf-input-radius: 10px;
  --wf-input-height: 54px;

  --wf-trigger-bg: rgb(239, 246, 255);
  --wf-trigger-hover: rgb(227, 242, 255);
  --wf-trigger-divider: rgb(22, 22, 22);
  --wf-iso-bg: rgb(252, 226, 96);
  --wf-iso-text: rgb(85, 17, 18);
  --wf-dial-text: rgb(22, 22, 22);

  --wf-accent: rgb(85, 17, 18);
  --wf-accent-hover: rgb(111, 25, 26);
  --wf-accent-fg: rgb(244, 249, 255);
  --wf-focus-ring: rgb(111, 25, 26);
  --wf-focus-halo: rgba(227, 242, 255, 0.9);

  --wf-err-bg: rgb(254, 226, 226);
  --wf-err-border: rgb(111, 25, 26);
  --wf-err-text: rgb(127, 29, 29);
  --wf-err-inline: rgb(153, 27, 27);

  --wf-portal-bg: rgb(255, 255, 255);
  --wf-portal-text: rgb(22, 22, 22);
  --wf-portal-muted: rgb(85, 85, 85);
  --wf-portal-border: rgb(22, 22, 22);
  --wf-portal-border-width: 2px;
  --wf-portal-radius: 12px;
  --wf-portal-shadow: 5px 5px 0 rgb(22, 22, 22);
  --wf-portal-search-bg: rgb(239, 246, 255);
  --wf-portal-hover: rgb(239, 246, 255);
  --wf-portal-active: rgba(252, 226, 96, 0.45);
  --wf-portal-section-bg: rgb(232, 241, 252);
  --wf-scrim: rgba(22, 22, 22, 0.56);

  --wf-ok-bg: rgb(239, 246, 255);
  --wf-ok-border: rgb(22, 22, 22);
  --wf-ok-border-width: 2px;
  --wf-ok-radius: 14px;
  --wf-ok-shadow: 4px 4px 0 rgb(22, 22, 22);
  --wf-ok-text: rgb(22, 22, 22);
  --wf-ok-muted: rgb(74, 74, 74);
  --wf-ok-eyebrow: rgb(85, 17, 18);
  --wf-ok-badge-bg: rgb(252, 226, 96);
  --wf-ok-badge-fg: rgb(85, 17, 18);

  --wf-pass-bg: rgb(255, 255, 255);
  --wf-pass-border: rgba(22, 22, 22, 0.24);
  --wf-pass-radius: 10px;
  --wf-pill-bg: rgb(252, 226, 96);
  --wf-pill-text: rgb(85, 17, 18);

  --wf-cal-bg: rgb(85, 17, 18);
  --wf-cal-hover: rgb(111, 25, 26);
  --wf-cal-fg: rgb(244, 249, 255);
  --wf-cal-border: rgb(22, 22, 22);
  --wf-cal-shadow: 3px 3px 0 rgb(22, 22, 22);
  --wf-cal-radius: 10px;
  --wf-cal-sec-bg: rgb(255, 255, 255);
  --wf-cal-sec-hover: rgb(227, 242, 255);
  --wf-cal-sec-fg: rgb(85, 17, 18);
  --wf-cal-sec-border: rgb(22, 22, 22);

  --wf-step-num-bg: rgb(252, 226, 96);
  --wf-step-num-fg: rgb(85, 17, 18);
  --wf-reset-fg: rgb(111, 25, 26);
}

/* ── Theme 6: register (MoneyLab Design System Tokens) ───────────────────── */
[data-wf-theme="register"],
.wf-portal[data-wf-theme="register"] {
  --wf-font: var(--ml-font-interface, "Inter", system-ui, -apple-system, sans-serif);
  --wf-font-head: var(--ml-font-voice, "Fraunces", Georgia, serif);
  --wf-text: var(--ml-color-text-primary, rgb(6, 12, 36));
  --wf-muted: var(--ml-color-text-secondary, rgb(55, 64, 90));
  --wf-label: var(--ml-color-text-primary, rgb(6, 12, 36));
  --wf-placeholder: var(--ml-color-text-placeholder, rgb(108, 116, 137));

  --wf-input-bg: var(--ml-color-bg-surface, rgb(255, 255, 255));
  --wf-input-text: var(--ml-color-text-primary, rgb(6, 12, 36));
  --wf-input-border: var(--ml-color-border-control, rgb(108, 116, 137));
  --wf-input-border-hover: var(--ml-color-border-brand, rgb(15, 53, 238));
  --wf-input-border-width: 1px;
  --wf-input-radius: var(--ml-radius-field, 16px);
  --wf-input-height: 52px;

  --wf-trigger-bg: var(--ml-color-bg-sunken, rgb(246, 244, 236));
  --wf-trigger-hover: var(--ml-color-bg-brand-subtle, rgb(238, 244, 255));
  --wf-trigger-divider: var(--ml-color-border-default, rgb(217, 220, 229));
  --wf-iso-bg: var(--ml-color-bg-brand-subtle, rgb(238, 244, 255));
  --wf-iso-text: var(--ml-color-text-brand, rgb(15, 53, 238));
  --wf-dial-text: var(--ml-color-text-primary, rgb(6, 12, 36));

  --wf-accent: var(--ml-color-bg-brand, rgb(15, 53, 238));
  --wf-accent-hover: var(--ml-color-bg-brand-hover, rgb(18, 37, 199));
  --wf-accent-fg: var(--ml-color-text-on-brand, rgb(255, 255, 255));
  --wf-focus-ring: var(--ml-color-focus-ring, rgb(15, 53, 238));
  --wf-focus-halo: rgba(15, 53, 238, 0.2);

  --wf-err-bg: var(--ml-color-danger-bg, rgb(255, 243, 241));
  --wf-err-border: var(--ml-color-danger-solid, rgb(214, 29, 34));
  --wf-err-text: var(--ml-color-danger-fg, rgb(176, 12, 21));
  --wf-err-inline: var(--ml-color-danger-fg, rgb(176, 12, 21));

  --wf-portal-bg: var(--ml-color-bg-surface, rgb(255, 255, 255));
  --wf-portal-text: var(--ml-color-text-primary, rgb(6, 12, 36));
  --wf-portal-muted: var(--ml-color-text-secondary, rgb(55, 64, 90));
  --wf-portal-border: var(--ml-color-border-default, rgb(217, 220, 229));
  --wf-portal-border-width: 1px;
  --wf-portal-radius: var(--ml-radius-lg, 16px);
  --wf-portal-shadow: var(--ml-shadow-lg, 0 16px 32px -8px rgba(6, 12, 36, 0.14));
  --wf-portal-search-bg: var(--ml-color-bg-sunken, rgb(246, 244, 236));
  --wf-portal-hover: var(--ml-color-bg-sunken, rgb(246, 244, 236));
  --wf-portal-active: var(--ml-color-bg-brand-subtle, rgb(238, 244, 255));
  --wf-portal-section-bg: var(--ml-color-bg-canvas, rgb(251, 250, 245));
  --wf-scrim: var(--ml-color-bg-scrim, rgba(6, 12, 36, 0.55));

  --wf-ok-bg: var(--ml-color-success-bg, rgb(236, 251, 242));
  --wf-ok-border: var(--ml-color-success-border, rgb(173, 238, 199));
  --wf-ok-border-width: 1.5px;
  --wf-ok-radius: var(--ml-radius-lg, 16px);
  --wf-ok-text: var(--ml-color-text-primary, rgb(6, 12, 36));
  --wf-ok-muted: var(--ml-color-text-secondary, rgb(55, 64, 90));
  --wf-ok-eyebrow: var(--ml-color-success-fg, rgb(1, 104, 63));
  --wf-ok-badge-bg: rgba(1, 132, 81, 0.14);
  --wf-ok-badge-fg: var(--ml-color-success-solid, rgb(1, 132, 81));

  --wf-pass-bg: var(--ml-color-bg-surface, rgb(255, 255, 255));
  --wf-pass-border: var(--ml-color-border-subtle, rgb(226, 222, 209));
  --wf-pass-radius: var(--ml-radius-md, 12px);
  --wf-pill-bg: var(--ml-color-bg-brand-subtle, rgb(238, 244, 255));
  --wf-pill-text: var(--ml-color-text-brand, rgb(15, 53, 238));

  --wf-cal-bg: var(--ml-color-bg-brand, rgb(15, 53, 238));
  --wf-cal-hover: var(--ml-color-bg-brand-hover, rgb(18, 37, 199));
  --wf-cal-fg: var(--ml-color-text-on-brand, rgb(255, 255, 255));
  --wf-cal-border: transparent;
  --wf-cal-radius: var(--ml-radius-button, 9999px);
  --wf-cal-sec-bg: var(--ml-color-bg-surface, rgb(255, 255, 255));
  --wf-cal-sec-hover: var(--ml-color-bg-brand-subtle, rgb(238, 244, 255));
  --wf-cal-sec-fg: var(--ml-color-text-brand, rgb(15, 53, 238));
  --wf-cal-sec-border: var(--ml-color-border-control, rgb(108, 116, 137));

  --wf-step-num-bg: var(--ml-color-bg-brand-subtle, rgb(238, 244, 255));
  --wf-step-num-fg: var(--ml-color-text-brand, rgb(15, 53, 238));
  --wf-reset-fg: var(--ml-color-text-secondary, rgb(55, 64, 90));
}

/* ── Form Layout & Fields ────────────────────────────────────────────────── */
.wf-form,
.wf-fields {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  font-family: var(--wf-font);
  text-align: left;
}

.wf-fields[hidden],
.wf-field-err[hidden],
.wf-err[hidden],
.wf-ok[hidden],
.wf-confirm[hidden],
.wf-portal[hidden] {
  display: none !important;
}

.wf-row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-width: 0;
}

@media (min-width: 440px) {
  .wf-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wf-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  text-align: left;
}

.wf-label {
  display: block;
  margin: 0;
  color: var(--wf-label);
  font-family: var(--wf-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.wf-input,
.wf-form .wf-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: var(--wf-input-height);
  margin: 0;
  padding: 12px 14px;
  border: var(--wf-input-border-width) solid var(--wf-input-border);
  border-radius: var(--wf-input-radius);
  background: var(--wf-input-bg);
  color: var(--wf-input-text);
  font-family: var(--wf-font);
  font-size: max(16px, 1rem);
  font-weight: 500;
  line-height: 1.35;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.wf-input::placeholder {
  color: var(--wf-placeholder);
  opacity: 1;
}

.wf-input:hover:not(:disabled):not(:read-only) {
  border-color: var(--wf-input-border-hover);
}

.wf-input:focus {
  outline: none;
  border-color: var(--wf-focus-ring);
  box-shadow: 0 0 0 3px var(--wf-focus-halo);
}

.wf-input:focus-visible {
  outline: 3px solid var(--wf-focus-ring);
  outline-offset: 2px;
}

.wf-input:disabled,
.wf-country-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Composite Phone Group (Country Selector + Masked Input) ─────────────── */
.wf-phone {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: var(--wf-input-height);
  border: var(--wf-input-border-width) solid var(--wf-input-border);
  border-radius: var(--wf-input-radius);
  background: var(--wf-input-bg);
  overflow: hidden;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.wf-phone:hover:not(:has(:disabled)) {
  border-color: var(--wf-input-border-hover);
}

.wf-phone:focus-within {
  border-color: var(--wf-focus-ring);
  box-shadow: 0 0 0 3px var(--wf-focus-halo);
}

.wf-country-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 10px 0 11px;
  border: 0;
  border-right: 1px solid var(--wf-trigger-divider);
  border-radius: 0;
  background: var(--wf-trigger-bg);
  color: var(--wf-dial-text);
  font-family: var(--wf-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.wf-country-btn:hover:not(:disabled) {
  background: var(--wf-trigger-hover);
}

.wf-country-btn:focus-visible {
  outline: 3px solid var(--wf-focus-ring);
  outline-offset: -3px;
}

.wf-country-iso {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--wf-iso-bg);
  color: var(--wf-iso-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

.wf-country-dial {
  color: var(--wf-dial-text);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wf-chev,
.wf-country-chev {
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--wf-muted);
  transition: transform 0.16s ease;
}

.wf-country-btn[aria-expanded="true"] .wf-chev,
.wf-country-btn[aria-expanded="true"] .wf-country-chev {
  transform: rotate(180deg);
}

.wf-phone-input,
.wf-form .wf-phone-input {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  min-height: calc(var(--wf-input-height) - 3px);
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-variant-numeric: tabular-nums;
}

.wf-phone-input:focus,
.wf-form .wf-phone-input:focus,
.wf-phone-input:focus-visible,
.wf-form .wf-phone-input:focus-visible {
  outline: none;
  box-shadow: none;
}

/* ── Validation Error States ─────────────────────────────────────────────── */
.wf-field.wf-invalid .wf-input:not(.wf-phone-input),
.wf-field.wf-invalid .wf-phone {
  border-color: var(--wf-err-border);
}

.wf-field.wf-invalid .wf-input:not(.wf-phone-input):focus,
.wf-field.wf-invalid .wf-phone:focus-within {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22);
}

.wf-field-err,
.wf-form .wf-field-err {
  margin: 0;
  color: var(--wf-err-inline);
  font-family: var(--wf-font);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.wf-err,
.wf-form .wf-err {
  margin: 2px 0 0;
  padding: 11px 14px;
  border: 1.5px solid var(--wf-err-border);
  border-radius: 10px;
  background: var(--wf-err-bg);
  color: var(--wf-err-text);
  font-family: var(--wf-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

/* ── Submit Button Loading State ─────────────────────────────────────────── */
.wf-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
}

.wf-submit .wf-spinner {
  display: none;
  flex: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}

.wf-submit.is-loading {
  cursor: wait;
  opacity: 0.92;
}

.wf-submit.is-loading .wf-spinner {
  display: inline-block;
  animation: wf-spin 0.72s linear infinite;
}

.wf-submit.is-loading:not(:has(.wf-spinner))::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: wf-spin 0.72s linear infinite;
}

.wf-consent {
  margin: 2px 0 0;
  color: var(--wf-muted);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: left;
}

/* ── Body-Mounted Country Picker Portal (Desktop Popover + Mobile Sheet) ── */
.wf-portal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  font-family: var(--wf-font);
  color: var(--wf-portal-text);
  box-sizing: border-box;
  pointer-events: none;
}

.wf-portal *,
.wf-portal *::before,
.wf-portal *::after {
  box-sizing: border-box;
}

.wf-portal__backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  pointer-events: auto;
}

.wf-popover {
  position: fixed;
  display: flex;
  flex-direction: column;
  width: 336px;
  max-width: calc(100vw - 24px);
  max-height: 360px;
  border: var(--wf-portal-border-width) solid var(--wf-portal-border);
  border-radius: var(--wf-portal-radius);
  background: var(--wf-portal-bg);
  color: var(--wf-portal-text);
  box-shadow: var(--wf-portal-shadow);
  overflow: hidden;
  pointer-events: auto;
  animation: wf-fade-in 0.14s ease-out;
}

.wf-popover__handle {
  display: none;
}

.wf-popover__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 12px;
  border-bottom: 1px solid var(--wf-portal-border);
  background: var(--wf-portal-bg);
  flex: 0 0 auto;
}

.wf-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.wf-search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--wf-portal-muted);
  pointer-events: none;
}

.wf-search {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--wf-portal-border);
  border-radius: 10px;
  background: var(--wf-portal-search-bg);
  color: var(--wf-portal-text);
  font-family: var(--wf-font);
  font-size: max(16px, 1rem);
  font-weight: 500;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
}

.wf-search::placeholder {
  color: var(--wf-portal-muted);
  opacity: 0.85;
}

.wf-search:focus {
  outline: none;
  border-color: var(--wf-focus-ring);
  box-shadow: 0 0 0 3px var(--wf-focus-halo);
}

.wf-popover__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--wf-portal-muted);
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.wf-popover__close:hover {
  background: var(--wf-portal-hover);
  color: var(--wf-portal-text);
}

.wf-popover__close:focus-visible {
  outline: 3px solid var(--wf-focus-ring);
  outline-offset: -3px;
}

.wf-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  -webkit-overflow-scrolling: touch;
}

.wf-section-label {
  position: sticky;
  top: -6px;
  z-index: 1;
  margin: 0 -6px;
  padding: 7px 14px;
  background: var(--wf-portal-section-bg);
  color: var(--wf-portal-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.wf-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--wf-portal-text);
  font-family: var(--wf-font);
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.1s ease;
}

.wf-opt:hover,
.wf-opt.is-active {
  background: var(--wf-portal-hover);
}

.wf-opt[aria-selected="true"] {
  background: var(--wf-portal-active);
  font-weight: 700;
}

.wf-opt.is-active {
  outline: 2px solid var(--wf-focus-ring);
  outline-offset: -2px;
}

.wf-opt__iso {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--wf-iso-bg);
  color: var(--wf-iso-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

.wf-opt__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wf-opt__dial {
  flex: 0 0 auto;
  color: var(--wf-portal-muted);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wf-opt__check {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--wf-focus-ring);
  opacity: 0;
}

.wf-opt[aria-selected="true"] .wf-opt__check {
  opacity: 1;
}

.wf-empty {
  padding: 28px 16px;
  color: var(--wf-portal-muted);
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
}

/* Mobile bottom sheet (< 560px) */
@media (max-width: 559px) {
  .wf-portal__backdrop {
    background: var(--wf-scrim);
  }

  .wf-popover {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(82vh, 82dvh) !important;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    animation: wf-sheet-in 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .wf-popover__handle {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px;
    flex: 0 0 auto;
  }

  .wf-popover__handle span {
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: var(--wf-portal-border);
  }

  .wf-opt {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 16px;
  }
}

/* ── SOTA Post-Signup Confirmation Boarding Pass ─────────────────────────── */
.wf-ok,
.wf-confirm,
.wf-form .wf-ok,
.wf-form .wf-confirm,
[data-reg-form] [data-form-confirm] {
  display: block;
  margin: 0;
  padding: 20px;
  border: var(--wf-ok-border-width) solid var(--wf-ok-border);
  border-radius: var(--wf-ok-radius);
  background: var(--wf-ok-bg);
  color: var(--wf-ok-text);
  box-shadow: var(--wf-ok-shadow);
  font-family: var(--wf-font);
  text-align: left;
  animation: wf-fade-in 0.22s ease-out;
}

.wf-ok:focus,
.wf-confirm:focus {
  outline: none;
}

.wf-ok:focus-visible,
.wf-confirm:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--wf-focus-halo);
}

.b-card .wf-ok,
.b-card .wf-confirm {
  margin-top: 16px;
}

.wf-ok__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.wf-ok__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--wf-ok-badge-bg);
  color: var(--wf-ok-badge-fg);
}

.wf-ok__svg {
  width: 34px;
  height: 34px;
}

.wf-ok__circle {
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
  animation: wf-circle-draw 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.wf-ok__check {
  stroke-dasharray: 32;
  stroke-dashoffset: 0;
  animation: wf-check-draw 0.34s 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.wf-ok__head-txt {
  min-width: 0;
  flex: 1 1 auto;
}

.wf-ok__eyebrow {
  display: block;
  margin: 0 0 2px;
  color: var(--wf-ok-eyebrow);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

.wf-ok .wf-ok__title {
  display: block;
  margin: 0 !important;
  color: var(--wf-ok-text) !important;
  font-family: var(--wf-font-head);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

[data-wf-theme="ui-b"] .wf-ok .wf-ok__title {
  font-weight: 400;
  font-size: 27px;
  letter-spacing: 0.01em;
}

[data-wf-theme="ui-a"] .wf-ok .wf-ok__title,
[data-wf-theme="ui-d"] .wf-ok .wf-ok__title {
  font-weight: 400;
  font-size: 27px;
}

.wf-ok .wf-ok__body {
  margin: 0 0 16px !important;
  color: var(--wf-ok-muted) !important;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.wf-ok__body strong {
  color: var(--wf-ok-text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Boarding pass summary card */
.wf-pass {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px 15px;
  border: 1px solid var(--wf-pass-border);
  border-radius: var(--wf-pass-radius);
  background: var(--wf-pass-bg);
}

.wf-pass__row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: 14.5px;
  line-height: 1.4;
}

.wf-pass__row + .wf-pass__row {
  padding-top: 9px;
  border-top: 1px solid var(--wf-pass-border);
}

.wf-pass__label {
  color: var(--wf-ok-muted);
  font-size: 13.5px;
  font-weight: 600;
}

.wf-pass__val {
  min-width: 0;
  color: var(--wf-ok-text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.wf-pass__main {
  display: block;
}

.wf-pass__pill {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--wf-pill-bg);
  color: var(--wf-pill-text);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

/* Calendar actions */
.wf-ok .wf-ok__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  margin: 0 0 16px;
}

@media (min-width: 440px) {
  .wf-ok .wf-ok__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wf-ok .wf-cal-btn,
.wf-ok .wf-cal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--wf-cal-radius);
  font-family: var(--wf-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.14s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.wf-ok .wf-cal-btn {
  border: 1.5px solid var(--wf-cal-border);
  background: var(--wf-cal-bg);
  color: var(--wf-cal-fg) !important;
  box-shadow: var(--wf-cal-shadow);
}

.wf-ok .wf-cal-btn:hover {
  background: var(--wf-cal-hover);
  transform: translateY(-1px);
}

.wf-ok .wf-cal-link {
  border: 1.5px solid var(--wf-cal-sec-border);
  background: var(--wf-cal-sec-bg);
  color: var(--wf-cal-sec-fg) !important;
}

.wf-ok .wf-cal-link:hover {
  background: var(--wf-cal-sec-hover);
  transform: translateY(-1px);
}

.wf-cal-btn:focus-visible,
.wf-cal-link:focus-visible,
.wf-reset-link:focus-visible {
  outline: 3px solid var(--wf-focus-ring);
  outline-offset: 2px;
}

.wf-cal-icon {
  flex: none;
  width: 16px;
  height: 16px;
}

/* 3-step arrival checklist */
.wf-steps {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.wf-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--wf-ok-muted);
  font-size: 14px;
  line-height: 1.45;
}

.wf-steps__num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--wf-step-num-bg);
  color: var(--wf-step-num-fg);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

/* Footer reset action */
.wf-ok__foot {
  display: flex;
  justify-content: flex-start;
  padding-top: 8px;
  border-top: 1px solid var(--wf-pass-border);
}

.wf-reset-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--wf-reset-fg);
  font-family: var(--wf-font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.wf-reset-link:hover {
  color: var(--wf-ok-text);
}

/* ── Animations & Reduced Motion ─────────────────────────────────────────── */
@keyframes wf-spin {
  to { transform: rotate(360deg); }
}

@keyframes wf-circle-draw {
  from { stroke-dashoffset: 120; }
  to { stroke-dashoffset: 0; }
}

@keyframes wf-check-draw {
  from { stroke-dashoffset: 32; }
  to { stroke-dashoffset: 0; }
}

@keyframes wf-fade-in {
  from { opacity: 0.92; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wf-sheet-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .wf-input,
  .wf-phone,
  .wf-country-btn,
  .wf-chev,
  .wf-country-chev,
  .wf-opt,
  .wf-cal-btn,
  .wf-cal-link,
  .wf-popover,
  .wf-ok,
  .wf-confirm,
  .wf-ok__circle,
  .wf-ok__check,
  .wf-submit.is-loading .wf-spinner,
  .wf-submit.is-loading::before {
    animation: none !important;
    transition: none !important;
  }

  .wf-ok__circle,
  .wf-ok__check {
    stroke-dashoffset: 0;
  }
}
