/* UEM Edgenta Speak Up Channel — design tokens from design_handoff_speakup_channel */

:root {
  /* Navy / headings */
  --wb-navy-deep: #10173A;
  --wb-navy-base: #162B75;
  --wb-ink: #162B75;

  /* Blue */
  --wb-blue-dark: #226AA3;
  --wb-blue-mid: #162B75;
  --wb-blue-light: #4189C8;

  /* Teal */
  --wb-teal-deep: #16776F;
  --wb-teal-text: #0E7169;
  --wb-teal-mid: #1CADA3;
  --wb-teal-bright: #5FCFC7;
  --wb-teal-ondark: #A9EDE7;

  /* Text */
  --wb-body: #1F2937;
  --wb-text-2: #384566;
  --wb-text-3: #46617E;
  --wb-muted: #5C688A;
  --wb-muted-2: #5C688A;

  /* On-dark text */
  --wb-ondark: #D6E4F7;

  /* Tints / surfaces */
  --wb-card-bg: #FFFFFF;
  --wb-card-bg-soft: #FBFCFE;
  --wb-input-bg: #FBFCFE;
  --wb-dropzone-bg: #F7FAFD;
  --wb-blue-tint: #EAF2FB;
  --wb-blue-tint-2: #F4F8FD;
  --wb-teal-tint: #EFF9F8;
  --wb-panel-tint: #F4F8FD;

  /* Borders */
  --wb-border: #E7EDF5;
  --wb-border-2: #EEF1F8;
  --wb-border-blue: #DCE7F6;
  --wb-border-3: #D7DEEC;
  --wb-border-4: #C9D6EA;
  --wb-border-teal: #CFE9E6;

  --wb-footer-bg: #162B75;
  --wb-disabled: #A9B6D6;

  /* Signature gradients */
  --wb-gradient-hero: linear-gradient(135deg, #162B75 0%, #162B75 40%, #226AA3 75%, #16776F 100%);
  --wb-gradient-cta: linear-gradient(120deg, #162B75 0%, #226AA3 48%, #0E7169 100%);
  --wb-gradient-submit: linear-gradient(120deg, #226AA3 0%, #0E7169 100%);
  --wb-gradient-header-bar: linear-gradient(90deg, #162B75 0%, #226AA3 35%, #1CADA3 100%);
  --wb-gradient-wash-blue: linear-gradient(120deg, #F4F8FD 0%, #FFFFFF 70%);
  --wb-gradient-wash-teal: linear-gradient(120deg, #EFF9F8 0%, #FFFFFF 70%);

  --wb-success-bg: rgba(28, 173, 163, 0.10);
  --wb-success-border: rgba(28, 173, 163, 0.35);
  --wb-success-fg: #0E7169;
  --wb-error-bg: #FDEDED;
  --wb-error-border: #F3C6C6;
  --wb-error-fg: #B23A3A;

}

* { box-sizing: border-box; }

.d-none { display: none !important; }

/* Honeypot field: hidden off-screen rather than display:none/visibility:hidden,
   which some bots specifically check for and skip - see views/report.ejs. */
.wb-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

html {
  background: var(--wb-card-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--wb-body);
  background: var(--wb-card-bg);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wb-blue-dark); text-decoration: none; }
a:hover { color: var(--wb-teal-text); }

.wb-page { min-height: 100vh; display: flex; flex-direction: column; }

/* ===== Shared sticky header (landing + report pages) ===== */
.wb-header-bar { height: 4px; background: var(--wb-card-bg); }
.wb-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wb-border);
  transition: box-shadow 0.2s ease;
}
.wb-header.is-scrolled { box-shadow: 0 8px 24px rgba(16, 23, 58, 0.10); }

/* Nav anchor targets - without this, jumping to #policy-framework/#faq puts
   the section's own heading directly under the sticky header, hiding it.
   150px comfortably covers the header at its tallest (nav wraps to two rows
   on narrow viewports, ~141px) as well as its shortest (~81px on desktop). */
#home, #make-a-report, #policy-framework, #faq { scroll-margin-top: 150px; }
/* Same reasoning as above - the validation-error summary is scrolled into
   view via JS (public/js/main.js) after a failed submission, and would
   otherwise land partly hidden behind the sticky report-page header too. */
.wb-alert-errors { scroll-margin-top: 150px; }
.wb-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 6px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.wb-logo { height: 64px; object-fit: contain; }
.wb-logo-link { display: inline-flex; line-height: 0; }
.wb-brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.wb-back-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px;
  border-radius: 999px; background: var(--wb-blue-tint); transition: background 0.15s ease;
}
.wb-back-link:hover { background: var(--wb-border-blue); }
.wb-back-link span { font-size: 14px; font-weight: 700; color: var(--wb-blue-dark); }
.wb-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wb-nav a {
  font-size: 14px; font-weight: 400; color: var(--wb-text-2);
  padding: 9px 16px; border-radius: 999px; transition: background 0.15s ease, color 0.15s ease;
}
.wb-nav a:hover { background: var(--wb-blue-tint); color: var(--wb-blue-dark); }
.wb-nav a.is-active { color: #FFFFFF; background: var(--wb-blue-dark); }
.wb-nav a.is-active:hover { background: var(--wb-blue-dark); color: #FFFFFF; }

/* Landing header: logo on the left, nav centred on the page. The side columns
   are equal (1fr) so the nav sits at the true centre; it is normal grid flow
   (not absolute positioning) so it still reflows/wraps instead of overlapping
   when the viewport is too narrow. */
@media (min-width: 769px) {
  .wb-header-inner:has(.wb-nav) { display: grid; grid-template-columns: 1fr auto 1fr; }
  .wb-header-inner:has(.wb-nav) > .wb-brand { justify-self: start; grid-column: 1; }
  .wb-header-inner:has(.wb-nav) > .wb-nav { justify-self: center; grid-column: 2; }
}

@media (max-width: 768px) {
  /* The nav is forced onto its own line below the logo via flex-basis:100%
     (which starts a new flex line) plus `order` so it always renders last
     regardless of its position in the markup. */
  .wb-header-inner { padding: 10px 16px; row-gap: 8px; column-gap: 10px; }
  .wb-logo { height: 34px; }
  .wb-brand { gap: 8px; }
  .wb-back-link span { font-size: 13px; }
  .wb-nav { order: 3; flex-basis: 100%; justify-content: center; gap: 6px; }
  .wb-header-inner > *:last-child { order: 2; }
}

/* ===== Landing: hero ===== */
.wb-hero { position: relative; overflow: hidden; background: var(--wb-gradient-hero); }
.wb-hero-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.wb-hero-blob--teal {
  top: -220px; right: -140px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(28, 173, 163, 0.42) 0%, rgba(28, 173, 163, 0) 68%);
  animation: wb-blob-drift-a 42s ease-in-out infinite;
}
.wb-hero-blob--blue {
  bottom: -280px; left: -160px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(34, 106, 163, 0.34) 0%, rgba(34, 106, 163, 0) 70%);
  animation: wb-blob-drift-b 42s ease-in-out infinite;
}
/* Same duration, no offset delay - the two blobs move in lockstep, each
   reaching its own extremes at the same moment, while still tracing
   distinct paths (different corners, different directions) so it reads as
   one cohesive ambient motion rather than a static background. */
@keyframes wb-blob-drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  22%  { transform: translate(-55px, 40px) scale(1.05); }
  48%  { transform: translate(35px, 75px) scale(0.95); }
  71%  { transform: translate(70px, -25px) scale(1.04); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes wb-blob-drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  27%  { transform: translate(50px, -40px) scale(1.04); }
  53%  { transform: translate(-65px, -65px) scale(0.96); }
  82%  { transform: translate(-35px, 45px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}
.wb-hero-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 92px 24px 0; }
.wb-hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px;
  background: rgba(28, 173, 163, 0.20); border: 1px solid rgba(95, 207, 199, 0.45); color: var(--wb-teal-ondark);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 28px;
}
.wb-hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wb-teal-mid); }
.wb-hero h1 {
  font-size: clamp(24px, 4vw, 62px); line-height: 1.06; font-weight: 700; color: #FFFFFF;
  margin: 0 0 26px; letter-spacing: -0.025em; white-space: nowrap;
}
.wb-hero-lede { font-size: 17px; line-height: 1.55; color: var(--wb-ondark); margin: 0 0 16px; max-width: 640px; }
/* One line only where 17px (matching "Our Commitment") actually fits -
   below that, forcing nowrap at this size would clip content (.wb-hero has
   overflow:hidden), so it wraps normally instead. */
