/* ==========================================================================
   agencysignup.co.uk — Version 2: Navy Hero Band + Modular Step-Card Flow
   Palette strictly aligned with brand logo & policy PDFs:
   - Ink Navy:      #0B1221
   - Brand Blue:    #0047FF (hover #0038CC)
   - Periwinkle:    #7E82F7
   - Surface Page:  #F3F6FA
   - Surface Card:  #FFFFFF
   ========================================================================== */

:root {
  --brand-navy: #0B1221;
  --brand-navy-elevated: #131D33;
  --brand-blue: #0047FF;
  --brand-blue-hover: #0038CC;
  --brand-periwinkle: #7E82F7;
  --brand-tint: #EEF2FF;
  --brand-tint-border: #C7D2FE;

  --surface-page: #F3F6FA;
  --surface-card: #FFFFFF;
  --surface-subtle: #F8FAFC;
  --surface-muted: #EEF2F6;

  --border-default: #DCE3EC;
  --border-strong: #CBD5E1;
  --border-focus: #0047FF;

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-subtle: #64748B;

  --amber-bg: #FFFBEB;
  --amber-border: #F59E0B;
  --amber-text: #78350F;
  --amber-heading: #92400E;

  --green-bg: #ECFDF5;
  --green-text: #065F46;

  --red-bg: #FEF2F2;
  --red-border: #FECACA;
  --red-text: #B91C1C;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-module: 0 1px 2px rgba(11, 18, 33, 0.04), 0 10px 26px -16px rgba(11, 18, 33, 0.08);
  --focus-ring: 0 0 0 3px rgba(0, 71, 255, 0.22);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 60;
  padding: 10px 16px;
  background-color: var(--brand-navy);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  outline: none;
  box-shadow: var(--focus-ring);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.form-container {
  width: 100%;
  max-width: 1120px;
}

/* Mock-up Strip */
.mockup-bar {
  background-color: #060B14;
  color: #CBD5E1;
  font-size: 13px;
}

.mockup-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 7px;
}

.mockup-bar__text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mockup-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: rgba(126, 130, 247, 0.2);
  border: 1px solid rgba(126, 130, 247, 0.45);
  color: #E0E7FF;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Crisp White Header with Large Logo */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-default);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 94px;
  padding-block: 14px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 6px;
}

.brand-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.brand-logo {
  display: block;
  width: auto;
  height: 60px;
  max-width: min(350px, 100%);
  object-fit: contain;
}

.brand-logo--sm {
  height: 42px;
  max-width: 240px;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.header-pill svg {
  color: var(--brand-blue);
}

/* Ink Navy Split Hero Band */
.hero-band {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-navy);
  background-image:
    radial-gradient(circle at 86% 20%, rgba(0, 71, 255, 0.24) 0%, rgba(0, 71, 255, 0) 48%),
    radial-gradient(circle at 12% 90%, rgba(126, 130, 247, 0.12) 0%, rgba(126, 130, 247, 0) 44%);
  color: #FFFFFF;
  padding-block: 44px 48px;
  border-bottom: 3px solid var(--brand-blue);
}

.hero-band__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(165, 180, 252, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0.4));
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0.4));
}

.hero-band__graphic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-band__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A5B4FC;
  margin-bottom: 10px;
}

.hero-title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 16.5px;
  line-height: 1.6;
  color: #CBD5E1;
  max-width: 56ch;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pillar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 600;
  color: #F8FAFC;
}

.hero-pillar svg {
  color: var(--brand-periwinkle);
}

.hero-notice {
  background-color: rgba(19, 29, 51, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-left: 4px solid var(--amber-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.45);
}

.hero-notice__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #FCD34D;
  margin-bottom: 8px;
}

.hero-notice__head svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-notice__head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  color: #E2E8F0;
}

/* Sticky Horizontal Step Ribbon */
.step-ribbon {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-default);
}

.step-ribbon__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
}

.step-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.step-pills::-webkit-scrollbar {
  display: none;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background-color: var(--surface-subtle);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.step-pill:hover {
  border-color: #94A3B8;
  color: var(--text-primary);
}

.step-pill:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.step-pill__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background-color: var(--surface-muted);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
}

