/* ==========================================================================
   P3 — Website Embedded & Hosted Enquiry Form — prototype.css
   IMMICRM · 09 Enquiry · Prototype version 2.0 (17 Oct 2026)
   Rules: pub-* namespace only · explicit hex colours · no CSS custom
          properties or root-scope tokens · the [hidden] utility below is the
          only rule that uses the important flag
   Tenant themes: Career Plus Immigration (#1E3A5F / #C9A84C) is the default
   palette. Northern Pathways (#2D5016 / #8BC34A) is applied through the
   .pub-theme--northern body class (section 20).
   ========================================================================== */


/* ── 1. BASE ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  background: #F1F5F9;
  color: #1E293B;
  -webkit-font-smoothing: antialiased;
}

[hidden]{display:none!important}


/* ── 2. DEMO CONTROLS BAR (prototype only) ─────────────────────────────────── */
.pub-demo-bar {
  position: sticky; top: 0;
  background: #EA580C; color: #FFFFFF;
  padding: 8px 16px;
  display: flex; align-items: center; gap: 10px 12px;
  z-index: 9999; font-size: 12px; flex-wrap: wrap; min-height: 48px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.18);
}
.pub-demo-bar__label {
  font-weight: 700; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.07em; white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.3); padding-right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.pub-demo-bar__group { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.pub-demo-bar__group label { font-size: 11px; opacity: 0.9; white-space: nowrap; }
.pub-demo-bar select {
  font-family: inherit; font-size: 12px; padding: 4px 8px; max-width: 290px;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 5px;
  background: rgba(255,255,255,0.15); color: #FFFFFF; cursor: pointer;
}
.pub-demo-bar select option { background: #C2410C; color: #FFFFFF; }
.pub-demo-bar__btn {
  font-family: inherit; font-size: 12px; padding: 5px 12px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.15);
  color: #FFFFFF; cursor: pointer; font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.pub-demo-bar__btn:hover { background: rgba(255,255,255,0.28); }
.pub-demo-bar__btn--active { background: rgba(255,255,255,0.35); border-color: #FFFFFF; }
.pub-demo-bar__btn--icon { padding: 5px 8px; font-size: 14px; }
.pub-demo-bar__sep { border-left: 1px solid rgba(255,255,255,0.3); height: 20px; }
.pub-demo-bar__check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer;
  padding: 4px 10px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.12);
}
.pub-demo-bar__check:hover { background: rgba(255,255,255,0.24); }
.pub-demo-bar__check input { margin: 0; width: 14px; height: 14px; accent-color: #FFFFFF; cursor: pointer; }
.pub-demo-bar select:focus-visible,
.pub-demo-bar__btn:focus-visible,
.pub-demo-bar__check input:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }


/* ── 3. LAYOUT WRAPPERS ────────────────────────────────────────────────────── */
.pub-wrapper { min-height: calc(100vh - 48px); }
.pub-form-slot { min-width: 0; }

/* Dim Chrome: darkens the host page; the active form surface is raised above it */
.pub-dim-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.72); z-index: 5; pointer-events: none;
}
.pub-is-dimmed .pub-form-card {
  z-index: 6;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.35), 0 16px 40px rgba(0,0,0,0.35);
}
.pub-is-dimmed .pub-mobile-sheet { z-index: 6; }