@media (min-width: 1260px) {
  .wb-hero-lede { max-width: none; white-space: nowrap; font-size: 17px; }
}
.wb-hero-sub { font-size: 16px; line-height: 1.7; color: rgba(214, 228, 247, 0.72); margin: 0 0 44px; max-width: 640px; }

/* Sits in its own full-bleed wrapper (.wb-hero-tiles-wrap, a sibling of
   .wb-hero-inner) rather than inside .wb-hero-inner's own padded+capped
   box, and gets its own separate max-width+auto-margin cap here - the same
   two-level recipe .wb-cta-section/.wb-report-options-panel and
   .wb-lp-section/.wb-docs-grid already use below on this page - so its
   left/right edges land in the same place as the report and Policy &
   Framework cards instead of .wb-hero-inner's own (differently-capped)
   edges.
   270px minimum (not the original 220px) keeps every tile wide enough for
   "Detrimental Action Complaint Form" to read as one line whenever 3 tiles
   share a row - below that, auto-fit drops to 2 columns (each then getting
   comfortably more than 270px) rather than letting 3 narrow, undersized
   columns squeeze the text into overflowing its own box. 1fr tracks always
   sum to exactly the container's width, so this never overflows. */
.wb-hero-tiles-wrap { padding: 0 24px 76px; }
.wb-hero-tiles {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px;
}
.wb-hero-tile {
  background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px; padding: 24px;
}
.wb-hero-tile-icon {
  width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.wb-hero-tile-icon--light-blue { background: var(--wb-blue-light); }
.wb-hero-tile-icon--teal-mid { background: var(--wb-teal-mid); }
.wb-hero-tile-icon--teal-bright { background: var(--wb-teal-bright); }
.wb-hero-tile h2 { font-size: 16px; font-weight: 700; color: #FFFFFF; margin: 0 0 6px; }
.wb-hero-tile p { font-size: 14px; color: rgba(214, 228, 247, 0.78); line-height: 1.6; margin: 0; }
.wb-hero-tile p + p { margin-top: 20px; }
.wb-hero-tile-doc-link {
  color: var(--wb-teal-bright); font-weight: 700; text-decoration: underline; text-underline-offset: 2px;
  transition: color 0.15s ease; white-space: nowrap; font-size: 12.5px;
}
.wb-hero-tile-doc-link:hover { color: #FFFFFF; }
.wb-hero-tile-doc-link svg { display: inline; vertical-align: -1px; margin-left: 4px; }

.wb-lp-section { padding: 48px 24px; background: linear-gradient(180deg, #F4F8FD 0%, #FFFFFF 100%); }

/* ===== Landing: policy & framework ===== */
.wb-section-head { max-width: 1240px; margin: 0 auto 40px; }
.wb-section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--wb-ink); margin: 0 0 14px; }
.wb-section-head p { font-size: 17px; color: var(--wb-text-2); line-height: 1.7; margin: 0; max-width: 660px; }
/* "Our Commitment" and FAQ's intro line run the full section width instead
   of stopping at the shared 660px cap above. */
.wb-cta-section .wb-section-head p, #faq .wb-section-head p { max-width: none; }
/* Policy & Framework's intro line only - kept to one line regardless of
   viewport width, unlike the full-width-but-wrapping treatment above. */
#policy-framework .wb-section-head p {
  max-width: none; white-space: nowrap; font-size: clamp(11px, 1.75vw, 17px);
}
.wb-section-eyebrow { font-size: 11px; font-weight: 700; color: var(--wb-teal-text); letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 14px; }

.wb-docs-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
/* The 300px column minimum above overflows on phones narrower than ~350px
   of content width (300px + the section's 24px side padding) - and the
   intro line's forced single-line treatment (further up) never actually
   wraps, it just keeps shrinking its font past the point of legibility.
   Both are desktop-only tricks; below phone width, wrap/stack normally. */
@media (max-width: 640px) {
  #policy-framework .wb-section-head p {
    white-space: normal; font-size: 15px;
  }
  .wb-docs-grid { grid-template-columns: 1fr; }
}
.wb-doc-card {
  display: flex; flex-direction: column; border-radius: 16px; padding: 34px 32px;
  border: 1px solid var(--wb-border-blue); background: var(--wb-gradient-wash-blue);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wb-doc-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(34, 106, 163, 0.14); }
.wb-doc-card--teal { border-color: var(--wb-border-teal); background: var(--wb-gradient-wash-teal); }
.wb-doc-card--teal:hover { box-shadow: 0 18px 38px rgba(28, 173, 163, 0.18); }
.wb-doc-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.wb-doc-icon--blue { background: var(--wb-blue-dark); }
.wb-doc-icon--teal { background: var(--wb-teal-text); }
.wb-doc-card h3 { font-size: 21px; font-weight: 700; color: var(--wb-ink); margin: 0 0 12px; letter-spacing: -0.01em; }
.wb-doc-card p { font-size: 15px; color: var(--wb-muted); line-height: 1.65; margin: 0 0 30px; flex: 1; }
.wb-doc-link {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-size: 14px; font-weight: 700; color: #FFFFFF; border-radius: 999px; padding: 12px 24px;
}
.wb-doc-link--blue { background: var(--wb-blue-dark); }
.wb-doc-link--teal { background: var(--wb-teal-text); }

/* ===== Landing: FAQ ===== */
.wb-faq-list { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
/* Selector also matches on .wb-faq-list to out-specificity the shared
   .wb-reveal utility class (same element, both set the transition shorthand
   at equal 0-1-0 specificity otherwise - .wb-reveal is declared later in
   this file and would silently win the whole property, making these items
   snap instead of animate). */
.wb-faq-list .wb-faq-item {
  background: var(--wb-card-bg); border: 1px solid var(--wb-border); border-radius: 18px;
  display: grid; grid-template-rows: auto 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.wb-faq-item:hover { box-shadow: 0 12px 28px rgba(16, 23, 58, 0.06); }
.wb-faq-item.is-open { border-color: var(--wb-border-4); grid-template-rows: auto 1fr; box-shadow: 0 16px 32px rgba(16, 23, 58, 0.08); }
.wb-faq-question {
  display: flex; align-items: flex-start; gap: 22px; width: 100%; padding: 28px 36px;
  background: none; border: none; text-align: left; cursor: pointer; font-family: inherit;
  transition: background 0.2s ease;
}
.wb-faq-question:hover .wb-faq-question-text { color: var(--wb-blue-dark); }
.wb-faq-question:focus-visible { outline: 2px solid var(--wb-teal-mid); outline-offset: -2px; border-radius: 18px; }
.wb-faq-item.is-open .wb-faq-question { background: var(--wb-blue-tint); }
.wb-faq-number {
  flex-shrink: 0; font-size: 15px; font-weight: 700; color: var(--wb-border-4);
  line-height: 1.5; min-width: 30px; font-variant-numeric: tabular-nums;
}
.wb-faq-question-body { flex: 1; }
.wb-faq-question-text { display: block; font-size: 16.5px; font-weight: 700; color: var(--wb-ink); line-height: 1.5; transition: color 0.15s ease; }
.wb-faq-icon { flex-shrink: 0; color: var(--wb-muted); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); margin-top: 2px; }
.wb-faq-item.is-open .wb-faq-icon { transform: rotate(180deg); color: var(--wb-blue-dark); }
.wb-faq-answer-wrap { min-height: 0; overflow: hidden; }
.wb-faq-answer-body { margin: 0 36px 28px; padding-top: 14px; border-top: 1px solid var(--wb-border-2); padding-left: 52px; }
.wb-faq-answer { font-size: 15px; line-height: 1.75; color: var(--wb-text-2); margin: 0; }
.wb-faq-answer-list { font-size: 15px; line-height: 1.75; color: var(--wb-text-2); margin: 10px 0 0; padding-left: 20px; }
.wb-faq-answer-list li { margin: 0 0 4px; }

@media (max-width: 640px) {
  .wb-faq-question { padding: 20px 22px; gap: 14px; }
  .wb-faq-number { min-width: 22px; font-size: 14px; }
  .wb-faq-answer-body { margin: 0 22px 22px; padding-left: 0; }
}

/* ===== Landing: report submission CTA (4-option grid) ===== */
.wb-cta-section { padding: 48px 24px 24px; background: #F4F8FD; }
.wb-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Outer panel groups the 4 options as one visual unit; each card below still
   keeps its own border/background so they read as distinct choices within it. */
.wb-report-options-panel {
  max-width: 1240px; margin: 0 auto; background: var(--wb-card-bg-soft);
  border: 1px solid var(--wb-border-blue); border-radius: 22px; padding: 28px;
}
.wb-report-options-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
.wb-legal-notice {
  max-width: 1240px; margin: 24px auto 0; background: var(--wb-blue-tint-2);
  border: 1px solid var(--wb-border-blue); border-radius: 16px; padding: 20px 24px;
}
.wb-legal-notice p { font-size: 13.5px; font-style: italic; color: var(--wb-text-2); line-height: 1.7; margin: 0; }
.wb-report-option-card {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: var(--wb-card-bg); border: 1px solid var(--wb-border-blue); border-radius: 16px;
  padding: 30px 26px; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.wb-report-option-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(34, 106, 163, 0.14); }
.wb-report-option-card h3 { font-size: 17px; font-weight: 700; color: var(--wb-ink); margin: 0 0 8px; }
.wb-report-option-card p { font-size: 14.5px; color: var(--wb-text-2); line-height: 1.6; margin: 0; }
.wb-report-option-card p em { font-style: italic; color: var(--wb-muted); }
.wb-report-option-email { text-decoration: underline; text-underline-offset: 2px; }

.wb-report-option-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--wb-blue-dark);
}
.wb-report-option-icon--indigo { background: var(--wb-blue-mid); }
.wb-report-option-icon--blue { background: var(--wb-blue-dark); }
.wb-report-option-icon--teal { background: var(--wb-teal-text); }
.wb-report-option-icon--light { background: var(--wb-blue-light); }

/* Speak Up Form and Email are the two clickable/actionable options (Hotline
   and In Writing are informational only) - a soft persistent glow signals
   "click me" without needing a different background from the other cards. */
.wb-report-option-card--interactive {
  box-shadow: 0 0 0 1px rgba(34, 106, 163, 0.16), 0 10px 26px rgba(34, 106, 163, 0.14);
}
a.wb-report-option-card--interactive:hover {
  box-shadow: 0 0 0 1px rgba(34, 106, 163, 0.22), 0 18px 38px rgba(34, 106, 163, 0.22);
}

.wb-cta-btn {
  height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px;
  border-radius: 12px; background: var(--wb-gradient-cta);
  color: #FFFFFF; font-size: 14.5px; font-weight: 700; box-shadow: 0 10px 26px rgba(34, 106, 163, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease; border: none; cursor: pointer;
}
.wb-cta-btn:hover { color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(34, 106, 163, 0.28); }
.wb-cta-btn--block { width: 100%; margin-top: 6px; }

/* ===== Shared footer (landing + report) ===== */
.wb-site-footer { background: var(--wb-footer-bg); }
.wb-site-footer-inner { max-width: 1240px; margin: 0 auto; padding: 56px 24px 60px; text-align: center; }
.wb-site-footer p { color: #FFFFFF; font-size: 14px; line-height: 1.5; margin: 0; }
.wb-site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.wb-site-footer nav a { color: #FFFFFF; font-size: 14px; line-height: 1.4; padding: 2px 14px; }
.wb-site-footer nav a + a { border-left: 1px solid rgba(255, 255, 255, 0.85); }
.wb-site-footer nav a:hover { color: var(--wb-teal-bright); }

/* ===== Report page: title band ===== */
.wb-report-titleband { position: relative; overflow: hidden; background: var(--wb-gradient-hero); }
.wb-report-titleband-blob {
  position: absolute; top: -180px; right: -100px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 207, 199, 0.32) 0%, rgba(95, 207, 199, 0) 70%); pointer-events: none;
}
.wb-report-titleband-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 60px 24px 64px; }