.step-nav__item.is-active .step-pill {
  background-color: var(--brand-tint);
  border-color: var(--brand-blue);
  color: var(--brand-navy);
}

.step-nav__item.is-active .step-pill__num {
  background-color: var(--brand-blue);
  color: #FFFFFF;
}

.step-nav__item.is-complete .step-pill {
  background-color: var(--green-bg);
  border-color: #A7F3D0;
  color: var(--green-text);
}

.step-nav__item.is-complete .step-pill__num {
  background-color: #059669;
  color: #FFFFFF;
}

.ribbon-count {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-blue);
  background-color: var(--brand-tint);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Application Stage */
.form-stage {
  padding-block: 36px 64px;
}

.stage-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.stage-intro h2 {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
}

.stage-intro p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.required-legend {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.req-star {
  color: #DC2626;
  font-weight: 700;
}

/* Modular Cards */
.module-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.module-card {
  position: relative;
  width: 100%;
  min-width: 0;
  scroll-margin-top: 72px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background-color: var(--surface-card);
  box-shadow: var(--shadow-module);
  margin: 0;
  padding: 28px 32px 30px;
}

.module-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.module-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background-color: var(--brand-blue);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  box-shadow: -3px -3px 0 var(--brand-periwinkle);
}

.section-lead {
  margin: -4px 0 20px;
  font-size: 14.5px;
  color: var(--text-secondary);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

/* Error & Duplicate Banners */
.error-summary {
  background-color: var(--red-bg);
  border: 1px solid var(--red-border);
  border-left: 4px solid #DC2626;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.error-summary__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--red-text);
  margin-bottom: 8px;
}

.error-summary__head h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
}

.error-summary__list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--red-text);
}

.error-summary__list li + li {
  margin-top: 4px;
}

.error-summary__list a {
  color: var(--red-text);
  font-weight: 600;
}

.duplicate-banner {
  background-color: var(--amber-bg);
  border: 1px solid #FCD34D;
  border-left: 4px solid var(--amber-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.duplicate-banner__body strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 14.5px;
  color: var(--amber-heading);
  margin-bottom: 4px;
}

.duplicate-banner__body p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--amber-text);
}

.duplicate-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form Controls */
.sub-fieldset {
  width: 100%;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.field-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.field-grid:last-child {
  margin-bottom: 0;
}

.field-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  margin-bottom: 20px;
}

.field-grid .field,
.conditional-panel .field,
.declaration-list .field {
  margin-bottom: 0;
}

.field:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-subtle);
}

.field-hint--top {
  margin: -2px 0 10px;
}

.field-error {
  margin: 6px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--red-text);
}

.input,
.textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out, background-color 160ms ease-out;
}

.input {
  min-height: 46px;
  padding: 10px 14px;
}

.input--postcode {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.input--date {
  max-width: 240px;
}

.textarea {
  padding: 12px 14px;
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}

.input::placeholder,
.textarea::placeholder {
  color: #94A3B8;
}

.input:hover,
.textarea:hover {
  border-color: #94A3B8;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--focus-ring);
}

.field.has-error .input,
.field.has-error .textarea {
  border-color: #DC2626;
  background-color: #FFFAFA;
}

.input-suffix-wrap {
  display: flex;
  align-items: stretch;
  max-width: 260px;
}

.input-suffix-wrap .input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background-color: var(--surface-subtle);
  border: 1.5px solid var(--border-strong);
  border-left: 0;
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Tactile Choice Tiles */
.choice-grid {
  display: grid;
  gap: 10px;
}

.choice-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid--compact {
  max-width: 340px;
}

.choice-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-tile {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 46px;
  padding: 11px 14px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: border-color 150ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out;
}

.choice-tile--span2 {
  grid-column: span 2;
}

.choice-tile:hover {
  border-color: #94A3B8;
  background-color: var(--surface-subtle);
}

.choice-tile input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.choice-tile__box {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 1.75px solid #94A3B8;
  border-radius: 5px;
  background-color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}

.choice-tile--radio .choice-tile__box {
  border-radius: 999px;
}

.choice-tile__text {
  min-width: 0;
  overflow-wrap: break-word;
  font-size: 14.75px;
  line-height: 1.4;
  color: var(--text-primary);
  font-weight: 500;
}

.choice-tile:has(input:checked) {
  border-color: var(--brand-blue);
  background-color: var(--brand-tint);
}

.choice-tile:has(input:checked) .choice-tile__box {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue);
}

