/* This stylesheet is loaded only by the guided forms. The shared site supplies Public and Plex. */
:root {
  color-scheme: light;
  --bg: #f8f6f2;
  --panel: #fffdfa;
  --text: #292331;
  --muted: #5c5362;
  --accent: #563867;
  --line: #d9d1dc;
  --tint: #f0eaf4;
  --green: #345743;
  --warn: #794323;
  --radius: 14px;
}
/* Not a look: pulling the page down on a phone must not offer a reload. A reload clears the answers and, once the
   form was handed back, the result (seen on a real Android phone, 2026-11-25). */
html { overscroll-behavior-y: contain; }
.guided { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); }
.guided [hidden] { display: none !important; }
.guided #main { flex: 1; min-width: 0; }
.guided :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #684091; outline-offset: 3px; }
.guided :is(h1, h2, h3, p, a, button, label, summary, li, small) { overflow-wrap: anywhere; }
.guided :is(a, button, summary) { min-height: 44px; min-width: 44px; }
.guided a { display: inline-flex; align-items: center; max-width: 100%; color: var(--accent); text-decoration: underline; text-underline-offset: .19em; }
.guided .skip { position: absolute; z-index: 5; padding: 8px 16px; background: white; }
.guided .skip:not(:focus) { clip-path: inset(100%); width: 1px; height: 1px; overflow: hidden; }
.guided .skip:focus { inset: 4px auto auto 4px; transform: none; }
.guided .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.guided .landing-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.guided :is(.header-inner, .welcome, .guided-footer) { width: min(calc(100% - 36px), 1120px); margin-inline: auto; }
.guided .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; }
.guided .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.guided .brand__name { font-size: 24px; font-weight: 600; letter-spacing: -.065em; }
.guided :is(.brand__mark, .brand__period) { color: var(--accent); }
.guided .context-label, .guided .scope, .guided .page-place, .guided .progress-line { color: var(--muted); font: 12px/1.5 var(--mono); }
.guided .eyebrow { margin: 0; color: var(--accent); font: 600 12px/1.5 var(--mono); letter-spacing: .065em; text-transform: uppercase; }
.guided h1, .guided h2, .guided h3 { color: var(--text); font-family: var(--sans); font-weight: 550; text-wrap: balance; }
.guided h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.06; letter-spacing: -.055em; }
.guided h2 { font-size: clamp(21px, 3vw, 30px); line-height: 1.2; letter-spacing: -.035em; }
.guided h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.02em; }
.guided .welcome { padding-block: 22px 44px; }
.guided .hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 27%);
  gap: 16px 6px; align-items: center; padding: 22px 18px;
  background: #f1ecf4; border: 1px solid #dcd1e2; border-radius: 18px;
}
.hero-heading { min-width: 0; }
.guided .welcome h1 { margin: 10px 0 8px; font-size: clamp(34px, 5.8vw, 74px); }
.guided .form-name { color: #4f4257; font-size: clamp(17px, 2vw, 25px); line-height: 1.3; letter-spacing: -.027em; }
.hero-art { width: 112%; max-width: none; height: auto; justify-self: center; }
.hero-start { grid-column: 1/-1; min-width: 0; }
.guided .lead { margin: 0; max-width: 49ch; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; color: #49404e; }
.guided .offer-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin: 18px 0 15px; color: var(--text); font-size: 15px; }
.guided .amount, .guided .price-heading { color: var(--accent); font: 550 clamp(27px, 3vw, 35px)/1.2 var(--sans); letter-spacing: -.045em; }
.guided .fee-note { flex-basis: 100%; margin-top: 2px; font-size: 14px; color: var(--muted); }
.guided .primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 48px; max-width: 100%; padding: 11px 20px; border: 1px solid var(--accent); border-radius: 8px; color: #fff; background: var(--accent); font: 600 16px/1.4 var(--sans); text-decoration: none; text-align: left; cursor: pointer; }
.guided .primary:hover:not(:disabled) { background: #40274f; }
.guided .primary span { font: 21px/1 var(--sans); }
.hero-start .primary { margin-top: 6px; }
.guided :is(button, select):disabled { color: var(--muted); background: #eee9ef; border-color: #aa9fb0; cursor: default; }
.welcome-details { display: grid; gap: 16px 40px; margin: 22px 0 0; }
.guided .before h2 { font-size: 22px; }
.guided .before p, .guided .body-copy, .guided .micro, .guided .picture-message { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
/* The link keeps its full hit box but contributes only one text line to the paragraph. */
.guided #agency-source { margin-block: min(0px, calc((1lh - 44px) / 2)); }
.guided .scope, .guided .micro, .guided .picture-message { font-size: 14px; }
.guided .before .scope { margin-top: 6px; color: var(--muted); font: 12px/1.5 var(--mono); }
.disclosures { min-width: 0; }
.guided details { min-width: 0; }
.guided summary { display: list-item; cursor: pointer; color: var(--accent); font-weight: 550; padding-block: 12px; }
.guided :is(.sample-preview, .privacy-details) { border-block-end: 1px solid var(--line); }
.guided :is(.sample-preview, .privacy-details)[open] { padding-bottom: 12px; }
.guided :is(.sample-preview, .privacy-details) > summary { padding-block: 15px; }
.guided .disclosures { border-top: 1px solid var(--line); }
.guided .guided-footer { padding-block: 12px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.guided-footer > div, .guided-footer nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.guided-footer details { max-width: 410px; }
.guided-footer details > label { display: block; margin-block: 8px 4px; }
.guided .flow { width: min(calc(100% - 32px), 760px); margin: 22px auto 44px; padding: clamp(18px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: flow-root; }
.flow > h1 { margin: 12px 0; font-size: clamp(30px, 4vw, 46px); }
.step-art { float: right; width: clamp(44px, 9vw, 76px); height: auto; margin: -4px -4px 4px 8px; }
.guided .progress-line, .gallery-controls, .actions, .row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.progress-line, .row-top { justify-content: space-between; }
.guided progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 6px; overflow: hidden; background: var(--line); color: var(--accent); margin: 8px 0 20px; }
.guided progress::-webkit-progress-bar { background: var(--line); }
.guided progress::-webkit-progress-value { background: var(--accent); }
.guided progress::-moz-progress-bar { background: var(--accent); }
.entry-form { margin-top: 20px; }
.guided fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.control-group { display: grid; gap: 10px; }
.control-group label:not(.choice-line) { display: grid; gap: 5px; }
.guided :is(input:not([type="checkbox"], [type="radio"]), select, textarea) { width: 100%; min-width: 0; min-height: 48px; padding: 10px; color: var(--text); background: #fff; border: 1px solid #8b7c90; border-radius: 6px; font: 16px/1.5 var(--sans); color-scheme: light; }
.guided textarea { resize: vertical; min-height: 110px; }
.guided textarea.masked { -webkit-text-security: disc; }
.choice-options[open] { display: grid; gap: 8px; }
.guided .choice-line, .guided .check-line { display: flex; gap: 12px; align-items: center; min-height: 48px; cursor: pointer; }
.choice-line { padding: 10px 14px; border: 1px solid #938698; border-radius: 7px; background: #fff; }
.choice-line:has(:checked) { background: var(--tint); border-color: var(--accent); box-shadow: inset 3px 0 var(--accent); }
.guided :is(input[type="radio"], input[type="checkbox"]) { accent-color: var(--accent); width: 20px; height: 20px; flex: none; margin: 0; }
.guided .text-button { display: inline-flex; align-items: center; width: fit-content; padding: 4px; border: 0; background: transparent; color: var(--accent); font: 500 15px/1.4 var(--sans); text-align: left; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.guided .actions { margin-top: 22px; }
.entry-form .actions { position: sticky; bottom: var(--keyboard-inset, auto); background: var(--panel); }
.guided .reference, .guided .attention, .guided .notice { padding: 14px 16px; margin: 16px 0; background: var(--tint); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; }
.guided .reference :is(blockquote, p), .attention p { margin: 5px 0; line-height: 1.55; }
.guided .reference h2, .guided .attention h2 { font-size: 19px; }
.guided .reference small { color: var(--muted); }
.option-definition { margin-left: 10px; }
.guided .attention { border-color: #a36334; background: #fbefdf; color: #593b21; }
.guided .notice { border-color: #587763; background: #eaf1e9; color: var(--green); }
.guided :is(.review-list, .simple-list, .field-list, .work-steps) { list-style: none; padding: 0; }
.guided .review-list { margin-top: 18px; }
.review-item, .simple-list li { border-block-start: 1px solid var(--line); padding: 9px 0; }
.guided .review-item h2 { flex: 1; font-size: 17px; }
.guided .review-item p { color: var(--muted); white-space: pre-line; }
.guided .terms-box { clear: both; margin-top: 20px; padding: clamp(14px, 3vw, 26px); background: #f6f2f7; border: 1px solid var(--line); border-radius: 10px; }
.guided .price-caption { font-weight: 550; margin: 3px 0 14px; }
.terms-box .check-line { border-top: 1px solid var(--line); margin-top: 16px; padding-block: 10px; }
.payment-reference { display: block; overflow-wrap: anywhere; user-select: all; }
.guided .page-gallery { display: flex; position: relative; width: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 12px 0 8px; }
.guided .page-card { margin: 0; min-width: 0; flex: 0 0 100%; scroll-snap-align: start; }
.page-card figcaption { margin-bottom: 8px; color: var(--muted); font: 12px/1.5 var(--mono); }
.guided .page-picture { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: white; }
.gallery-controls { justify-content: center; }
.guided .page-key { width: 46px; border-radius: 6px; border: 1px solid #897791; background: var(--panel); color: var(--accent); font-size: 20px; cursor: pointer; }
.guided .field-headings { display: none; }
.guided .field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.guided .field-label { grid-column: 1/-1; font-weight: 550; }
.field-label small { display: block; font: 12px/1.5 var(--mono); color: var(--muted); }
.guided :is(.field-label, .field-value, .field-reason, .blank-group li) { min-width: 0; overflow-wrap: anywhere; }
.guided .field-row.issue { padding-inline: 12px; background: #fbefdf; border-left: 3px solid #a36334; }
.field-reason { grid-column: 1/-1; color: var(--warn); }
.readback-state { align-self: start; font-size: 13px; padding: 3px 7px; border-radius: 5px; color: var(--green); background: #e5efe3; }
.issue .readback-state { color: #6e361e; background: #f6ddc9; }
.blank-group { border-bottom: 1px solid var(--line); }
.blank-group summary .body-copy { display: block; margin-top: 3px; font-weight: 400; }
.guided :is(.readback, .instructions, .download-area) { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.readback .field-list + h2 { margin-top: 20px; }
.guided .work-steps { margin: 18px 0; }
.work-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.work-steps .current { color: var(--accent); font-weight: 600; }
.work-steps .complete { color: var(--green); }
.step-symbol { width: 26px; text-align: center; background: var(--tint); border-radius: 4px; }
.option-list { display: grid; gap: 8px; max-height: min(52vh, 24rem); overflow: auto; padding: 6px; }
.choice-options > summary { padding-inline: 12px; border: 1px solid #938698; border-radius: 6px; background: #fff; }
@media (max-width: 500px) {
  .guided .hero { grid-template-columns: minmax(0, 1fr) minmax(84px, 34%); gap: 9px 6px; }
  .hero-heading { display: contents; }
  .hero-heading .eyebrow, .hero-heading .form-name { grid-column: 1/-1; }
  .guided .hero-heading h1 { grid-row: 2; margin: 0; }
  .guided .hero-art { grid-column: 2; grid-row: 2; width: 116%; }
  .hero-start { margin-top: 6px; }
  .guided .hero .primary, .guided .terms-box .primary { width: 100%; }
  .flow .actions .primary { flex: 1 1 auto; }
  .welcome-details .disclosures { order: -1; }
}
@media (min-width: 680px) {
  .guided :is(.header-inner, .welcome, .guided-footer) { width: min(calc(100% - 72px), 1120px); }
  .guided .header-inner { min-height: 72px; }
  .guided .welcome { padding-block: clamp(34px, 4vw, 62px) 64px; }
  .guided .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 12px; padding: clamp(28px, 4.4vw, 64px); }
  .hero-heading { align-self: end; }
  .hero-art { width: 100%; grid-column: 2; grid-row: 1/3; }
  .hero-start { grid-column: 1; align-self: start; }
  .welcome-details { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 84px); margin-top: 32px; }
  .guided .flow { margin-block: 40px 64px; }
  .guided .name-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guided :is(.field-headings, .field-row) { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(95px, auto); gap: 6px 16px; }
  .guided .field-headings { padding: 8px 0; color: var(--muted); font: 12px/1.5 var(--mono); }
  .guided .field-label { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