/* ===== Report page ===== */
.wb-report-page { background: #F4F8FD; flex: 1; }
.wb-report-main { max-width: 1180px; margin: 0 auto; padding: 44px 24px 88px; }
.wb-report-head h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; color: #FFFFFF; margin: 0 0 14px; letter-spacing: -0.025em; line-height: 1.12; }
.wb-report-head p { font-size: 16px; color: rgba(214, 228, 247, 0.78); margin: 0; max-width: 620px; line-height: 1.6; }

/* ===== Form progress stepper ===== */
.wb-report-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.wb-report-content { min-width: 0; }

/* The back link sits above the stepper and the pair stays in view while the form scrolls. */
.wb-report-side { position: sticky; top: 96px; }
.wb-report-side .wb-back-link { margin-bottom: 22px; padding: 9px 12px; gap: 7px; white-space: nowrap; }
.wb-report-side .wb-back-link span { font-size: 13px; }
.wb-stepper-list {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 28px;
}
/* Single connecting line drawn once behind every circle, rather than a
   segment per step - a lot simpler than trying to partially recolor it as
   steps complete, and the circles themselves already carry the state. */
.wb-stepper-list::before {
  content: ''; position: absolute; left: 16px; top: 17px; bottom: 17px; width: 2px;
  background: var(--wb-border-4); z-index: 0;
}
.wb-step { position: relative; z-index: 1; }
.wb-step-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; background: none; border: none;
  padding: 0; cursor: pointer; text-align: left; font-family: inherit;
}
.wb-step-circle {
  position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--wb-card-bg); border: 2px solid var(--wb-border-4);
  display: flex; align-items: center; justify-content: center; color: var(--wb-muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.wb-step-num { font-size: 13px; font-weight: 700; }
.wb-step-icon { width: 16px; height: 16px; display: none; }
.wb-step-label { font-size: 13.5px; font-weight: 600; color: var(--wb-muted); line-height: 1.4; transition: color 0.2s ease; }

.wb-step.is-current .wb-step-circle { border-color: var(--wb-blue-dark); color: var(--wb-blue-dark); box-shadow: 0 0 0 4px var(--wb-blue-tint); }
.wb-step.is-current .wb-step-label { color: var(--wb-ink); font-weight: 700; }

.wb-step.is-complete .wb-step-circle { background: var(--wb-success-fg); border-color: var(--wb-success-fg); color: #FFFFFF; box-shadow: none; }
.wb-step.is-complete .wb-step-num { display: none; }
.wb-step.is-complete .wb-step-icon-check { display: block; }
.wb-step.is-complete .wb-step-label { color: var(--wb-ink); }

.wb-step.is-error .wb-step-circle { background: var(--wb-error-bg); border-color: var(--wb-error-fg); color: var(--wb-error-fg); box-shadow: none; }
.wb-step.is-error .wb-step-num { display: none; }
.wb-step.is-error .wb-step-icon-warn { display: block; }
.wb-step.is-error .wb-step-label { color: var(--wb-error-fg); font-weight: 700; }

/* Optional section (Supporting Documents and Evidence), left blank on
   purpose - a distinct muted "acknowledged" look, not the green completed
   check (nothing was required) and not a bare number forever (reads stuck). */
.wb-step.is-optional-visited .wb-step-circle { background: var(--wb-muted); border-color: var(--wb-muted); color: #FFFFFF; }
.wb-step.is-optional-visited .wb-step-num { display: none; }
.wb-step.is-optional-visited .wb-step-icon-dash { display: block; }
.wb-step-optional-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--wb-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px;
}

@media (max-width: 960px) {
  .wb-report-layout { grid-template-columns: 1fr; }
  .wb-report-side { position: static; margin-bottom: 24px; }
  .wb-report-side .wb-back-link { margin-bottom: 16px; }
  .wb-stepper-list { flex-direction: row; justify-content: space-between; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
  .wb-stepper-list::before { left: 17px; right: 17px; top: 17px; bottom: auto; width: auto; height: 2px; }
  .wb-step-btn { flex-direction: column; gap: 6px; align-items: center; }
  .wb-step-label { font-size: 10.5px; text-align: center; max-width: 68px; }
}

@media (max-width: 640px) {
  .wb-step-label { display: none; }
}

.wb-form { display: flex; flex-direction: column; gap: 24px; }
.wb-card {
  background: var(--wb-card-bg); border: 1px solid var(--wb-border-blue); border-radius: 16px;
  margin-bottom: 0; box-shadow: 0 10px 30px rgba(30, 58, 138, 0.05); overflow: hidden;
}
.wb-card-header { display: flex; align-items: center; gap: 16px; padding: 24px 32px; border-bottom: 1px solid var(--wb-border); }
.wb-card-header--blue { background: var(--wb-gradient-wash-blue); }
.wb-card-header--teal { background: var(--wb-gradient-wash-teal); }
.wb-card-number {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #FFFFFF; font-size: 14px; font-weight: 700;
}
.wb-card-number--1 { background: var(--wb-blue-dark); }
.wb-card-number--2 { background: var(--wb-teal-text); }
.wb-card-number--3 { background: var(--wb-blue-light); }
.wb-card-number--4 { background: var(--wb-teal-mid); }
.wb-card-number--5 { background: var(--wb-teal-deep); }
.wb-card-title { font-size: 17px; font-weight: 700; color: var(--wb-ink); margin: 0; letter-spacing: -0.01em; }
.wb-card-body { padding: 30px 32px; }

.wb-anon-row {
  display: flex; align-items: flex-start; gap: 14px; background: var(--wb-teal-tint); border: 1px solid var(--wb-border-teal);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 26px; cursor: pointer;
}
.wb-anon-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--wb-teal-text); flex-shrink: 0; cursor: pointer; }
.wb-anon-title { display: block; font-size: 14.5px; font-weight: 700; color: var(--wb-teal-text); }
.wb-anon-desc { display: block; font-size: 13.5px; color: var(--wb-text-3); margin-top: 4px; line-height: 1.55; }

.wb-note {
  display: flex; align-items: center; gap: 9px; background: var(--wb-blue-tint);
  border: 1px solid rgba(34, 106, 163, 0.18); color: var(--wb-blue-dark);
  border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 20px;
}

.wb-field-row { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 22px; }
.wb-field-row:last-child { margin-bottom: 0; }
.wb-field-row > div { flex: 1 1 200px; }
.wb-field-row.wb-field-row-3 > div { flex-basis: 200px; }
.wb-field-full { flex: 1 1 100%; }
/* Doesn't grow to match a sibling's width - for compact inputs like a time
   picker that don't need as much room as e.g. a date field. Selector must
   out-specificity ".wb-field-row > div" above (class+type) to actually win. */
.wb-field-row > .wb-field-narrow { flex: 0 1 160px; }

.wb-label { display: block; font-size: 13px; font-weight: 700; color: var(--wb-ink); margin-bottom: 9px; }
.wb-help { font-size: 12.5px; color: var(--wb-muted); margin-top: 9px; }
.wb-routing-note { font-style: italic; }

/* "Please specify" field revealed under Category of Disclosure / Company
   Division when "Others" is selected (see public/js/main.js). */
.wb-conditional-field { margin-top: 14px; }

.wb-checkbox-inline-group { display: flex; gap: 24px; margin-top: 8px; flex-wrap: wrap; }
.wb-checkbox-inline { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14.5px; color: var(--wb-ink); }
.wb-checkbox-inline input { width: 18px; height: 18px; margin: 0; accent-color: var(--wb-blue-dark); cursor: pointer; }

.wb-input, .wb-select, .wb-textarea {
  width: 100%; padding: 0 14px; border-radius: 10px; border: 1px solid var(--wb-border-3);
  font-size: 14.5px; color: var(--wb-body); font-family: inherit; background: var(--wb-input-bg); outline: none;
}
.wb-input, .wb-select { height: 48px; }
.wb-select { cursor: pointer; }
/* A number input's spinner arrows (and, worse, scroll-wheel-while-focused -
   see the wheel listener in main.js) make it too easy to silently nudge a
   monetary value by accident while scrolling the page. Hiding the spinner
   doesn't disable typing arrow-key increments, only the easy-to-fat-finger
   mouse controls. */
.wb-input[type="number"]::-webkit-outer-spin-button,
.wb-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.wb-input[type="number"] {
  -moz-appearance: textfield;
}
.wb-textarea { padding: 14px; resize: vertical; }
.wb-input:focus, .wb-select:focus, .wb-textarea:focus {
  border-color: var(--wb-teal-mid); outline: 2px solid var(--wb-teal-mid); outline-offset: 1px;
}
.wb-input.is-invalid, .wb-select.is-invalid, .wb-textarea.is-invalid {
  border-color: var(--wb-error-border); background: var(--wb-error-bg);
}
.wb-input.is-invalid:focus, .wb-select.is-invalid:focus, .wb-textarea.is-invalid:focus {
  border-color: var(--wb-error-fg); outline-color: var(--wb-error-fg);
}
.wb-help.is-error { color: var(--wb-error-fg); font-weight: 600; }
.wb-counter { text-align: right; font-size: 12.5px; color: var(--wb-muted); margin-top: 8px; }
.wb-counter.is-near-limit { color: var(--wb-error-fg); }

.wb-dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; border: 2px dashed var(--wb-border-4); border-radius: 14px; padding: 46px 24px;
  cursor: pointer; text-align: center; background: var(--wb-dropzone-bg); transition: border-color 0.18s ease, background 0.18s ease;
}
.wb-dropzone:hover { border-color: var(--wb-teal-mid); background: var(--wb-teal-tint); }
.wb-dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wb-dropzone-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--wb-blue-tint);
  display: flex; align-items: center; justify-content: center;
}
.wb-dropzone-title { font-size: 15px; font-weight: 700; color: var(--wb-ink); }
.wb-dropzone-sub { font-size: 12.5px; color: var(--wb-muted); line-height: 1.6; }
.wb-file-note { font-size: 12.5px; color: var(--wb-muted); margin: 14px 0 0; }
.wb-file-note-my { font-style: italic; margin-top: 6px; }
.wb-file-notes-heading { font-weight: 700; }
.wb-file-notes-list { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; }
.wb-file-notes-list li::marker { font-size: 11px; }
.wb-file-notes-list li { margin-top: 10px; }
.wb-file-notes-list li:first-child { margin-top: 0; }
.wb-file-notes-list .wb-file-note { margin: 0; }

