/* All styles are scoped to the shortcode. No coloured glow, including theme overrides. */
.ofa-form {
  --ofa-blue: #075bc5;
  --ofa-ink: #191919;
  --ofa-muted: #616161;
  --ofa-line: #dededb;
  --ofa-surface: #f7f7f5;
  max-width: 800px;
  margin: 32px auto;
  padding: clamp(24px, 5vw, 48px);
  background: #fff;
  border: 1px solid var(--ofa-line);
  border-radius: 16px;
  color: var(--ofa-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  box-shadow: none !important;
  color-scheme: light;
  isolation: isolate;
}
.ofa-form *, .ofa-form *::before, .ofa-form *::after { box-sizing: border-box; }
.ofa-form [hidden] { display: none !important; }
.ofa-form :is(input, select, textarea, button, summary, a, label),
.ofa-form :is(input, select, textarea, button, summary, a, label):is(:hover, :focus, :focus-visible, :active, :checked, :valid, :invalid) {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}
.ofa-form .ofa-kicker { display: block; color: var(--ofa-muted); font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ofa-form h2 { color: var(--ofa-ink); font-size: clamp(27px, 3.5vw, 34px); line-height: 1.2; letter-spacing: -.025em; font-weight: 700; margin: 12px 0 16px; }
.ofa-form h3 { color: var(--ofa-ink); font-size: 19px; font-weight: 650; line-height: 1.4; margin: 0 0 24px; }
.ofa-form p { color: var(--ofa-muted); font-size: 16px; font-weight: 400; line-height: 1.6; margin: 0 0 20px; }
.ofa-form .ofa-heading > p { max-width: 62ch; }
.ofa-form .ofa-heading .ofa-reassurance { font-size: 14px; margin: 0; }
.ofa-form .ofa-progress { margin: 32px 0; font-size: 13px; color: var(--ofa-muted); }
.ofa-form progress { display: block; width: 100%; height: 4px; margin: 12px 0 0; border: 0; border-radius: 2px; overflow: hidden; background: #e8e8e5; appearance: none; }
.ofa-form progress::-webkit-progress-bar { background: #e8e8e5; }
.ofa-form progress::-webkit-progress-value { background: var(--ofa-blue); }
.ofa-form progress::-moz-progress-bar { background: var(--ofa-blue); }
.ofa-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ofa-form [data-step] > legend { color: var(--ofa-ink); font-size: 21px; font-weight: 650; line-height: 1.4; margin: 0 0 10px; padding: 0; max-width: 100%; }
.ofa-form .ofa-hint { color: var(--ofa-muted); font-size: 14px; line-height: 1.55; font-weight: 400; margin: 0 0 20px; }
.ofa-form .ofa-field { margin: 0 0 28px; }
.ofa-form .ofa-field > label { color: var(--ofa-ink); display: block; font-size: 15px; line-height: 1.45; font-weight: 600; margin: 0 0 8px; }
.ofa-form .ofa-meta { display: inline; color: var(--ofa-muted); font-size: 13px; font-weight: 400; line-height: 1.5; margin-left: 8px; letter-spacing: normal; text-transform: none; }
.ofa-form .ofa-field-hint { color: var(--ofa-muted); font-size: 14px; font-weight: 400; line-height: 1.55; margin: 8px 0 0; }
.ofa-form input:not([type="checkbox"]), .ofa-form select, .ofa-form textarea {
  display: block;
  width: 100%; max-width: 100%; min-height: 48px;
  border: 1px solid #858581 !important; border-radius: 6px;
  padding: 12px 14px;
  background-color: #fff !important; color: var(--ofa-ink) !important;
  font-family: inherit !important; font-size: 16px !important; font-weight: 400 !important; line-height: 1.5 !important;
  margin: 0 !important;
}
.ofa-form select { padding-right: 32px; }
.ofa-form textarea { resize: vertical; min-height: 108px; }
.ofa-form input::placeholder, .ofa-form textarea::placeholder { color: #6a6a67; opacity: 1; }
.ofa-form :is(input, select, textarea):focus { border-color: #171717 !important; outline: 2px solid #171717 !important; outline-offset: 2px; }
.ofa-form :is(input, select, textarea, button, summary, a):focus-visible { outline: 2px solid #171717 !important; outline-offset: 4px; }
.ofa-form :is([data-step], [data-outcome], .ofa-message):focus { outline: none; }
.ofa-form :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid #171717 !important; }
.ofa-form .ofa-field-error { color: #171717; font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.ofa-form .ofa-services { display: grid; gap: 10px; margin: 0 0 28px; }
.ofa-form .ofa-services label, .ofa-form .ofa-choices label {
  display: flex; align-items: flex-start; gap: 12px;
  min-height: 52px; padding: 14px 16px;
  border: 1px solid #c3c3bf; border-radius: 8px;
  background: #fff; color: var(--ofa-ink);
  font-size: 15px; line-height: 1.5; font-weight: 500;
  margin: 0; cursor: pointer;
}
.ofa-form .ofa-services label:hover, .ofa-form .ofa-choices label:hover { border-color: #525250; background: #fafaf9; }
.ofa-form .ofa-services label:has(input:checked), .ofa-form .ofa-choices label:has(input:checked) { background: #f1f1ef; border-color: #242424; }
.ofa-form input[type="checkbox"] {
  appearance: none !important; -webkit-appearance: none !important;
  display: inline-grid; place-content: center; flex: 0 0 20px;
  width: 20px; height: 20px; min-width: 20px; min-height: 20px;
  padding: 0 !important; margin: 2px 0 0 !important;
  border: 1px solid #747471 !important; border-radius: 4px !important;
  background: #fff !important; cursor: pointer; vertical-align: middle;
}
.ofa-form input[type="checkbox"]::before { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); margin-top: -3px; }
.ofa-form input[type="checkbox"]:checked { background: #242424 !important; border-color: #242424 !important; }
.ofa-form input[type="checkbox"]:checked::before { transform: rotate(45deg) scale(1); }
.ofa-form input[type="checkbox"]::after { content: none !important; }
.ofa-form .ofa-options { margin: 28px 0; }
.ofa-form .ofa-options legend { color: var(--ofa-ink); font-size: 16px; font-weight: 600; line-height: 1.5; margin: 0 0 4px; padding: 0; }
.ofa-form .ofa-options .ofa-hint { margin-bottom: 14px; }
.ofa-form .ofa-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ofa-form .ofa-choices label { font-size: 14px; padding: 12px; min-height: 48px; }
.ofa-form .ofa-extra { border-top: 1px solid var(--ofa-line); padding: 0; margin: 0; }
.ofa-form .ofa-extra > summary { color: var(--ofa-ink); font-size: 15px; font-weight: 500; line-height: 1.5; padding: 20px 0; cursor: pointer; }
.ofa-form .ofa-extra[open] > summary { margin-bottom: 4px; }
.ofa-form .ofa-extra > .ofa-options:first-of-type { margin-top: 0; }
.ofa-form .ofa-extra > .ofa-field:last-child { margin-bottom: 24px; }
.ofa-form [data-service] + [data-service] { border-top: 1px solid var(--ofa-line); margin-top: 32px; padding-top: 32px; }
.ofa-form .ofa-check { display: flex; align-items: flex-start; gap: 12px; color: var(--ofa-ink); font-size: 14px; font-weight: 400; line-height: 1.55; cursor: pointer; }
.ofa-form .ofa-summary { border: 1px solid var(--ofa-line); border-radius: 8px; background: var(--ofa-surface); padding: 16px 18px; margin: 8px 0 24px; }
.ofa-form .ofa-summary summary { color: var(--ofa-ink); font-size: 15px; font-weight: 500; cursor: pointer; }
.ofa-form dl { margin: 16px 0 0; }
.ofa-form dt { color: var(--ofa-muted); font-size: 13px; font-weight: 500; margin: 16px 0 4px; }
.ofa-form dd { color: var(--ofa-ink); font-size: 14px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ofa-form .ofa-small { font-size: 13px; line-height: 1.65; }
.ofa-form .ofa-submit-note { margin: 16px 0 0; }
.ofa-form .ofa-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ofa-line); }
.ofa-form button { min-height: 48px; padding: 12px 24px; border: 1px solid var(--ofa-blue); border-radius: 7px; background: var(--ofa-blue); color: #fff; font-family: inherit; font-size: 16px; line-height: 1.5; font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: normal; }
.ofa-form button:hover { background: #064da6; border-color: #064da6; color: #fff; }
.ofa-form button[data-back], .ofa-form button[data-status] { background: #fff; color: var(--ofa-ink); border-color: #858581; }
.ofa-form button[data-back] { margin-right: auto; }
.ofa-form button[data-back]:hover, .ofa-form button[data-status]:hover { background: var(--ofa-surface); border-color: #242424; color: var(--ofa-ink); }
.ofa-form button:disabled { opacity: .5; cursor: not-allowed; }
.ofa-form .ofa-message { border: 1px solid #858581; border-left: 4px solid #242424; border-radius: 6px; padding: 16px; background: var(--ofa-surface); color: var(--ofa-ink); font-size: 14px; margin-top: 24px; white-space: pre-wrap; }
.ofa-form .ofa-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ofa-form [data-reference] { overflow-wrap: anywhere; }
.ofa-form a { color: var(--ofa-blue); text-decoration: underline; text-underline-offset: 3px; }
.ofa-form [data-outcome] { border-top: 0; padding-top: 0; margin-top: 0; }
.ofa-form [data-outcome] h3 { font-size: 24px; margin-bottom: 12px; }
.ofa-form [data-outcome] .ofa-reference { font-size: 14px; }
@media (max-width: 600px) {
  .ofa-form { margin: 16px auto; padding: 24px 20px; border-radius: 12px; }
  .ofa-form .ofa-choices { grid-template-columns: 1fr; }
  .ofa-form .ofa-progress { margin: 28px 0; }
  .ofa-form [data-step] > legend { font-size: 20px; }
  .ofa-form .ofa-actions { gap: 12px; }
  .ofa-form .ofa-actions button { padding: 12px 16px; }
  .ofa-form .ofa-actions button[data-next], .ofa-form .ofa-actions button[data-submit] { flex: 1; }
  .ofa-form .ofa-services label { padding: 14px 12px; }
}
@media (forced-colors: active) {
  .ofa-form input[type="checkbox"] { appearance: auto !important; -webkit-appearance: auto !important; }
  .ofa-form input[type="checkbox"]::before { display: none; }
  .ofa-form button, .ofa-form input, .ofa-form select, .ofa-form textarea { forced-color-adjust: auto; }
}

/* Once started, keep attention on the current task rather than repeating the introduction. */
.ofa-form[data-current-step]:not([data-current-step="0"]) .ofa-heading > p { display: none; }
.ofa-form[data-current-step]:not([data-current-step="0"]) h2 { font-size: 24px; margin-bottom: 0; }
.ofa-form[data-current-step]:not([data-current-step="0"]) .ofa-progress { margin-top: 24px; }
