/* ============================================================
   LG Guarantee Microsite — Shared Stylesheet
   ============================================================
   DESIGN TOKEN AUDIT — extracted from Figma vJptwkXxWxb6jc75VMO8kR
   Desktop reg form: node 53:708 | Mobile reg form: node 85:715

   TYPE SCALE
   ──────────
   Raw → Rationalised
   14px → 14px  (footer body text — kept as-is)
   16px → 16px  (nav links, button text, footer links — kept as-is)
   18px → 18px  (form labels, inputs, body paragraphs, error text — kept as-is)
   24px → 24px  (card section headings / h2 — kept as-is)
   30px → 32px  (mobile h1 — rationalised from 30px to nearest 8px grid)
   48px → 48px  (desktop h1 — kept as-is)

   SPACING SCALE (8px grid)
   ──────────────────────────
   Raw → Rationalised
    8px  →  8px  (section header padding — kept as-is)
    9px  →  8px  (label-to-input gap — rationalised)
   14px  → 16px  (input vertical padding — rationalised)
   16px  → 16px  (input horizontal padding, button padding — kept as-is)
   19px  → 20px  (footer internal gap — rationalised)
   20px  → 20px  (input grid row gap — kept as-is)
   24px  → 24px  (mobile card horizontal padding — kept as-is)
   25px  → 24px  (input grid column gap — rationalised)
   27px  → 24px  (personal details inner gap — rationalised)
   31px  → 32px  (product/consent inner gap — rationalised)
   34px  → 32px  (mobile footer vertical padding — rationalised)
   36px  → 36px  (nav horizontal padding desktop, section gap — kept as-is)
   56px  → 56px  (card vertical padding, page section top — kept as-is)
   64px  → 64px  (card horizontal padding desktop — kept as-is)
   80px  → 80px  (page horizontal padding desktop — kept as-is)
   89px  → 88px  (nav height — rationalised)
   98px  → 96px  (page bottom padding desktop — rationalised)
  110px  → 112px (footer desktop vertical padding — rationalised)

   BORDER RADIUS
   ─────────────
   6px  → --radius-sm  (inputs, buttons, checkboxes)
   32px → --radius-lg  (white card sections)

   COLOUR PALETTE
   ──────────────
   #f1ede4  → --color-bg          (warm cream page background)
   #ffffff  → --color-surface     (white card background)
   #d4d0ca  → --color-border-nav  (nav bottom border)
   #000000  → --color-text        (primary text)
   #646464  → --color-text-muted  (form labels, placeholders)
   #838586  → --color-border      (input/checkbox borders, upload zone)
   #d7362a  → --color-accent      (required asterisk, checkbox fill, inline links)
   #a50034  → --color-error       (error input border, error message text)
   #ea1817  → --color-brand-red   (CTA button background)
   #333333  → --color-footer-bg   (footer background)
   #f1ede4  → --color-footer-text (footer text — same value as page bg)

   FONT WEIGHTS IN USE
   ────────────────────
   LGEIHeadline Light    (300) — footer body copy (14px)
   LGEIHeadline Regular  (400) — form labels, input placeholders, footer links, error text
   LGEIHeadline Semibold (600) — h1 page title, h2 card section headings
   LGEIText Regular      (400) — nav links, button text, body paragraphs

   UNUSED WEIGHTS — not loaded; add @font-face below if needed:
   LGEIHeadline-Thin.woff2     (weight 100)
   LGEIHeadline-Bold.woff2     (weight 700)
   LGEIText-Light.woff2        (weight 300)
   LGEIText-SemiBold.woff2     (weight 600)
   LGEIText-Bold.woff2         (weight 700)
   ============================================================ */

/* ============================================================
   @font-face — used weights only
   ============================================================ */