/* ── 4. FAUX BROWSER BAR ───────────────────────────────────────────────────── */
.pub-browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; background: #E2E8F0; border-bottom: 1px solid #CBD5E1;
}
.pub-browser-bar__dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.pub-browser-bar__dot { width: 10px; height: 10px; border-radius: 50%; background: #94A3B8; }
.pub-browser-bar__url {
  flex: 1; max-width: 560px; min-width: 0;
  display: flex; align-items: center; gap: 6px;
  background: #FFFFFF; border: 1px solid #CBD5E1; border-radius: 6px;
  padding: 4px 10px; font-size: 12px; color: #475569;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pub-browser-bar__url i { color: #16A34A; flex-shrink: 0; }
.pub-browser-bar__tag {
  font-size: 11px; font-weight: 600; color: #475569; white-space: nowrap;
  background: #F8FAFC; border: 1px solid #CBD5E1; border-radius: 99px; padding: 2px 10px;
}


/* ── 5. EMBEDDED MODE — TENANT WEBSITE CHROME ──────────────────────────────── */
.pub-embedded { background: #F8FAFC; }

.pub-site-nav {
  background: #1E3A5F; color: #FFFFFF;
  padding: 14px 40px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.pub-site-nav__logo { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.pub-site-nav__logo-icon {
  width: 32px; height: 32px; background: #C9A84C; color: #1E3A5F; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; letter-spacing: 0.02em; flex-shrink: 0;
}
.pub-site-nav__links { display: flex; gap: 28px; font-size: 14px; list-style: none; margin: 0; padding: 0; }
.pub-site-nav__link { color: #CBD5E1; cursor: default; padding-bottom: 3px; border-bottom: 2px solid #1E3A5F; }
.pub-site-nav__link--active { color: #FFFFFF; font-weight: 600; border-bottom-color: #C9A84C; }
.pub-site-nav__phone { font-size: 14px; color: #E9D9A6; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }

.pub-site-hero {
  background: #F3F6FA; padding: 40px 40px 32px; text-align: center;
  border-bottom: 1px solid #D9E2EC;
}
.pub-site-hero__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #8A6D1F; margin: 0 0 8px;
}
.pub-site-hero h1 { font-size: 30px; font-weight: 800; color: #1E3A5F; margin: 0 0 8px; }
.pub-site-hero__tagline { font-size: 16px; color: #475569; margin: 0; }

.pub-site-content {
  display: grid; grid-template-columns: minmax(0, 1fr) 560px;
  gap: 40px; padding: 40px; max-width: 1200px; margin: 0 auto; align-items: start;
}
.pub-site-info h2 { font-size: 20px; font-weight: 700; color: #1E3A5F; margin: 0 0 12px; }
.pub-site-info h3 {
  font-size: 12px; font-weight: 700; color: #1E3A5F; margin: 28px 0 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.pub-site-info p { font-size: 14px; color: #475569; line-height: 1.75; margin: 0 0 12px; }
.pub-site-steps { margin: 0; padding-left: 20px; font-size: 14px; color: #475569; line-height: 1.85; }
.pub-site-info .pub-trust-items { margin-top: 24px; padding-top: 20px; border-top: 1px solid #E2E8F0; }
.pub-site-contact { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: #374151; }
.pub-site-contact__row { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.pub-site-contact__row i { color: #1E3A5F; font-size: 16px; flex-shrink: 0; }

.pub-site-footer {
  background: #1E293B; color: #94A3B8;
  padding: 18px 40px; font-size: 13px; text-align: center;
}
.pub-site-footer a { color: #CBD5E1; }
.pub-site-footer__sep { margin: 0 6px; }


/* ── 6. HOSTED MODE — STANDALONE BRANDED PAGE ──────────────────────────────── */
.pub-hosted-wrap { min-height: calc(100vh - 96px); background: #F8FAFC; display: flex; flex-direction: column; }
.pub-hosted-brand {
  background: #FFFFFF; border-top: 4px solid #C9A84C; border-bottom: 1px solid #E2E8F0;
  padding: 14px 32px; display: flex; align-items: center; gap: 16px;
}
.pub-hosted-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pub-hosted-logo__mark {
  width: 38px; height: 38px; border-radius: 8px; background: #1E3A5F; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}
.pub-hosted-logo__text { font-size: 16px; font-weight: 800; color: #1E3A5F; white-space: nowrap; }
.pub-hosted-firm-wrap {
  display: flex; flex-direction: column; min-width: 0;
  border-left: 1px solid #E2E8F0; padding-left: 16px;
}
.pub-hosted-firm { font-size: 14px; font-weight: 600; color: #1E293B; margin: 0; }
.pub-hosted-tagline { font-size: 12px; color: #64748B; }
.pub-hosted-help {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #1E3A5F; text-decoration: none; white-space: nowrap;
}
.pub-hosted-help:hover { text-decoration: underline; }
.pub-hosted-body { flex: 1; padding: 32px 24px 40px; }
.pub-hosted-body .pub-form-card { max-width: 720px; }
.pub-hosted-footer {
  text-align: center; padding: 16px; font-size: 12px; color: #64748B;
  border-top: 1px solid #E2E8F0; background: #FFFFFF;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.pub-hosted-footer a { color: #475569; }
.pub-hosted-footer__powered { color: #94A3B8; }


/* ── 7. MOBILE MODE — 390px DEVICE + BOTTOM SHEET ──────────────────────────── */
.pub-mobile-stage { padding: 24px 16px 40px; display: flex; justify-content: center; }
.pub-mobile-device {
  position: relative; width: 410px; height: 780px;
  max-height: calc(100vh - 110px); min-height: 600px;
  background: #FFFFFF; border: 10px solid #0F172A; border-radius: 40px;
  overflow: hidden; box-shadow: 0 20px 50px rgba(15,23,42,0.30);
  display: flex; flex-direction: column;
}
.pub-mobile-status {
  height: 34px; padding: 0 22px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: #0F172A; background: #FFFFFF;
}
.pub-mobile-status__icons { display: inline-flex; gap: 6px; font-size: 14px; }
.pub-mobile-site { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.pub-mobile-site__header {
  background: #1E3A5F; color: #FFFFFF; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
.pub-mobile-site__logo-mark {
  width: 28px; height: 28px; border-radius: 6px; background: #C9A84C; color: #1E3A5F;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
}
.pub-mobile-site__name { flex: 1; font-size: 14px; font-weight: 700; }
.pub-mobile-site__menu { font-size: 20px; }
.pub-mobile-site__hero { padding: 28px 20px 24px; background: #F3F6FA; text-align: center; }
.pub-mobile-site__hero h2 { font-size: 20px; font-weight: 800; color: #1E3A5F; margin: 0 0 6px; }
.pub-mobile-site__hero p { font-size: 13px; color: #475569; margin: 0 0 16px; }
.pub-mobile-skeleton { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.pub-mobile-skeleton__line { display: block; height: 10px; border-radius: 5px; background: #E2E8F0; }
.pub-mobile-skeleton__line--mid { width: 82%; }
.pub-mobile-skeleton__line--short { width: 58%; }
.pub-mobile-skeleton__block { display: block; height: 96px; border-radius: 10px; background: #F1F5F9; margin: 6px 0; }

/* The scrim starts below the device status bar (browser chrome is never dimmed by page content) */
.pub-mobile-scrim { position: absolute; inset: 34px 0 0 0; background: rgba(15,23,42,0.45); z-index: 2; }
.pub-mobile-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; height: 88%; z-index: 3;
  background: #FFFFFF; border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 24px rgba(15,23,42,0.18);
  display: flex; flex-direction: column;
  animation: pub-sheet-up 0.28s ease-out;
}
.pub-mobile-sheet__handle {
  width: 40px; height: 5px; border-radius: 3px; background: #CBD5E1;
  margin: 8px auto 4px; flex-shrink: 0;
}
.pub-mobile-sheet__header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 4px 16px 10px; border-bottom: 1px solid #E2E8F0; flex-shrink: 0;
}
.pub-mobile-sheet__title {
  font-size: 14px; font-weight: 700; color: #1E293B;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pub-mobile-sheet__close {
  width: 32px; height: 32px; border-radius: 50%; border: none; flex-shrink: 0;
  background: #F1F5F9; color: #475569; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pub-mobile-sheet__close:hover { background: #E2E8F0; }
.pub-mobile-sheet__close:focus-visible { outline: 2px solid #1E3A5F; outline-offset: 2px; }
.pub-mobile-sheet__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
@keyframes pub-sheet-up {
  from { transform: translateY(48px); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}


/* ── 8. FORM CARD, HEADER, VERSION NOTICE ──────────────────────────────────── */
.pub-form-card {
  position: relative;
  background: #FFFFFF; border-radius: 12px; border: 1px solid #E2E8F0;
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
  padding: 0; max-width: 640px; margin: 0 auto; font-size: 14px;
}
.pub-form-card button,
.pub-form-card input,
.pub-form-card select,
.pub-form-card textarea { font-family: inherit; }
.pub-mobile-sheet .pub-form-card { border: none; border-radius: 0; box-shadow: none; max-width: none; }

.pub-form-header{padding:24px 24px 0}
.pub-form-category-label{display:inline-block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;color:#64748B;margin-bottom:8px}
.pub-form-title{font-size:20px;font-weight:700;color:#1E293B;margin:0 0 6px}
.pub-form-subtitle{font-size:13px;color:#64748B;margin:0 0 12px}
.pub-back-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#1E3A5F;cursor:pointer;background:none;border:none;padding:0;margin-bottom:12px;text-decoration:none}
.pub-back-link { font-weight: 600; font-family: inherit; }
.pub-back-link:hover { text-decoration: underline; }
.pub-back-link:focus-visible { outline: 2px solid #1E3A5F; outline-offset: 2px; border-radius: 2px; }
.pub-form-title:focus,
.pub-cat-title:focus,
.pub-state h2:focus { outline: none; }

.pub-version-notice{background:#FFFBEB;border:1px solid #FDE68A;border-radius:4px;padding:8px 12px;font-size:12px;color:#92400E;margin:12px 24px 0}
.pub-version-notice { display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; margin-bottom: 16px; }
.pub-version-notice i { font-size: 15px; color: #D97706; flex-shrink: 0; }


/* ── 9. ERROR SUMMARY ──────────────────────────────────────────────────────── */
#pubFormErrors{background:#FEF2F2;border:1.5px solid #FECACA;border-radius:6px;padding:12px 16px;margin:0 24px 16px}
#pubFormErrors p{font-size:13px;color:#DC2626;margin:0 0 4px}
#pubFormErrors p:last-child{margin:0}
#pubFormErrors .pub-form-errors__title { font-weight: 700; color: #991B1B; margin-bottom: 8px; }
#pubFormErrors:focus { outline: 2px solid #DC2626; outline-offset: 2px; }
.pub-form-errors__link {
  background: none; border: none; padding: 0; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 13px; color: #B91C1C; text-decoration: underline;
}
.pub-form-errors__link:hover { color: #7F1D1D; }
.pub-form-errors__link:focus-visible { outline: 2px solid #B91C1C; outline-offset: 2px; }


/* ── 10. RETURNING CLIENT (OTP) ────────────────────────────────────────────── */
.pub-returning-trigger{padding:0 24px 16px;font-size:13px;color:#64748B}
.pub-returning-trigger__icon { color: #1E3A5F; margin-right: 2px; }
.pub-returning-verified { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #15803D; }
.pub-returning-panel{background:#F0F7FF;border:1.5px solid #BFDBFE;border-radius:8px;padding:20px;margin:0 24px 20px}
.pub-returning-header h4{font-size:14px;font-weight:700;color:#1E3A5F;margin:0 0 4px}
.pub-returning-header p{font-size:12px;color:#64748B;margin:0 0 16px}
.pub-returning-panel .pub-field { margin-bottom: 14px; }
.pub-returning-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.pub-otp-sent { font-size: 12px; color: #475569; margin: 0 0 12px; line-height: 1.5; }
.pub-field input.pub-otp-input { max-width: 200px; font-size: 18px; font-weight: 600; letter-spacing: 0.35em; }
.pub-otp-error { margin-top: 12px; }
.pub-demo-note {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px;
  font-size: 11px; font-weight: 600; color: #9A3412;
  background: #FFF7ED; border: 1px dashed #FDBA74; border-radius: 4px; padding: 3px 8px;
}


/* ── 11. SCHEMA FORM, SECTIONS, FIELDS ─────────────────────────────────────── */
.pub-schema-form{padding:0 24px}

/* Collapsible section: .pub-section-header toggles .pub-section-body (element.hidden) */
.pub-section { border: 1px solid #E2E8F0; border-radius: 10px; margin-bottom: 14px; overflow: hidden; background: #FFFFFF; }
.pub-section-header {
  width: 100%; padding: 13px 16px; background: #F8FAFC; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  user-select: none; border: none; text-align: left; font-family: inherit; color: #1E293B;
}
.pub-section-header:hover { background: #F1F5F9; }
.pub-section-header--active { background: #F3F6FA; box-shadow: inset 0 -1px 0 #E2E8F0; }
.pub-section-header:focus-visible { outline: 2px solid #1E3A5F; outline-offset: -2px; }
.pub-section-title { font-size: 14px; font-weight: 600; color: #1E293B; display: flex; align-items: center; gap: 8px; }
.pub-section-title i { color: #1E3A5F; font-size: 16px; }
.pub-section-badge {
  font-size: 11px; background: #E2E8F0; color: #475569;
  border-radius: 99px; padding: 1px 8px; font-weight: 500;
}
.pub-section-toggle { color: #64748B; font-size: 18px; transition: transform 0.2s; flex-shrink: 0; }
.pub-section-toggle--open { transform: rotate(180deg); }
.pub-section-body { padding: 18px 16px 2px; }

.pub-field{margin-bottom:18px}
.pub-field label{display:block;font-size:13px;font-weight:600;color:#374151;margin-bottom:6px}
.pub-field input,.pub-field select,.pub-field textarea{width:100%;box-sizing:border-box;border:1.5px solid #CBD5E1;border-radius:6px;padding:9px 12px;font-size:14px;color:#1E293B;background:#FFFFFF}
.pub-field input:focus,.pub-field select:focus,.pub-field textarea:focus{outline:none;border-color:#1E3A5F;box-shadow:0 0 0 3px rgba(30,58,95,0.10)}
.pub-field__hint{font-size:11px;color:#64748B;margin:4px 0 0}
.pub-field__error{font-size:11px;color:#DC2626;margin:4px 0 0}
.pub-field--radio fieldset{border:none;padding:0;margin:0}
.pub-field--radio legend{font-size:13px;font-weight:600;color:#374151;margin-bottom:8px;display:block}
.pub-field--radio .pub-radio-option{display:flex;align-items:center;gap:8px;font-size:13px;color:#374151;margin-bottom:6px;cursor:pointer}
.pub-field--radio input[type=radio]{width:auto;margin:0}

.pub-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.pub-field input::placeholder,
.pub-field textarea::placeholder { color: #94A3B8; }
.pub-field--radio legend { padding: 0; }
.pub-field--radio .pub-radio-option { font-weight: 400; line-height: 1.4; }
.pub-field--radio .pub-radio-option:last-child { margin-bottom: 0; }
.pub-field--radio input[type=radio],
.pub-field--checkbox input[type=checkbox] {
  width: 16px; height: 16px; padding: 0; margin: 0; flex-shrink: 0;
  border: none; box-shadow: none; accent-color: #1E3A5F; cursor: pointer;
}
.pub-field--checkbox .pub-radio-option { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.pub-field__error { display: flex; align-items: center; gap: 4px; font-weight: 500; }
.pub-field--invalid input,
.pub-field--invalid select,
.pub-field--invalid textarea { border-color: #DC2626; background: #FFFBFB; }
.pub-field--invalid legend { color: #B91C1C; }
.pub-field--prefilled input,
.pub-field--prefilled select { background: #F5F9FF; border-color: #BFDBFE; }
.pub-field-heading {
  font-size: 12px; font-weight: 700; color: #1E3A5F; margin: 4px 0 0;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pub-field-divider { border: none; border-top: 1px solid #E2E8F0; margin: 4px 0; }


/* ── 12. CONSENT / PRIVACY ─────────────────────────────────────────────────── */
.pub-consent-section{padding:16px 24px;display:flex;flex-direction:column;gap:10px}
.pub-consent-row{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:#374151;cursor:pointer}
.pub-consent-row input[type=checkbox]{width:auto;margin-top:2px}
.pub-required{color:#DC2626}

.pub-consent-section { padding-top: 4px; }
.pub-consent-row {
  line-height: 1.55; padding: 10px 12px;
  border: 1px solid #E2E8F0; border-radius: 8px; background: #F8FAFC;
}
.pub-consent-row input[type=checkbox] {
  width: 16px; height: 16px; flex-shrink: 0; accent-color: #1E3A5F; cursor: pointer;
}
.pub-consent-row--invalid { border-color: #FCA5A5; background: #FEF2F2; }
.pub-privacy-link { color: #1E3A5F; font-weight: 600; text-decoration: underline; }
.pub-optional { color: #94A3B8; font-size: 12px; }
.pub-section--notice { margin-bottom: 2px; }
.pub-section--notice .pub-section-header { padding: 10px 14px; }
.pub-section--notice .pub-section-title { font-size: 13px; }
.pub-section--notice .pub-section-body { padding: 12px 14px 4px; }
.pub-notice-text { font-size: 12px; color: #475569; line-height: 1.6; margin: 0 0 8px; }


/* ── 13. CAPTCHA (simulated) ───────────────────────────────────────────────── */
.pub-captcha-block{padding:0 24px 16px}
.pub-captcha-box {
  max-width: 340px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid #D1D5DB; border-radius: 4px; background: #F9FAFB;
  box-shadow: 0 1px 2px rgba(15,23,42,0.06);
}
.pub-captcha-box--invalid { border-color: #FCA5A5; background: #FEF2F2; }
.pub-captcha-left { display: flex; align-items: center; gap: 12px; }
.pub-captcha-check {
  width: 26px; height: 26px; padding: 0; flex-shrink: 0; cursor: pointer;
  border: 2px solid #9CA3AF; border-radius: 3px; background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.pub-captcha-check:hover { border-color: #6B7280; }
.pub-captcha-check:focus-visible { outline: 2px solid #1E3A5F; outline-offset: 2px; }
.pub-captcha-check--busy { border-color: #F9FAFB; background: #F9FAFB; cursor: progress; }
.pub-captcha-check--done { border-color: #F9FAFB; background: #F9FAFB; cursor: default; }
.pub-captcha-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid #DBEAFE; border-top-color: #2563EB;
  animation: pub-spin 0.8s linear infinite;
}
.pub-captcha-tick { font-size: 26px; line-height: 1; color: #16A34A; }
.pub-captcha-labels { display: flex; flex-direction: column; gap: 2px; }
.pub-captcha-text { font-size: 13px; color: #374151; font-weight: 500; }
.pub-captcha-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #15803D; }
.pub-captcha-right {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 9px; color: #94A3B8; text-align: center; line-height: 1.3;
}
.pub-captcha-logo {
  width: 30px; height: 30px; border-radius: 50%; background: #4285F4; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}


/* ── 14. FORM ACTIONS & BUTTONS ────────────────────────────────────────────── */
.pub-form-actions{padding:0 24px 24px}
.pub-form-legal{font-size:11px;color:#94A3B8;margin:10px 0 0;text-align:center}
.pub-form-legal a{color:#64748B}
.pub-form-legal { line-height: 1.5; }
.pub-form-meta { display: block; margin-top: 4px; }

.pub-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 20px;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;border:none;transition:opacity 0.15s}
.pub-btn--primary{background:#1E3A5F;color:#FFFFFF}
.pub-btn--primary:hover{opacity:0.88}
.pub-btn--secondary{background:#E2E8F0;color:#1E293B}
.pub-btn--secondary:hover{background:#CBD5E1}
.pub-btn--outline{background:transparent;border:1.5px solid #1E3A5F;color:#1E3A5F}
.pub-btn--outline:hover{background:#F0F4F9}
.pub-btn--full{width:100%;box-sizing:border-box}

.pub-btn { gap: 8px; font-family: inherit; text-decoration: none; line-height: 1.2; }
.pub-btn--lg { padding: 13px 20px; font-size: 15px; }
.pub-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.pub-btn:focus-visible { outline: 2px solid #1E3A5F; outline-offset: 2px; }

.pub-link-btn{background:none;border:none;color:#1E3A5F;text-decoration:underline;cursor:pointer;font-size:13px;padding:0}
.pub-link-btn { font-family: inherit; font-weight: 600; }
.pub-link-btn:hover { color: #0F2440; }
.pub-link-btn:focus-visible { outline: 2px solid #1E3A5F; outline-offset: 2px; border-radius: 2px; }


/* ── 15. STATE VIEWS ───────────────────────────────────────────────────────── */
.pub-state-loading{padding:48px 24px;text-align:center}
.pub-spinner{width:36px;height:36px;border:3px solid #E2E8F0;border-top-color:#1E3A5F;border-radius:50%;margin:0 auto 16px;animation:pub-spin 0.8s linear infinite}
@keyframes pub-spin{to{transform:rotate(360deg)}}
.pub-loading-text { font-size: 14px; color: #64748B; margin: 0; }

.pub-state{padding:40px 24px;text-align:center}
:where(.pub-state) h2 { font-size: 20px; font-weight: 700; color: #1E293B; margin: 0 0 12px; }
:where(.pub-state) p { font-size: 14px; color: #475569; line-height: 1.65; margin: 0 auto 12px; max-width: 440px; }

.pub-success-icon{font-size:56px;color:#16A34A;margin-bottom:16px}
.pub-success-title{font-size:24px;font-weight:700;color:#15803D;margin:0 0 8px}
.pub-success-subtitle{font-size:15px;color:#64748B;margin:0 0 16px}
.pub-success-ref{background:#F0FDF4;border:1px solid #BBF7D0;border-radius:6px;padding:12px 16px;display:inline-block;font-size:14px;color:#166534;margin-bottom:20px}
.pub-success-detail{font-size:13px;color:#475569;margin-bottom:24px}
.pub-success-detail p{margin:0 0 8px}
.pub-success-icon,
.pub-error-icon,
.pub-dup-icon,
.pub-expired-icon { line-height: 1; }

.pub-state--info .pub-dup-icon{font-size:48px;color:#2563EB;margin-bottom:16px}
.pub-state--info h2{font-size:20px;font-weight:700;color:#1E40AF;margin:0 0 12px}
.pub-state--info p{font-size:13px;color:#475569;margin:0 0 12px}
.pub-dup-actions{margin-top:20px}
.pub-state--error .pub-error-icon{font-size:48px;color:#DC2626;margin-bottom:16px}
.pub-state--error h2{color:#991B1B}
.pub-state--expired .pub-expired-icon{font-size:48px;color:#92400E;margin-bottom:16px}
.pub-state--expired h2{color:#92400E}

.pub-state--info p { margin-left: auto; margin-right: auto; max-width: 440px; line-height: 1.65; }
.pub-dup-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pub-state-actions { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

.pub-contact-card {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px;
  margin: 8px auto 4px; padding: 12px 18px; text-align: left;
  background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px;
}
.pub-contact-card__item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #1E3A5F; text-decoration: none;
}
.pub-contact-card__item:hover { text-decoration: underline; }
.pub-contact-card__item:focus-visible { outline: 2px solid #1E3A5F; outline-offset: 2px; }


/* ── 16. CATEGORY SELECTION ────────────────────────────────────────────────── */
.pub-cat-header{padding:24px 24px 16px;text-align:center}
.pub-cat-title{font-size:22px;font-weight:700;color:#1E3A5F;margin:0 0 8px}
.pub-cat-subtitle{font-size:14px;color:#64748B;margin:0}
.pub-cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;padding:0 24px 16px}
.pub-cat-card{border:1.5px solid #E2E8F0;border-radius:10px;padding:20px 16px;cursor:pointer;background:#FFFFFF;transition:border-color 0.15s}
.pub-cat-card:hover{border-color:#1E3A5F;box-shadow:0 2px 8px rgba(0,0,0,0.10)}
.pub-cat-icon{font-size:28px;color:#1E3A5F;display:block;margin-bottom:12px}
.pub-cat-card h3{font-size:14px;font-weight:700;color:#1E3265;margin:0 0 6px}
.pub-cat-card p{font-size:12px;color:#64748B;margin:0;line-height:1.5}
.pub-cat-footer{padding:16px 24px 24px;text-align:center}
.pub-cat-returning{font-size:13px;color:#64748B;margin:0}

.pub-cat-card { display: flex; flex-direction: column; transition: border-color 0.15s, box-shadow 0.15s; }
.pub-cat-card p { flex: 1; }
.pub-cat-card:focus-visible { outline: 2px solid #1E3A5F; outline-offset: 2px; border-color: #1E3A5F; }
.pub-cat-icon { line-height: 1; }
.pub-cat-card__cta {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 14px;
  font-size: 12px; font-weight: 600; color: #1E3A5F;
}
.pub-cat-card__cta i { transition: transform 0.15s; }
.pub-cat-card:hover .pub-cat-card__cta i { transform: translateX(3px); }
.pub-cat-note {
  display: inline-flex; align-items: center; gap: 8px; text-align: left;
  font-size: 13px; color: #1E40AF; background: #EFF6FF;
  border: 1px solid #BFDBFE; border-radius: 6px; padding: 8px 12px;
}
.pub-cat-verified { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #15803D; }


/* ── 17. TRUST SIGNALS ─────────────────────────────────────────────────────── */
.pub-trust-items{display:flex;flex-direction:column;gap:12px}
.pub-trust-item{display:flex;align-items:center;gap:10px;font-size:13px;color:#374151}
.pub-trust-item i{font-size:18px;color:#1E3A5F}


/* ── 18. TOAST & SCREEN-READER UTILITY ─────────────────────────────────────── */
.pub-toast {
  position: fixed; bottom: 24px; right: 24px; background: #FFFFFF;
  border: 1px solid #E2E8F0; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 14px 12px 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 380px; z-index: 99999;
}
.pub-toast--success { border-left: 4px solid #15803D; }
.pub-toast--error   { border-left: 4px solid #DC2626; }
.pub-toast--warning { border-left: 4px solid #D97706; }
.pub-toast--info    { border-left: 4px solid #1D4ED8; }
.pub-toast__icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.pub-toast--success .pub-toast__icon { color: #15803D; }
.pub-toast--error   .pub-toast__icon { color: #DC2626; }
.pub-toast--warning .pub-toast__icon { color: #D97706; }
.pub-toast--info    .pub-toast__icon { color: #1D4ED8; }
.pub-toast__body { flex: 1; min-width: 0; }
.pub-toast__title { font-size: 13px; font-weight: 600; color: #1E293B; margin-bottom: 2px; }
.pub-toast__msg { font-size: 13px; color: #334155; line-height: 1.45; }
.pub-toast__close {
  background: none; border: none; color: #94A3B8; cursor: pointer;
  font-size: 16px; padding: 0 2px; line-height: 1; flex-shrink: 0;
}
.pub-toast__close:hover { color: #475569; }
.pub-toast__close:focus-visible { outline: 2px solid #1D4ED8; outline-offset: 2px; }

.pub-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;
}


/* ── 19. MOBILE BOTTOM SHEET — COMPACT FORM SPACING ────────────────────────── */
.pub-mobile-sheet .pub-form-header { padding: 16px 16px 0; }
.pub-mobile-sheet .pub-version-notice { margin: 10px 16px 14px; }
.pub-mobile-sheet #pubFormErrors { margin: 0 16px 14px; }
.pub-mobile-sheet .pub-returning-trigger { padding: 0 16px 14px; }
.pub-mobile-sheet .pub-returning-panel { margin: 0 16px 16px; padding: 16px; }
.pub-mobile-sheet .pub-schema-form { padding: 0 16px; }
.pub-mobile-sheet .pub-section-body { padding: 16px 12px 2px; }
.pub-mobile-sheet .pub-consent-section { padding: 4px 16px 14px; }
.pub-mobile-sheet .pub-captcha-block { padding: 0 16px 14px; }
.pub-mobile-sheet .pub-form-actions { padding: 0 16px 20px; }
.pub-mobile-sheet .pub-state { padding: 32px 16px; }
.pub-mobile-sheet .pub-cat-header { padding: 18px 16px 12px; }
.pub-mobile-sheet .pub-cat-title { font-size: 18px; }
.pub-mobile-sheet .pub-cat-grid { grid-template-columns: 1fr; gap: 10px; padding: 0 16px 12px; }
.pub-mobile-sheet .pub-cat-card {
  display: grid; grid-template-columns: 36px 1fr; column-gap: 12px;
  align-items: start; padding: 14px;
}
.pub-mobile-sheet .pub-cat-icon { grid-row: 1 / span 2; font-size: 24px; margin: 2px 0 0; }
.pub-mobile-sheet .pub-cat-card__cta { display: none; }
.pub-mobile-sheet .pub-cat-footer { padding: 12px 16px 20px; }


/* ── 20. TENANT THEME — NORTHERN PATHWAYS (#2D5016 / #8BC34A) ──────────────── */
.pub-theme--northern .pub-site-nav { background: #2D5016; }
.pub-theme--northern .pub-site-nav__link { border-bottom-color: #2D5016; }
.pub-theme--northern .pub-site-nav__link--active { border-bottom-color: #8BC34A; }
.pub-theme--northern .pub-site-nav__logo-icon,
.pub-theme--northern .pub-mobile-site__logo-mark { background: #8BC34A; color: #1F3A0E; }
.pub-theme--northern .pub-site-nav__phone { color: #DCEDC8; }
.pub-theme--northern .pub-site-hero,
.pub-theme--northern .pub-mobile-site__hero { background: #F4F8EF; border-bottom-color: #D7E6C6; }
.pub-theme--northern .pub-site-hero__eyebrow { color: #4F7A28; }
.pub-theme--northern .pub-hosted-brand { border-top-color: #8BC34A; }
.pub-theme--northern .pub-btn--primary,
.pub-theme--northern .pub-hosted-logo__mark,
.pub-theme--northern .pub-mobile-site__header { background: #2D5016; }
.pub-theme--northern .pub-site-hero h1,
.pub-theme--northern .pub-site-info h2,
.pub-theme--northern .pub-site-info h3,
.pub-theme--northern .pub-site-contact__row i,
.pub-theme--northern .pub-trust-item i,
.pub-theme--northern .pub-hosted-logo__text,
.pub-theme--northern .pub-hosted-help,
.pub-theme--northern .pub-mobile-site__hero h2,
.pub-theme--northern .pub-cat-title,
.pub-theme--northern .pub-cat-icon,
.pub-theme--northern .pub-cat-card h3,
.pub-theme--northern .pub-cat-card__cta,
.pub-theme--northern .pub-back-link,
.pub-theme--northern .pub-link-btn,
.pub-theme--northern .pub-privacy-link,
.pub-theme--northern .pub-returning-trigger__icon,
.pub-theme--northern .pub-returning-header h4,
.pub-theme--northern .pub-section-title i,
.pub-theme--northern .pub-field-heading,
.pub-theme--northern .pub-contact-card__item { color: #2D5016; }
.pub-theme--northern .pub-link-btn:hover { color: #1F3A0E; }
.pub-theme--northern .pub-btn--outline { border-color: #2D5016; color: #2D5016; }
.pub-theme--northern .pub-btn--outline:hover { background: #F1F7EC; }
.pub-theme--northern .pub-cat-card:hover,
.pub-theme--northern .pub-cat-card:focus-visible { border-color: #2D5016; }
.pub-theme--northern .pub-field input:focus,
.pub-theme--northern .pub-field select:focus,
.pub-theme--northern .pub-field textarea:focus { border-color: #2D5016; box-shadow: 0 0 0 3px rgba(45,80,22,0.12); }
.pub-theme--northern .pub-spinner { border-top-color: #2D5016; }
.pub-theme--northern .pub-section-header--active { background: #F4F8EF; }
.pub-theme--northern .pub-returning-panel { background: #F4F8EF; border-color: #C5E1A5; }
.pub-theme--northern .pub-field--radio input[type=radio],
.pub-theme--northern .pub-field--checkbox input[type=checkbox],
.pub-theme--northern .pub-consent-row input[type=checkbox] { accent-color: #2D5016; }
.pub-theme--northern .pub-btn:focus-visible,
.pub-theme--northern .pub-link-btn:focus-visible,
.pub-theme--northern .pub-back-link:focus-visible,
.pub-theme--northern .pub-cat-card:focus-visible,
.pub-theme--northern .pub-section-header:focus-visible,
.pub-theme--northern .pub-captcha-check:focus-visible,
.pub-theme--northern .pub-contact-card__item:focus-visible { outline-color: #2D5016; }


/* ── 21. RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pub-site-content { grid-template-columns: minmax(0, 1fr) 500px; gap: 28px; padding: 32px 24px; }
}
@media (max-width: 960px) {
  .pub-site-content { grid-template-columns: 1fr; }
  .pub-site-content > .pub-form-slot { order: -1; }
  .pub-site-content .pub-form-card { max-width: 640px; }
  .pub-site-nav__links { display: none; }
}
@media (max-width: 640px) {
  .pub-site-nav { padding: 12px 16px; }
  .pub-site-nav__phone { display: none; }
  .pub-site-hero { padding: 28px 16px 24px; }
  .pub-site-hero h1 { font-size: 24px; }
  .pub-site-content { padding: 20px 12px; }
  .pub-site-footer { padding: 16px; }
  .pub-browser-bar__tag { display: none; }
  .pub-hosted-brand { padding: 12px 16px; flex-wrap: wrap; }
  .pub-hosted-firm-wrap { border-left: none; padding-left: 0; }
  .pub-hosted-help { margin-left: 0; }
  .pub-hosted-body { padding: 20px 12px; }
  .pub-captcha-box { max-width: none; }
}
@media (max-width: 460px) {
  .pub-mobile-stage { padding: 0; }
  .pub-mobile-device {
    width: 100%; height: calc(100vh - 120px); max-height: none; min-height: 560px;
    border: none; border-radius: 0; box-shadow: none;
  }
}


/* ── 22. REDUCED MOTION ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pub-mobile-sheet { animation: none; }
  .pub-section-toggle,
  .pub-cat-card,
  .pub-cat-card__cta i,
  .pub-btn { transition: none; }
}