.choice-tile:not(.choice-tile--radio):has(input:checked) .choice-tile__box::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg) translate(0.5px, -0.5px);
}

.choice-tile--radio:has(input:checked) .choice-tile__box::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: #FFFFFF;
}

.choice-tile:has(input:focus-visible) {
  box-shadow: var(--focus-ring);
}

/* Conditional Panels */
.conditional-panel {
  margin-top: 14px;
  padding: 16px 18px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--brand-tint-border);
  border-left: 3.5px solid var(--brand-blue);
  border-radius: var(--radius-sm);
  animation: condReveal 200ms ease-out;
}

.conditional-panel--standalone {
  margin-top: 0;
  margin-bottom: 20px;
}

@keyframes condReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip-btn {
  padding: 5px 11px;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background-color: #FFFFFF;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out;
}

.chip-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background-color: var(--brand-tint);
}

/* Declaration & Submit */
.declaration-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.decl-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-default);
  background-color: var(--surface-subtle);
  cursor: pointer;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}

.decl-item:hover {
  border-color: #94A3B8;
}

.decl-item input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.decl-item__box {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1.75px solid #94A3B8;
  background-color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.decl-item:has(input:checked) {
  border-color: var(--brand-blue);
  background-color: var(--brand-tint);
}

.decl-item:has(input:checked) .decl-item__box {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue);
}

.decl-item:has(input:checked) .decl-item__box::after {
  content: "";
  width: 10px;
  height: 5.5px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg) translate(0.5px, -0.5px);
}

.decl-item:has(input:focus-visible) {
  box-shadow: var(--focus-ring);
}

.decl-item__text {
  min-width: 0;
  overflow-wrap: break-word;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-primary);
}

.inline-link {
  color: var(--brand-blue);
  font-weight: 600;
  text-underline-offset: 2px;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-default);
}

.spam-check-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
}

.human-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 260px;
  min-width: 0;
  cursor: pointer;
}

.human-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.human-check__box {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 5px;
  border: 1.75px solid #94A3B8;
  background-color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.human-check:has(input:checked) .human-check__box {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue);
}

.human-check:has(input:checked) .human-check__box::after {
  content: "";
  width: 10px;
  height: 5.5px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg) translate(0.5px, -0.5px);
}

.human-check__text {
  min-width: 0;
  overflow-wrap: break-word;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-primary);
}

.spam-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-text);
  background-color: var(--green-bg);
  padding: 4px 10px;
  border-radius: 999px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius-md);
  background-color: var(--brand-blue);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease-out, box-shadow 180ms ease-out;
}

.btn-submit:hover {
  background-color: var(--brand-blue-hover);
}

.btn-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 71, 255, 0.28);
}

.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}

.btn-secondary {
  border: 1.5px solid var(--border-strong);
  background-color: #FFFFFF;
  color: var(--text-primary);
}

.btn-ghost {
  border: 1.5px solid transparent;
  background-color: transparent;
  color: var(--text-secondary);
}

.submit-reassurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.submit-reassurance svg {
  color: var(--brand-blue);
}

/* Confirmation View */
.confirmation-view {
  padding-block: 44px 68px;
}

.confirm-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-module);
  padding: 40px;
}

.confirm-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background-color: var(--brand-blue);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: -6px -6px 0 var(--brand-periwinkle);
}

.confirm-ref {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-blue);
  background-color: var(--brand-tint);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.confirm-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 800;
  color: var(--brand-navy);
}

.confirm-lead {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.confirm-copy {
  padding: 18px 20px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.confirm-copy p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 15px;
}

.confirm-copy p:last-child {
  margin-bottom: 0;
}

.confirm-copy__strong {
  font-weight: 700;
  color: var(--brand-navy) !important;
}

.confirm-audit {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.confirm-audit__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-default);
}

.confirm-audit__header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-navy);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.status-pill--ok {
  background-color: var(--green-bg);
  color: var(--green-text);
}

