/* Life First feedback page design tokens and shared styles. Mirrors src/email/brand.ts. */
:root {
  --lf-canvas: #b8e2fa;
  --lf-card: #ffffff;
  --lf-top-rule: #160853;
  --lf-divider: #d5d9dd;
  --lf-heading: #160853;
  --lf-question: #243569;
  --lf-eyebrow: #3669b0;
  --lf-body: #1a1a1a;
  --lf-muted: #4a5560;
  --lf-link: #2a5db0;
  --lf-field-fill: #f4faff;
  --lf-field-border: #77a6d5;
  --lf-selected-fill: #243569;
  --lf-selected-text: #ffffff;
  --lf-selected-halo: #b8e2fa;
  --lf-focus: #160853;
  --lf-error: #a30000;
  --lf-ring-1: #b8e2fa;
  --lf-ring-2: #98c4e8;
  --lf-ring-3: #77a6d5;
  --lf-ring-4: #5787c3;
  --lf-ring-5: #3669b0;
  --lf-ring-6: #305898;
  --lf-ring-7: #2a4681;
  --lf-ring-8: #243569;
  --lf-ring-9: #1d1f5e;
  --lf-ring-10: #160853;
  --lf-sans: Arial, Helvetica, sans-serif;
  --lf-serif: "Times New Roman", Georgia, serif;
  --lf-ring-size: 50px;
  --lf-ring-border: 3px;
  --lf-tap: 44px;
}

body.lf { margin: 0; background: var(--lf-canvas); color: var(--lf-body); font: 16px/1.5 var(--lf-sans); }
.lf-wrap { max-width: 740px; margin: 0 auto; padding: 48px 16px 40px; }
.lf-card { background: var(--lf-card); border-top: 8px solid var(--lf-top-rule); border-radius: 16px; overflow: hidden; }
.lf-header { display: flex; align-items: center; gap: 16px; padding: 24px 48px; border-bottom: 1px solid var(--lf-divider); }
.lf-header .lf-logo-bgt { width: 56px; height: auto; }
.lf-header .lf-logo-lf { width: 170px; height: auto; padding-left: 16px; border-left: 1px solid var(--lf-divider); }
.lf-content { padding: 40px 48px 48px; }
.lf-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lf-eyebrow); }
.lf-title { margin: 0 0 40px; font: 400 44px/1.1 var(--lf-serif); color: var(--lf-heading); overflow-wrap: anywhere; }
.lf-q { margin: 0; padding: 0; font: 700 20px/1.3 var(--lf-sans); color: var(--lf-question); }
.lf-help { margin: 4px 0 12px; font-size: 15px; color: var(--lf-muted); }
.lf-note { margin: 8px 0 0; font-size: 13px; color: var(--lf-muted); }
.lf-footer { padding: 24px 48px; border-top: 1px solid var(--lf-divider); font-size: 13px; color: var(--lf-muted); }
.lf-footer p { margin: 0 0 10px; }
.lf-footer a, .lf-wrap a { color: var(--lf-link); }
.lf-legal-item { margin-left: 16px; }
.lf-tagline { margin: 32px 0 0; text-align: center; font: 400 24px/1.2 var(--lf-serif); color: var(--lf-heading); }

/* Rating rings: native radios in a fieldset. Radio is visually hidden but stays focusable. */
fieldset.lf-scale { border: 0; margin: 0 0 40px; padding: 0; min-width: 0; }
.lf-rings { display: grid; grid-template-columns: repeat(10, var(--lf-ring-size)); gap: 12px; margin: 0 0 12px; padding: 0; }
.lf-ring { position: relative; }
.lf-ring input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lf-ring label {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: var(--lf-ring-size); height: var(--lf-ring-size); min-width: var(--lf-tap); min-height: var(--lf-tap);
  border: var(--lf-ring-border) solid var(--ring, var(--lf-ring-5)); border-radius: 50%;
  background: var(--lf-card); color: var(--lf-question); font: 700 18px/1 var(--lf-sans); cursor: pointer;
}
.lf-ring:nth-child(1) { --ring: var(--lf-ring-1); } .lf-ring:nth-child(2) { --ring: var(--lf-ring-2); }
.lf-ring:nth-child(3) { --ring: var(--lf-ring-3); } .lf-ring:nth-child(4) { --ring: var(--lf-ring-4); }
.lf-ring:nth-child(5) { --ring: var(--lf-ring-5); } .lf-ring:nth-child(6) { --ring: var(--lf-ring-6); }
.lf-ring:nth-child(7) { --ring: var(--lf-ring-7); } .lf-ring:nth-child(8) { --ring: var(--lf-ring-8); }
.lf-ring:nth-child(9) { --ring: var(--lf-ring-9); } .lf-ring:nth-child(10) { --ring: var(--lf-ring-10); }
/* Selected: dark fill, white number, pale halo. */
.lf-ring input:checked + label { background: var(--lf-selected-fill); border-color: var(--lf-selected-fill); color: var(--lf-selected-text); box-shadow: 0 0 0 4px var(--lf-selected-halo); }
/* Focus: navy outline with white gap. Distinct from the halo so a focused selected ring shows both. */
.lf-ring input:focus-visible + label { outline: 3px solid var(--lf-focus); outline-offset: 3px; }
@media (forced-colors: active) {
  .lf-ring input:checked + label { outline: 3px solid Highlight; }
}

/* Pale-blue fields and navy action. */
.lf-field { margin: 0 0 32px; }
.lf-field textarea { display: block; width: 100%; min-height: 130px; box-sizing: border-box; padding: 12px 14px; font: inherit; color: var(--lf-body); background: var(--lf-field-fill); border: 2px solid var(--lf-field-border); border-radius: 10px; resize: vertical; }
.lf-field textarea:focus-visible, .lf-submit:focus-visible { outline: 3px solid var(--lf-focus); outline-offset: 2px; }
.lf-submit { min-width: 270px; min-height: var(--lf-tap); padding: 16px 24px; border: 0; border-radius: 6px; background: var(--lf-question); color: #fff; font: 700 18px/1.2 var(--lf-sans); cursor: pointer; }
.lf-submit:disabled { opacity: 0.6; cursor: default; }
.lf-error { color: var(--lf-error); font-weight: 700; margin: 8px 0 0; overflow-wrap: anywhere; }
.lf-status { margin: 0 0 16px; color: var(--lf-muted); }
.lf-content form > .lf-note { margin-bottom: 12px; }
.lf-policy main { overflow-wrap: anywhere; }
.lf-policy h2, .lf-policy h3 { color: var(--lf-heading); line-height: 1.3; }
.lf-policy li { margin: .4rem 0; }

@media (max-width: 739px) {
  .lf-rings { grid-template-columns: repeat(5, minmax(var(--lf-tap), 1fr)); justify-items: center; column-gap: clamp(4px, 2vw, 12px); }
  .lf-ring label { width: clamp(var(--lf-tap), 13vw, var(--lf-ring-size)); height: clamp(var(--lf-tap), 13vw, var(--lf-ring-size)); }
}

@media (max-width: 520px) {
  .lf-wrap { padding: 16px 12px 32px; }
  .lf-header, .lf-content, .lf-footer { padding-left: 20px; padding-right: 20px; }
  .lf-content { padding-top: 28px; padding-bottom: 32px; }
  .lf-title { font-size: 32px; margin-bottom: 28px; }
  .lf-submit { width: 100%; min-width: 0; }
  .lf-legal-item { margin: 0 16px 0 0; }
}