@font-face {
  font-family: 'LGEIHeadline';
  src: url('../fonts/LGEIHeadline-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LGEIHeadline';
  src: url('../fonts/LGEIHeadline-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LGEIHeadline';
  src: url('../fonts/LGEIHeadline-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LGEIText';
  src: url('../fonts/LGEIText-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Custom properties — design tokens
   ============================================================ */

:root {
  /* Font families */
  --font-headline: 'LGEIHeadline', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'LGEIText', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Type scale */
  --text-xs:   0.875rem;  /* 14px — footer body */
  --text-sm:   1rem;      /* 16px — nav links, button, footer links */
  --text-base: 1.125rem;  /* 18px — labels, inputs, body, error */
  --text-lg:   1.5rem;    /* 24px — card section headings */
  --text-xl:   2rem;      /* 32px — mobile h1 (rationalised from 30px) */
  --text-2xl:  3rem;      /* 48px — desktop h1 */

  /* Concern-specific form typography (16px desktop + mobile, per LG reskin sprint) */
  --font-size-form-label: 1rem;   /* form-label, form-mandatory-note */
  --font-size-input:      1rem;   /* form-input/select typed value + placeholder */
  --font-size-consent:    1rem;   /* checkbox-label / consent body */

  /* Colours */
  --color-bg:          #f1ede4;
  --color-surface:     #ffffff;
  --color-border-nav:  #d4d0ca;
  --color-text:        #000000;
  --color-text-muted:  #646464;
  --color-border:      #838586;
  --color-accent:      #d7362a;
  --color-error:       #a50034;
  --color-brand-red:   #ea1817;
  --color-footer-bg:   #333333;
  --color-footer-text: #f1ede4;

  /* Border radius */
  --radius-sm: 6px;   /* inputs, buttons, checkboxes */
  --radius-lg: 32px;  /* card sections */

  /* Spacing (8px grid) */
  --space-1:  0.5rem;    /*  8px */
  --space-2:  1rem;      /* 16px */
  --space-3:  1.25rem;   /* 20px */
  --space-4:  1.5rem;    /* 24px */
  --space-5:  2rem;      /* 32px */
  --space-6:  2.25rem;   /* 36px */
  --space-7:  3.5rem;    /* 56px */
  --space-8:  4rem;      /* 64px */
  --space-9:  5rem;      /* 80px */
  --space-10: 5.5rem;    /* 88px — nav height */
  --space-11: 6rem;      /* 96px — page section bottom padding */
  --space-12: 7rem;      /* 112px — footer desktop vertical padding */

  /* Component sizes */
  --container-max: 900px;
  --input-height:  3rem;     /* 48px */
  --nav-height:    var(--space-10);
}

/* ============================================================
   Base reset
   ============================================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-text);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-headline);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ============================================================
   Utilities
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }

[hidden] { display: none !important; }

/* ============================================================
   Layout
   ============================================================ */

.page-wrapper {
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

/* ============================================================
   Navigation
   ============================================================ */

.site-nav {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding-inline: var(--space-6);
  z-index: 100;
}

.site-nav__logo {
  display: block;
  height: 32px;
  width: 73px;
  flex-shrink: 0;
}

.site-nav__logo img {
  height: 100%;
  width: auto;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.site-nav__link {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  padding: 4px 8px;
  position: relative;
}

/* Red underline animates in from left on hover.
   Inset by 8px (= .site-nav__link's horizontal padding) so the underline spans
   the text only, not the full padding-box. */
.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 8px;
  width: 0;
  height: 2px;
  background-color: var(--color-brand-red);
  transition: width 300ms ease;
}

.site-nav__link:hover::after {
  width: calc(100% - 16px);
}

/* Active page link always shows the underline */
.site-nav__link[aria-current="page"]::after {
  width: calc(100% - 16px);
}

/* Sibling fade: dim all links when any is hovered, restore the hovered one */
.site-nav__links:hover .site-nav__link {
  opacity: 0.5;
  transition: opacity 200ms ease;
}

.site-nav__links:hover .site-nav__link:hover {
  opacity: 1;
}

.site-nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  width: 31px;
  height: 24px;
  flex-shrink: 0;
}

.site-nav__hamburger span {
  display: block;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 15px;
  position: absolute;
  transition: transform 300ms ease, opacity 200ms ease;
}

.site-nav__hamburger span:nth-child(1) { width: 31px; top: 0;    left: 0; }
.site-nav__hamburger span:nth-child(2) { width: 25px; top: 11px; left: 6px; }
.site-nav__hamburger span:nth-child(3) { width: 31px; top: 22px; left: 0; }

/* Hamburger → X when drawer is open */
.site-nav__hamburger.is-active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.site-nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.site-nav__hamburger.is-active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* ============================================================
   Mobile nav overlay + drawer
   ============================================================ */

.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
  display: none;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85vw;
  max-width: 400px;
  background-color: var(--color-bg);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 300ms ease;
  overflow-y: auto;
  display: none;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.nav-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--space-4);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.nav-drawer__link::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--color-text);
  border-top: 1.5px solid var(--color-text);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.nav-drawer__link:hover {
  opacity: 0.7;
}

.nav-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding-inline: var(--space-4);
  border-bottom: 1px solid var(--color-border-nav);
  flex-shrink: 0;
}

.nav-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Page section (wraps heading + cards)
   ============================================================ */

.page-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-7) var(--space-9) var(--space-11);
  flex: 1;
}