.wb-file-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wb-file-chip {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--wb-text-2);
  background: var(--wb-blue-tint-2); border: 1px solid var(--wb-border-blue); border-radius: 10px; padding: 11px 14px;
}
.wb-file-chip.is-warn { background: var(--wb-error-bg); }
.wb-file-name { font-weight: 600; flex: 1; }
.wb-file-size { font-size: 12px; color: var(--wb-muted); }
.wb-file-remove {
  border: none; background: none; color: var(--wb-muted); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 0 2px; flex-shrink: 0;
}
.wb-file-remove:hover { color: var(--wb-error-fg); }
.wb-file-limit-note { font-size: 12.5px; color: var(--wb-error-fg); margin: 10px 0 0; }

.wb-declare-row {
  display: flex; align-items: flex-start; gap: 14px; background: var(--wb-blue-tint-2); border: 1px solid var(--wb-border-blue);
  border-radius: 12px; padding: 18px 20px; cursor: pointer;
}
.wb-declare-row + .wb-declare-row { margin-top: 14px; }
.wb-declare-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--wb-blue-dark); flex-shrink: 0; cursor: pointer; }
.wb-declare-text { display: block; font-size: 14.5px; font-weight: 600; color: var(--wb-ink); line-height: 1.55; }
.wb-declare-my { display: block; font-size: 13px; font-style: italic; color: var(--wb-muted); margin-top: 4px; }