.status-pill--review {
  background-color: var(--amber-bg);
  color: var(--amber-heading);
  border: 1px solid #FCD34D;
}

.audit-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.audit-grid div dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  margin-bottom: 2px;
}

.audit-grid div dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-word;
}

.confirm-email-preview {
  background-color: var(--brand-tint);
  border: 1px solid var(--brand-tint-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 24px;
}

.confirm-email-preview__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.confirm-email-preview__head svg {
  color: var(--brand-blue);
}

.confirm-email-preview p {
  margin: 0;
  font-size: 13.75px;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-default);
  padding-block: 34px;
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.site-footer__company {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

.site-footer__company a {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.site-footer__links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding-block: 4px;
}

.site-footer__links a:hover {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background-color: var(--surface-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out;
}

.social-link:hover {
  border-color: var(--brand-blue);
  background-color: var(--brand-tint);
  color: var(--brand-blue);
}

.social-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-band {
    padding-block: 34px 38px;
  }

  .hero-band__graphic {
    opacity: 0.55;
  }

  .hero-band__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .module-card {
    padding: 24px 24px 26px;
  }

  .site-footer__right {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .mockup-bar {
    font-size: 12px;
  }

  .mockup-bar__text {
    justify-content: center;
    text-align: center;
    gap: 6px;
  }

  .site-header__inner {
    min-height: 74px;
    padding-block: 10px;
  }

  .brand-logo {
    height: 44px;
    max-width: min(250px, 100%);
  }

  .header-meta {
    display: none;
  }

  .hero-band {
    padding-block: 28px 32px;
  }

  .hero-lead {
    font-size: 15.5px;
    margin-bottom: 18px;
  }

  .hero-pillar {
    padding: 6px 11px;
    font-size: 13px;
  }

  .hero-notice {
    padding: 16px 18px;
  }

  .step-ribbon__inner {
    gap: 10px;
    padding-block: 8px;
  }

  .step-pills {
    gap: 6px;
  }

  .step-pill {
    padding: 5px 10px;
    gap: 6px;
    font-size: 12.5px;
  }

  .step-pill__num {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .form-stage {
    padding-block: 24px 44px;
  }

  .stage-intro {
    gap: 8px 16px;
    margin-bottom: 18px;
  }

  .stage-intro h2 {
    font-size: 1.35rem;
  }

  .module-stack {
    gap: 16px;
  }

  .module-card {
    padding: 20px 16px 22px;
    border-radius: var(--radius-md);
    scroll-margin-top: 64px;
  }

  .module-card__header {
    font-size: 1.08rem;
    gap: 10px;
    margin-bottom: 16px;
  }

  .module-num {
    width: 28px;
    height: 28px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .field-grid {
    gap: 14px;
    margin-bottom: 14px;
  }

  .field {
    margin-bottom: 16px;
  }

  .field-grid--2,
  .choice-grid--2,
  .choice-grid--3,
  .audit-grid {
    grid-template-columns: 1fr;
  }

  .choice-tile--span2 {
    grid-column: span 1;
  }

  .choice-grid--compact {
    max-width: 100%;
  }

  .input--date,
  .input-suffix-wrap {
    max-width: 100%;
  }

  .conditional-panel {
    padding: 14px;
  }

  .chip-btn {
    min-height: 36px;
    padding: 6px 12px;
  }

  .decl-item {
    padding: 12px 14px;
  }

  .spam-check-box {
    padding: 12px 14px;
  }

  .btn-submit {
    min-height: 50px;
    padding: 13px 18px;
    font-size: 15px;
  }

  .confirmation-view {
    padding-block: 24px 44px;
  }

  .confirm-card {
    padding: 24px 18px;
  }

  .confirm-lead {
    font-size: 16px;
  }

  .confirm-copy {
    padding: 14px 16px;
  }

  .confirm-audit {
    padding: 16px;
  }

  .site-footer {
    padding-block: 26px;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 20px;
  }

  .site-footer__links {
    gap: 8px 16px;
  }
}

@media (max-width: 420px) {
  .container {
    padding-inline: 12px;
  }

  .module-card {
    padding: 18px 14px 20px;
  }

  .confirm-actions .btn-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