.section-heading {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--color-text);
}

.section-heading h1 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: 1;
}

/* h2 inside .section-heading uses the same scale as .faq__heading h2 (line 1546)
   for visual parity across section heading consumers. */
.section-heading h2 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
}

.section-heading p {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.22;
}

/* ============================================================
   Cards
   ============================================================ */

.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-8);
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card__header {
  display: flex;
  align-items: center;
  padding-top: var(--space-1);
}

/* 12px gap between heading and body copy in non-form cards (e.g. confirmation) */
.card > div > h2 {
  margin-bottom: 12px;
}

.card__header h2 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1;
  color: var(--color-text);
  white-space: nowrap;
}

.card__header + .form-fields,
.card__header + .form-row,
.card__header + .checkbox-group {
  margin-top: 12px;
}

/* Card section — heading + body block used inside confirmation-style cards.
   Promoted from confirmation.html's inline <style> so confirmation,
   reupload-confirmation, and reupload-expired all consume one definition. */
.card-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-section__heading {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.75rem; /* 28px desktop — Figma 55:1269 */
  line-height: 1.15;
  color: var(--color-text);
}
.card-section__body {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--font-size-input); /* 16px — sprint token */
  line-height: 1.22;
  color: var(--color-text);
}
@media (max-width: 768px) {
  .card-section__heading {
    font-size: var(--text-lg); /* 24px — Figma 91:1474 */
  }
}

/* Confirmation-style card spacing modifier — used by confirmation.html,
   reupload-confirmation.html, reupload-expired.html. Wider gap between
   .card-section blocks than the default .card { gap: 12px }, and zero
   margin-top on the trailing .btn-primary which would otherwise compound
   with .card .btn-primary { margin-top: 32px }. Mobile gap tightens to 31px
   inside the shared mobile block. */
.card--confirmation { gap: 37px; }
.card--confirmation .btn-primary { margin-top: 0; }

/* ============================================================
   Form layout
   ============================================================ */

.form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-4);
  row-gap: var(--space-3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* ============================================================
   Form labels & inputs
   ============================================================ */

.form-label {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: var(--font-size-form-label);
  color: var(--color-text-muted);
  line-height: 1;
  display: block;
}

.form-label .required {
  color: var(--color-accent);
}

/* Right-aligned "* Fields are mandatory" note above a form section.
   Reusable across microsite forms in the LG reskin sprint. */
.form-mandatory-note {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: var(--font-size-form-label);
  color: var(--color-text-muted);
  text-align: right;
  width: 100%;
  margin: 0;
  line-height: 1;
}
.form-mandatory-note .required {
  color: var(--color-accent);
}

.form-input,
.form-select {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: var(--font-size-input);
  color: var(--color-text-muted);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  height: var(--input-height);
  padding: 14px var(--space-2);
  width: 100%;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder,
.form-select::placeholder {
  font-size: var(--font-size-input);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-text-muted);
  box-shadow: 0 0 0 2px rgba(100, 100, 100, 0.15);
}

.form-input--error {
  border: 2px solid var(--color-error);
}

.form-input--error:focus {
  border: 2px solid var(--color-error);
  box-shadow: none;
}

.form-select {
  background-image: url('../icons/form-dropdown-chevron.svg');
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.input-icon-wrapper {
  position: relative;
  width: 100%;
}

.input-icon-right {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Currency input wrapper — static symbol rendered as a visual prefix
   inside the input. Symbol is decorative (pointer-events:none) so the
   input value stays purely numeric and validation is unaffected.
   Reusable across the LG reskin sprint; default symbol is hardcoded to €
   in markup. TODO: drive symbol from campaign config. */
.input-currency {
  position: relative;
  width: 100%;
}
.input-currency__symbol {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: var(--font-size-input);
  color: var(--color-text-muted);
  line-height: 1;
  pointer-events: none;
}
.input-currency .form-input {
  padding-left: 32px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 100%;
  cursor: pointer;
}

.form-error {
  display: flex;
  align-items: center;
  width: fit-content;
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: var(--text-sm);
  line-height: 1.4;
  padding: 12px 16px;
  border-radius: 6px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  margin-top: 16px;
}

/* Single summary error inline below Submit on form pages. Resets .form-error's
   16px margin-top so it sits flush against the parent .card flex gap. */
#form-error-summary { margin-top: 0; }

.form-hint {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.4;
  text-align: left;
}
.upload-zone .form-hint { text-align: center; }

/* ============================================================
   File upload zone
   ============================================================ */

.upload-zone {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  min-height: 238px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: 14px var(--space-2);
  width: 100%;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.upload-zone:hover {
  border-color: var(--color-text-muted);
  background-color: rgba(241, 237, 228, 0.4);
}

.upload-zone__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--color-accent);
}

/* ============================================================
   Upload status bar (shown after file selection)
   ============================================================ */

.upload-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: var(--text-sm);
}

.upload-status--success {
  background-color: #f0faf0;
  border: 1px solid #c6e6c6;
  color: #1a7a1a;
}

.upload-status__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: opacity 200ms ease;
}