/* ALTCHA anti-bot widget wrapper, kept visually separate from the
   Declaration card (see views/report.ejs + middleware/altcha.js). The widget
   itself is styled via public/css/altcha-widget.css using the --altcha-*
   custom properties below, aligned to this app's blue/teal palette. */
.wb-altcha-wrap {
  --altcha-color-primary: var(--wb-blue-dark);
  --altcha-border-color: var(--wb-border-4);
  --altcha-color-success: var(--wb-teal-text);
  --altcha-max-width: 340px;
  --altcha-border-radius: 4px;
}
.wb-altcha-wrap .wb-file-note-my { max-width: 340px; }

@media (max-width: 640px) {
  .wb-altcha-wrap { --altcha-max-width: 100%; }
}

.wb-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.wb-actions-note { font-size: 13.5px; color: var(--wb-muted); }
.wb-actions-buttons { display: flex; gap: 12px; }

.wb-btn {
  height: 52px; padding: 0 28px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
  cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.wb-btn-outline { border: 1px solid var(--wb-border-4); background: #FFFFFF; color: var(--wb-blue-dark); }
.wb-btn-outline:hover { background: var(--wb-blue-tint); }
.wb-btn-primary {
  border: none; padding: 0 34px; color: #fff;
  background: var(--wb-gradient-submit);
  box-shadow: 0 12px 26px rgba(28, 173, 163, 0.28);
}
.wb-btn-primary:hover { transform: translateY(-1px); }
.wb-btn-primary:disabled {
  background: var(--wb-disabled); box-shadow: none; cursor: not-allowed; transform: none;
}

.wb-inline-success {
  margin-top: 22px; background: var(--wb-success-bg); border: 1px solid var(--wb-success-border);
  border-radius: 12px; padding: 18px 22px; text-align: center;
}
.wb-inline-success p { font-size: 14.5px; font-weight: 700; color: var(--wb-success-fg); margin: 0; }

.wb-alert-errors {
  max-width: 1180px; margin: 0 auto 24px; padding: 16px 20px; border-radius: 12px;
  background: var(--wb-error-bg); border: 1px solid var(--wb-error-border); color: var(--wb-error-fg);
}
.wb-alert-errors ul { margin: 8px 0 0; padding-left: 20px; }

/* ===== Result (success / error) pages ===== */
.wb-result-header { background: var(--wb-gradient-submit); color: #fff; padding: 28px 32px; text-align: center; }
.wb-result-header span { font-weight: 800; font-size: 15px; letter-spacing: 0.05em; }
.wb-result-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.wb-result-card { max-width: 520px; width: 100%; background: var(--wb-card-bg); border: 1px solid var(--wb-border); border-radius: 20px; padding: 48px 40px; text-align: center; }
.wb-result-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.wb-result-ref { margin: 20px 0 4px; padding: 14px 16px; border: 1px solid var(--wb-success-border); background: var(--wb-success-bg); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.wb-result-ref-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wb-success-fg); }
.wb-result-ref-number { font-size: 22px; font-weight: 800; letter-spacing: 0.03em; color: #162B75; font-variant-numeric: tabular-nums; user-select: all; }
.wb-result-ref-help { font-size: 13px; color: var(--wb-text-muted, #555); }
.wb-result-icon--success { background: var(--wb-success-bg); color: var(--wb-success-fg); }
.wb-result-icon--error { background: var(--wb-error-bg); color: var(--wb-error-fg); }
.wb-result-card h2 { font-size: 24px; font-weight: 800; color: var(--wb-ink); margin: 0 0 14px; }
.wb-result-card p { font-size: 15px; line-height: 1.6; color: var(--wb-text-2); margin: 0 0 12px; }
.wb-result-card p.wb-result-sub { font-size: 14px; color: var(--wb-muted); margin-bottom: 28px; }
.wb-result-note { background: var(--wb-blue-tint); border: 1px solid var(--wb-border-blue); border-radius: 12px; padding: 14px 18px; margin: 0 0 16px; }
.wb-result-card .wb-result-note p { font-size: 13.5px; color: var(--wb-blue-dark); margin: 0; }
.wb-result-back-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: fit-content; margin: 16px auto 0;
  font-size: 13.5px; font-weight: 600; color: var(--wb-blue-dark);
}
.wb-result-back-link:hover { color: var(--wb-teal-text); }
.wb-result-back-link svg { flex-shrink: 0; }
.wb-result-back-link:hover svg path { stroke: var(--wb-teal-text); }

.wb-footer { text-align: center; padding: 26px; border-top: 1px solid var(--wb-border); color: var(--wb-muted); font-size: 13px; }

/* ===== Spinner overlay ===== */
.wb-spinner-overlay {
  position: fixed; inset: 0; background: rgba(30, 42, 94, 0.72); z-index: 200;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
}
.wb-spinner { width: 52px; height: 52px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: wb-spin 0.8s linear infinite; }
.wb-spinner-overlay p { color: #fff; font-size: 16px; margin: 0; }
@keyframes wb-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .wb-field-row { flex-direction: column; }
  /* Once flex-direction is column, the 200px flex-basis meant as a desktop
     minimum WIDTH (line ~536) becomes a minimum HEIGHT instead, forcing every
     stacked field into a 200px-tall box regardless of its actual content -
     reset it back to content-based sizing for every field, not just the
     special-cased row-3/narrow variants below. */
  .wb-field-row > div { flex-basis: auto; }
  .wb-field-row.wb-field-row-3 > div { flex-basis: auto; }
  .wb-field-row > .wb-field-narrow { flex-basis: auto; }
}

/* ===== Scroll effects: reveal-on-scroll + back-to-top ===== */
.wb-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.wb-reveal.is-visible { opacity: 1; transform: translateY(0); }
.wb-reveal--d1 { transition-delay: 0.08s; }
.wb-reveal--d2 { transition-delay: 0.16s; }
.wb-reveal--d3 { transition-delay: 0.24s; }

.wb-back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--wb-blue-dark); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(16, 23, 58, 0.28);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
}
.wb-back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.wb-back-to-top:hover { background: var(--wb-teal-text); }
.wb-back-to-top:focus-visible { outline: 2px solid var(--wb-teal-mid); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wb-reveal { transition: none; opacity: 1; transform: none; }
  .wb-back-to-top { transition: opacity 0.01s linear; }
  .wb-step-circle, .wb-step-label { transition: none; }
  .wb-hero-blob { animation: none; }
}

@media (max-width: 640px) {
  .wb-back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