.upload-status__remove:hover {
  opacity: 1;
}

/* ============================================================
   Proof-of-purchase intro copy + bullet list — used by register
   and reupload above the upload zone.
   ============================================================ */

.proof-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.proof-intro p { margin: 0; }

.proof-bullets {
  margin: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.proof-bullets li { line-height: 1.6; }

/* ============================================================
   Checkboxes
   ============================================================ */

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.checkbox-input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  cursor: pointer;
  position: relative;
}

.checkbox-input:checked::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.checkbox-label {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: var(--font-size-consent);
  color: var(--color-text-muted);
  line-height: 1.27;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Mobile (≤768px): the full-width T&C / Privacy buttons in
   .consent-mobile-actions replace the inline links. De-style the inline
   links so they read as plain body text and don't compete visually with
   the dedicated buttons. Desktop keeps the red+underline affordance. */
@media (max-width: 768px) {
  .checkbox-label a {
    color: inherit;
    text-decoration: none;
  }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-brand-red);
  color: #ffffff;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--text-sm);
  line-height: 1.22;
  height: 40px;
  width: auto;
  min-width: 160px;
  align-self: flex-start;
  padding-inline: var(--space-2);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:active {
  opacity: 0.8;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-brand-red);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--text-sm);
  line-height: 1.22;
  height: 40px;
  width: auto;
  min-width: 160px;
  align-self: flex-start;
  padding-inline: var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-brand-red);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--color-brand-red);
  color: #ffffff;
}

.btn-secondary:active {
  opacity: 0.9;
}

.card .btn-primary {
  margin-top: 32px;
}

/* ============================================================
   Mobile-only stacked action buttons — canonical shared rule.
   Used by register.html, reupload.html, claim-checklist.html, claim.html.
   Hidden on desktop entirely (each consumer renders its own desktop layout
   alongside this block). On mobile renders as a tight flex column with
   12px between buttons and 32px above the stack — same canonical 32px gap
   as `.card .btn-primary` above for desktop submit buttons.
   The button-size override + margin-top: 0 reset live OUTSIDE the media
   query because the parent is display:none on desktop anyway, so children
   aren't rendered there. The reset neutralises `.card .btn-primary` 32px
   which would otherwise compound on top of the wrapper's 32px when the
   mobile stack contains a .btn-primary (it's a .btn-primary inside .card).
   ============================================================ */
.consent-mobile-actions { display: none; }
@media (max-width: 768px) {
  .consent-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }
}
.consent-mobile-actions .btn-primary,
.consent-mobile-actions .btn-secondary {
  height: 48px;
  width: 100%;
  align-self: stretch;
  min-width: 0;
  margin-top: 0;
}

/* When a .btn-primary follows .consent-mobile-actions as a flex sibling
   (register.html and reupload.html — Submit needs to be visible on both
   desktop and mobile, so it lives outside the mobile-only stack rather
   than inside it), the canonical .card .btn-primary { margin-top: 32px }
   stacks on top of .card { gap: 12px } and produces a 44px visual gap
   above Submit on mobile. Reset margin-top to 0 mobile-only so the only
   space above Submit is the 12px card gap — matches the 12px between the
   stacked Terms/Privacy buttons inside the wrapper. Desktop is unaffected
   (Submit keeps the canonical 32px there). */
@media (max-width: 768px) {
  .consent-mobile-actions + .btn-primary {
    margin-top: 0;
  }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 65px var(--space-9);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__logo {
  display: block;
  height: 32px;
  width: 73px;
  flex-shrink: 0;
}

.site-footer__logo img {
  height: 100%;
  width: auto;
}

.site-footer__body {
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: var(--text-xs);
  color: var(--color-footer-text);
  line-height: 1.3;
}

.site-footer__links {
  display: flex;
  gap: 10px;
  list-style: none;
  flex-wrap: wrap;
}

.site-footer__link {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--color-footer-text);
  text-decoration: underline;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.site-footer__link:hover {
  opacity: 0.7;
}

/* ============================================================
   Reference bar (Registration ID display below nav)
   ============================================================ */

.reference-bar {
  background-color: #e5e1d6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 50px;
  padding-inline: var(--space-6);
}

.reference-bar__inner {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  justify-content: flex-end;
}

.reference-bar__text {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ============================================================
   Reference badge (registration ID pill inside card)
   ============================================================ */

.reference-badge {
  display: inline-block;
  padding: 14px 29px;
  background-color: var(--color-bg);
  border-radius: 7px;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.75rem; /* 28px — Figma nodes 55:1344 / 91:1481 */
  line-height: 1.15;
  color: var(--color-text);
}

/* Soft cream info badge for confirmation-type cards.
   Shows product name + registration ID at all breakpoints.
   Reusable on any future campaign confirmation or receipt page. */
.confirmation-id-badge {
  background-color: rgba(241, 237, 228, 0.55);
  border: 1px solid #f1f1f1;
  border-radius: 7px;
  padding: 14px 21px;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.confirmation-id-badge__line {
  display: block;
}
/* Product line fades in after the async lookup resolves.
   This smooths the layout shift when the line is revealed. */
.confirmation-id-badge__product {
  transition: opacity 0.2s ease;
  opacity: 0;
}
.confirmation-id-badge__product:not([hidden]) {
  opacity: 1;
}
@media (max-width: 768px) {
  .confirmation-id-badge {
    font-size: 22px;
  }
}

/* ============================================================
   Back-to-top (fixed, appears after 200px scroll)
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-surface);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   Hero — full-bleed image with text overlay
   Canonical TBK microsite hero pattern — see MASTER-CONTEXT §11.
   Stacked CSS Grid: image and content share one cell, layered via z-index.
   No scrim — designer's art-directed crops bake legibility into composition.
   ============================================================ */

.hero {
  position: relative;
  display: grid;
  grid-template-areas: "stack";
  width: 100%;
  min-height: 540px;
  background-color: var(--color-bg);
}

.hero > * {
  grid-area: stack;
}

.hero__image-wrapper {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__content {
  z-index: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 480px;
  padding-block: var(--space-6);
  padding-inline-start: clamp(24px, 5vw, 80px);
  padding-inline-end: var(--space-4);
  background-color: transparent;
}

.hero__heading {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 56px;
  line-height: 0.855;
  color: var(--color-text);
  margin: 0;
}

.hero__subheading {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 37px;
  line-height: 1;
  color: var(--color-text);
  margin-top: 6px;
}

.hero__title-block {
  /* Plain block flow — heading and subheading stack with their natural margins
     (subheading carries margin-top: 6px) producing a tight grouped title block.
     Sits as a single flex item inside .hero__content, so the parent's
     gap: var(--space-5) handles spacing to .hero__body below. Documented anchor
     for the BEM class — drop margin/padding tweaks here if Dan wants the
     title-block tightened further. */
}

.hero__body {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.22;
  color: var(--color-text);
  max-width: 403px;
}

.hero__cta {
  align-self: flex-start;
}

.hero__cta-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* Hero mobile — image banner on top, content below (single-column stacked grid).
   Breakpoint sits at 768px so iPad-portrait (768) and similar tablet-portrait widths
   fall into the stacked layout instead of the cramped overlay; desktop overlay needs
   1024+ to breathe (the 769-1023 tablet zone has enough horizontal room).
   Aspect-ratio left unlocked so each art-directed mobile crop renders at its natural
   composition (390×274 = ~7:5, 720×307 = ~7:3 — different aspects per density). */
@media (max-width: 768px) {
  .hero {
    grid-template-areas:
      "image"
      "content";
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .hero__image-wrapper {
    grid-area: image;
    height: auto;
  }

  .hero__image {
    height: auto;
  }

  .hero__content {
    grid-area: content;
    max-width: none;
    padding: var(--space-5) var(--space-4);
    gap: 15px;
  }

  .hero__heading {
    font-size: 44px;
  }

  .hero__subheading {
    font-size: 30px;
  }

  /* Hero CTAs stack full-width on mobile for better tap targets.
     Extra margin-top adds breathing room above the buttons since the parent's
     mobile gap (15px) reads cramped against the body copy on phones. */
  .hero__cta-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: var(--space-5);
  }

  .hero__cta-row .btn-primary,
  .hero__cta-row .btn-secondary {
    width: 100%;
  }

  /* "See all FAQ's" button also full-width on mobile. */
  .faq__cta {
    width: 100%;
  }
}

/* ============================================================
   Hero legal strip — full-bleed cream band below the hero
   Canonical sibling of the .hero pattern — see MASTER-CONTEXT §11.
   Pulls long-form disclaimer/legal copy out of the hero overlay so the photo
   reads cleanly. Background matches --color-bg so the strip blends into the
   page wrap; padding-inline uses the same clamp() as .hero__content for
   visual rhythm. Single-line on wide desktops, multi-line wrap on mobile.
   ============================================================ */

.hero-legal {
  width: 100%;
  background-color: #e5e1d6; /* slightly darker than --color-bg to visually band the legal strip */
  padding-block: var(--space-4);
  padding-inline: clamp(24px, 5vw, 80px);
}

.hero-legal__text {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text);
  margin: 0;
}

/* ============================================================
   How It Works — step cards (unified 2-up carousel; 1-up+peek on phones)
   Single flex+scroll-snap pattern at all breakpoints; arrows always visible.
   ============================================================ */

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 117px var(--space-9) 90px;
  width: 100%;
}

.steps__heading {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--color-text);
}

.steps__heading h2 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
}

.steps__heading p {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.22;
}

/* Wraps just the rail so the right-edge fade can be positioned relative to it
   without overlapping the heading or nav. */
.steps__rail-wrap {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
}

/* Edge fades — dissolve the peeking card into the cream page background on both
   sides of the rail. pointer-events: none so they don't block scroll/swipe.
   Each fade is hidden by default; JS toggles modifier classes on the wrapper
   when there's actually content to scroll towards in that direction. */
.steps__rail-wrap::before,
.steps__rail-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.steps__rail-wrap::before {
  left: 0;
  background: linear-gradient(to left, transparent 0%, var(--color-bg) 100%);
}

.steps__rail-wrap::after {
  right: 0;
  background: linear-gradient(to right, transparent 0%, var(--color-bg) 100%);
}

/* Modifier classes — toggled by the carousel JS based on scroll position.
   --scrolled: rail has been scrolled past the start (left fade visible).
   --more:     more content is reachable on the right (right fade visible).
   Selectors chain the parent class to bump specificity to (0, 2, 1), beating
   any equal-specificity rule (incl. the mobile width override) decisively. */
.steps__rail-wrap.steps__rail-wrap--scrolled::before {
  opacity: 1;
}

.steps__rail-wrap.steps__rail-wrap--more::after {
  opacity: 1;
}

.steps__track {
  display: flex;
  flex-direction: row;
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.steps__track::-webkit-scrollbar {
  display: none;
}

.step-card {
  flex: 0 0 calc(46% - 9px); /* 2 cards + sliver of card 3 peeking; tune 44-48% */
  scroll-snap-align: start;
  background-color: var(--color-surface);
  border-radius: 32px;
  padding: 56px var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 289px;
  color: var(--color-text);
}

.step-card__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  margin-bottom: 12px; /* widens icon→title gap without affecting title→body */
  color: var(--color-text);
  display: block;
}

.step-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.step-card__title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 27px;
  line-height: 1;
  color: var(--color-text);
}

.step-card__body {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.22;
  color: var(--color-text);
}

.steps__nav {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  width: 100%;
  max-width: var(--container-max);
}

.steps__nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.steps__nav-btn:hover {
  opacity: 0.7;
}

.steps__nav-btn:disabled,
.steps__nav-btn:disabled:hover {
  opacity: 0.3;
  cursor: not-allowed;
}

.steps__nav-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ============================================================
   FAQ accordion
   ============================================================ */

.faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  padding: 0 var(--space-9) 124px;
  width: 100%;
}

.faq__heading {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--color-text);
}

.faq__heading h2 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
}

.faq__heading p {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.22;
}

.faq__list {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.faq-item {
  background-color: var(--color-surface);
  border-radius: 32px;
  overflow: hidden;
}

/* Centered "See all FAQ's" CTA below the FAQ list. Override .btn-primary's
   align-self: flex-start so it centers under the list (parent is align-items: center). */
.faq__cta {
  align-self: center;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text);
  text-align: left;
}

/* FAQ open/close icon — plus (closed) cross-fades with minus (open).
   Both SVGs sit in the same 24px square via absolute positioning; opacity
   transitions swap them. No rotation. */
.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-text);
  display: inline-block;
}

.faq-icon__plus,
.faq-icon__minus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 200ms ease;
}

.faq-icon__minus {
  opacity: 0;
}

.faq-item.is-open .faq-icon__plus {
  opacity: 0;
}

.faq-item.is-open .faq-icon__minus {
  opacity: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 420ms ease;
}

.faq-answer > p {
  padding: 0 38px 24px;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.22;
  color: var(--color-text);
}

.faq-item.is-open .faq-answer {
  max-height: 400px; /* tuned closer to actual content height so the 300ms ease feels smooth, not snappy */
}

/* ============================================================
   Policy pages (privacy / terms) — no card wrapper, cream bg
   ============================================================ */

.policy {
  max-width: var(--container-max);
  padding: 0 0 var(--space-12);
  margin: 0 auto;
  width: 100%;
}

.policy__section {
  margin-bottom: var(--space-8);
}

.policy__section h2 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--color-text);
}

.policy__section p {
  font-family: var(--font-text);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--color-text);
}

.policy__section ul,
.policy__section ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.policy__section ol {
  list-style: decimal;
}

.policy__section li {
  font-family: var(--font-text);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 6px;
  color: var(--color-text);
}

.policy__section a {
  color: var(--color-brand-red);
  text-decoration: underline;
}

/* ============================================================
   Tablet — max-width: 1024px (nav hamburger trigger)
   ============================================================ */

@media (max-width: 1024px) {
  .site-nav {
    padding-inline: var(--space-2);
  }

  .site-nav__links {
    display: none;
  }

  .site-nav__hamburger {
    display: block;
  }

  .nav-overlay,
  .nav-drawer {
    display: block;
  }
}

/* ============================================================
   Mobile — max-width: 768px
   ============================================================ */

@media (max-width: 768px) {
  /* Page section */
  .page-section {
    padding: var(--space-7) 18px var(--space-7);
  }

  /* H1 */
  .section-heading h1 {
    font-size: var(--text-xl); /* 32px — rationalised from Figma 30px */
  }

  /* H2 — mirrors .faq__heading h2 mobile rule for parity */
  .section-heading h2 {
    font-size: 30px;
  }

  /* Cards */
  .card {
    padding: var(--space-7) var(--space-4);
  }

  /* Form rows collapse to single column */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Form-card Submit goes full-width on mobile. Used by register, reupload,
     support — all .btn-primary inside .card. (.consent-mobile-actions has
     its own width:100% rule at line 968.) */
  .card .btn-primary {
    width: 100%;
  }

  /* Confirmation card spacing tightens on mobile. Mirrors desktop
     .card--confirmation { gap: 37px } block. */
  .card--confirmation {
    gap: 31px;
  }

  /* Footer */
  .site-footer {
    padding: 40px 18px;
  }

  /* Hero mobile rules live in a dedicated @media (max-width: 768px) block
     adjacent to the desktop hero CSS — keeps the canonical pattern self-contained. */

  /* Steps — mobile-specific overrides (carousel pattern is now in the base ruleset).
     641-768 stays 2-up via the base flex-basis rule. Phone widths (≤640) get a
     1-up + peek layout via the dedicated @media block below this one. */
  .steps {
    padding: 56px var(--space-4);
    align-items: stretch;
    gap: 36px;
  }

  .steps__heading h2 {
    font-size: 34px;
  }

  .step-card__title {
    font-size: 24px; /* mobile override — base stays 27px for desktop */
  }

  .steps__track {
    gap: 16px; /* tighter than the 18px base on small viewports */
  }

  /* FAQ */
  .faq {
    padding: 0 var(--space-4) 56px;
    gap: 36px;
  }

  .faq__heading h2 {
    font-size: 30px;
  }

  .faq-question {
    padding: 24px;
    font-size: 20px;
  }

  .faq-answer > p {
    padding: 0 24px 24px;
  }

  /* Policy pages */
  .policy {
    padding: 0 0 var(--space-12);
  }

  /* OTP digit inputs (verify-registration.html) — flex to fit card on mobile */
  .otp-inputs {
    gap: 4px;
    width: 100%;
  }

  .otp-input {
    width: 100%;
    min-width: 0;
    flex: 1;
    height: 48px;
    font-size: 18px;
  }
}

/* Steps carousel — phones get 1-up with peeks on BOTH sides to hint at swipe/arrow.
   scroll-padding-left offsets the snap target from the left edge so a sliver of the
   previous card peeks left when scrolled past card 1; the reduced flex-basis leaves
   room for ~12% right peek of the next card. 641-768 stays 2-up via the base rule.
   Fade gradient also tightens to 40px — narrower cards = narrower fade reads cleaner. */
@media (max-width: 640px) {
  .steps__track {
    scroll-padding-left: 6%; /* sliver of previous card peeks on the left when snapped */
  }
  .step-card {
    flex-basis: 82%; /* leaves ~6% left peek + ~12% right peek of adjacent cards */
  }
  .steps__rail-wrap::before,
  .steps__rail-wrap::after {
    width: 40px;
  }
}

/* ============================================================
   OTP digit inputs (verify-registration.html)
   ============================================================ */

.otp-inputs {
  display: flex;
  gap: 8px;
  margin: var(--space-4) 0;
  justify-content: flex-start;
}

.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.otp-input:focus { border-color: var(--color-text); }
.otp-input--error { border-color: var(--color-error); }

/* Resend line beneath the verify button */
.resend-line {
  margin-top: var(--space-3);
  font-family: var(--font-text);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.resend-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--color-brand-red);
  text-decoration: underline;
  cursor: pointer;
}

.resend-btn:disabled {
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: default;
}

/* Support contact prompt line (verify-registration.html) */
.support-line {
  margin-top: var(--space-3);
  font-family: var(--font-text);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.support-line a {
  color: var(--color-brand-red);
  text-decoration: none;
}

.support-line a:hover {
  text-decoration: underline;
}

/* Generic info banner used by verify-registration.html for "Code sent!" */
.form-info {
  display: flex;
  align-items: center;
  width: fit-content;
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: var(--text-sm);
  line-height: 1.4;
  padding: 12px 16px;
  border-radius: 6px;
  background-color: #f0faf0;
  border: 1px solid #c6e6c6;
  color: #1a7a1a;
  margin-top: 16px;
}

/* ============================================================
   Textarea — extends .form-input. Used on support.html and
   reply.html for multi-line input.
   ============================================================ */
textarea.form-input {
  min-height: 150px;
  height: auto;
  padding: 14px 16px;
  resize: vertical;
  font-family: var(--font-text);
  line-height: 1.5;
}

/* ============================================================
   Chat thread (reply.html) — message bubbles with sender
   alignment. Customer left/dark, support right/light.
   ============================================================ */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: var(--space-5);
}

.chat-bubble {
  max-width: 65%;
  padding: 16px 20px;
  border-radius: 16px;
  font-family: var(--font-text);
  font-size: var(--text-sm);
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chat-bubble__header {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.chat-bubble--customer {
  align-self: flex-start;
  background-color: var(--color-footer-bg);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.chat-bubble--customer .chat-bubble__header {
  color: #ccc;
}

.chat-bubble--support {
  align-self: flex-end;
  background-color: #f5f3ef;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-bottom-right-radius: 4px;
}

.chat-bubble--support .chat-bubble__header {
  color: var(--color-text-muted);
}

.chat-thread__empty {
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  padding: var(--space-4) 0;
}

@media (max-width: 768px) {
  .chat-bubble {
    max-width: 85%;
  }
}

/* ============================================================
   Checklist items (heading + body checkbox pattern)
   Used by claim-checklist.html. Distinct from .checkbox-item,
   which is for single-line consent checkboxes — items here
   have a bold heading + multi-line body so we align to the
   top edge instead of centring.
   ============================================================ */

.checklist-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checklist-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  cursor: pointer;
  padding-block: var(--space-2);
}

.checklist-item__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.checklist-item__heading {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.25;
  color: var(--color-text);
}

.checklist-item__body {
  font-family: var(--font-text);
  font-size: var(--font-size-consent);
  line-height: 1.5;
  color: var(--color-text);
}

/* Disabled primary button — used by the claim-checklist gate. */
.btn-primary[disabled],
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   Cookie consent banner — fixed bottom strip, dismissed via Accept,
   persistence in localStorage key `tbk_cookie_consent`. Shared across
   every LG-reskinned page; behaviour in assets/js/cookie-banner.js.
   ============================================================ */

.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-consent__text { flex: 1; min-width: 200px; margin: 0; }
.cookie-consent__text a { color: var(--color-accent); text-decoration: underline; }

.cookie-consent__btn {
  background: var(--color-brand-red);
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-text);
}

/* ============================================================
   Pre-flight loading state — hides <main> behind a centred
   spinner until an async page-init request resolves. Used by
   reupload.html (get-reupload-state) and verify-otp.html
   (lookup-guarantee-entry + send-otp). Add `.preflight-loading`
   to <body> on init; remove when ready.
   ============================================================ */

.preflight-loading main { visibility: hidden; }
.preflight-spinner {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}
.preflight-loading .preflight-spinner { display: flex; }
.preflight-spinner__circle {
  width: 32px; height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-brand-red);
  border-radius: 50%;
  animation: preflight-spin 0.8s linear infinite;
}
@keyframes preflight-spin { to { transform: rotate(360deg); } }

/* ============================================================
   In-button progress spinner — shown inside .btn-primary while a
   submit/verify request is in flight. White spinner against the
   brand-red button. Used by verify-otp, verify-registration,
   support (and any future submit-with-progress button).
   ============================================================ */

.btn-progress-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
