/* Rounded SVG strokes keep arrows consistent across fonts and platforms. */
.ui-arrow {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: currentColor;
  mask: url("/assets/arrow-right.svg") center / contain no-repeat;
  vertical-align: middle;
  transition: translate .18s ease;
}
.arrow-left { rotate: 180deg; }
.arrow-diagonal { rotate: -45deg; }
.button:hover:enabled .ui-arrow, .home-text-link:hover .ui-arrow { translate: 2px 0; }
.button:hover:enabled .arrow-left { translate: -2px 0; }

.brand-theme .site-footer { background: #fff; border: 0; }

/* Each registration step occupies one view; consent is arranged into cards. */
.registration-dialog {
  width: min(1210px, calc(100% - 40px));
  height: 690px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--card-radius);
  overflow: clip;
  box-shadow: 0 28px 90px #0e184b38;
}
.registration-dialog::backdrop, .privacy-dialog::backdrop { background: #0c153c66; backdrop-filter: blur(5px); }
.wizard-shell { grid-template-columns: 1fr; height: 100%; min-height: 0; max-height: none; }
.wizard-aside { display: none; }
.wizard-main { height: 100%; min-height: 0; max-height: none; }
.wizard-header { padding: 18px 28px 14px; flex-shrink: 0; }
.wizard-header h2 { font-size: 23px; font-weight: 720; letter-spacing: -.6px; margin-top: 0; }
.wizard-header .eyebrow { font-size: 8px; color: #8290aa; margin-bottom: 3px; }
.wizard-close { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f0f3f8; color: #687993; font-size: 25px; line-height: 1; }
.wizard-close:hover { color: #122D61; background: #e5eaf3; }
.wizard-progress { margin: 0 28px; padding-bottom: 12px; flex-shrink: 0; }
.wizard-progress button > strong { font-size: 12px; font-weight: 650; }
.wizard-progress button > span { width: 25px; height: 25px; }
.wizard-form { flex: 1; min-height: 0; }
.wizard-body { padding: 16px 28px; overflow: visible; flex: 1; min-height: 0; }
.wizard-step-heading { margin-bottom: 14px; }
.wizard-step-heading .eyebrow { display: none; }
.wizard-step-heading h3 { font-size: 21px; letter-spacing: -.45px; font-weight: 680; margin-top: 0; line-height: 1.35; }
.wizard-step-heading p { font-size: 12px; margin-top: 3px; color: #6b7a92; line-height: 1.5; }
.wizard-body .notice { margin: 0 0 10px; padding: 8px 12px; font-size: 12px; }
.consent-tabs { display: none; }
.consent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wizard-body .consent-card {
  display: flex;
  flex-direction: column;
  background: #f6f8fc;
  border: 1px solid #e1e7f0;
  border-radius: var(--card-radius);
  padding: 15px 17px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.wizard-body .optional-box { background: #f5f8f4; border-color: #dfe8db; }
.wizard-body .consent-card > strong { font-size: 14px; font-weight: 720; color: #122D61; }
.wizard-body .consent-card dl { display: grid; grid-template-columns: 58px 1fr; gap: 8px 10px; margin: 12px 0; }
.wizard-body .consent-card dt { font-size: 12px; color: #61728d; }
.wizard-body .consent-card dd { margin: 0; font-size: 12px; color: #364964; font-weight: 500; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.wizard-body .consent-card dd.consent-important { font-size: 14.4px; font-weight: 400; color: #233459; }
.wizard-body .consent-card > p { font-size: 12px; font-weight: 450; color: #5c6c83; line-height: 1.5; padding: 0; margin: 0 0 12px; border: 0; word-break: keep-all; }
.wizard-body .consent-card .check-row { margin: auto 0 0; padding-top: 10px; border-top: 1px solid #dfe5ee; font-size: 12px; color: #263b5b; line-height: 1.6; }
.consent-retention { margin-top: 12px; padding: 11px 15px; background: #edf1f8; border-radius: var(--card-radius); }
.consent-retention > span { display: block; font-size: 12px; color: #60728f; margin-bottom: 3px; }
.consent-retention > strong { display: block; font-size: 14.4px; font-weight: 400; color: #233459; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.consent-bottom { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 10px; }
.wizard-body .consent-retention .check-row.age-row { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #d5deed; font-size: 12px; color: #4a5c78; line-height: 1.5; }
.wizard-body .check-row input[type="checkbox"] { width: 17px; height: 17px; margin-top: 1px; accent-color: #122D61; }
.wizard-body .policy-link { margin: 0; display: inline-flex; align-items: center; gap: 5px; padding-inline-end: 4px; font-size: 12px; color: #50658c; white-space: nowrap; }
.policy-link .ui-arrow { width: 16px; height: 16px; flex-basis: 16px; }
.wizard-body .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 20px; }
.wizard-body .form-grid .full { grid-column: 1 / -1; }
.wizard-body .field { gap: 6px; }
.wizard-body .field label, .wizard-body .field-label { font-size: 13px; font-weight: 600; color: #3b4b68; }
.wizard-body .field input:not([type="checkbox"]), .wizard-body .field select { height: 44px; padding: 10px 12px; font-size: 15px; border-color: #dce3ee; border-radius: 7px; }
.wizard-body .field small { font-size: 11px; color: #77869d; }
.wizard-body .field { min-width: 0; }
.wizard-body .field input:not([type="checkbox"]), .wizard-body .field select { width: 100%; min-width: 0; }
.custom-job-title { margin-top: 2px; }
.wizard-optional-fields { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 16px 20px; margin-top: 16px; }
.wizard-optional-fields .interest-field { grid-column: auto; grid-row: auto; }
.wizard-body .interest-chip { padding: 8px 11px; border-color: #dce4ee; border-radius: 6px; font-size: 12px; background: #f6f8fc; }
.wizard-body .interest-chip:has(input:checked) { background: #edf3e8; border-color: #a6bd93; }
.wizard-body .participant-review { margin: 0 0 12px; padding: 11px 14px; font-size: 12px; background: #f1f4f9; border-radius: var(--card-radius); }
.wizard-body .participant-review strong { font-size: 14px; overflow-wrap: anywhere; }
.wizard-body .optional-notice { font-size: 12px; line-height: 1.6; margin: 0; }
.wizard-body .message { margin: 8px 0 0; padding: 8px 12px; font-size: 12px; }
.wizard-footer { padding: 12px 28px 16px; flex-shrink: 0; }
.wizard-footer .button { min-height: 42px; padding: 9px 17px; font-size: 12px; border-radius: 8px; gap: 14px; }
.wizard-footer #step-counter { font-size: 11px; }
.wizard-main:has(.wizard-success:not([hidden])) { min-height: 0; }
.wizard-success { padding: 20px 28px; min-height: 0; flex: 1; overflow: visible; }
.wizard-success .success-icon { width: 52px; height: 52px; font-size: 25px; margin-bottom: 14px; }
.wizard-success h3 { font-size: 23px; margin-block: 10px; }
.wizard-success > p:not(.eyebrow) { font-size: 13px; margin-top: 10px; line-height: 1.6; }
.wizard-success .reference-box { padding: 16px; margin: 18px auto; max-width: 470px; }
.wizard-success .success-actions .button { margin-top: 12px; }

/* Complete policy text stays accessible through four scroll-free panels. */
.privacy-dialog { width: min(1012px, calc(100% - 40px)); height: 650px; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--card-radius); color: #36465f; overflow: clip; box-shadow: 0 28px 90px #0e184b38; }
.privacy-dialog[open] { display: flex; flex-direction: column; }
.privacy-dialog-header { padding: 23px 28px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-shrink: 0; }
.privacy-dialog-header .eyebrow { color: #8191ac; font-size: 8px; margin-bottom: 5px; }
.privacy-dialog-header h2 { font-size: 25px; font-weight: 720; letter-spacing: -.6px; }
.privacy-dialog-header p { font-size: 12px; color: #6c7e98; margin-top: 3px; }
.privacy-tabs { margin: 0 28px; padding: 4px; display: grid; grid-template-columns: repeat(4, 1fr); background: #edf1f7; border-radius: 10px; flex-shrink: 0; }
.privacy-tabs button { padding: 9px 8px; background: transparent; border-radius: 7px; color: #6d7e98; font-size: 13px; font-weight: 600; }
.privacy-tabs button[aria-selected="true"] { background: #fff; color: #122D61; box-shadow: 0 2px 7px #122D610d; }
.privacy-dialog-content { flex: 1; min-height: 0; padding: 21px 28px; }
.privacy-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.privacy-panel:first-child, .privacy-panel:last-child { grid-template-columns: 1fr; }
.privacy-panel section { padding: 18px; background: #f7f9fc; border: 1px solid #e5eaf2; border-radius: var(--card-radius); }
.privacy-panel h2 { font-size: 15px; font-weight: 680; color: #122D61; letter-spacing: -.2px; margin-bottom: 12px; }
.privacy-panel p { font-size: 14px; line-height: 1.7; margin-top: 9px; word-break: keep-all; overflow-wrap: anywhere; }
.privacy-panel p strong { font-weight: 650; }
.privacy-panel .policy-list { font-size: 14px; line-height: 1.6; margin: 12px 0 0; padding: 12px 0 0; border-bottom: 0; grid-template-columns: 92px 1fr; gap: 10px 14px; }
.privacy-panel .policy-list dt { font-size: 12px; color: #74859e; }
.privacy-panel .policy-version { grid-column: 1 / -1; margin: 0 !important; padding: 0 2px; border: 0; font-size: 11px !important; line-height: 1.6; color: #728099; word-break: break-all; }
.privacy-panel[data-policy-panel="2"] section:last-child { grid-column: 1 / -1; }
.privacy-dialog-footer { display: flex; align-items: center; gap: 18px; padding: 13px 28px 19px; flex-shrink: 0; }
.privacy-dialog-footer > span { color: #8492a9; font-size: 11px; margin-right: auto; }
.privacy-dialog-footer a { display: inline-flex; gap: 4px; align-items: center; color: #62769a; font-size: 12px; }
.privacy-dialog-footer .ui-arrow { width: 16px; height: 16px; flex-basis: 16px; }
.privacy-dialog-footer .button { min-height: 40px; padding: 8px 22px; font-size: 12px; background: #122D61; }
.privacy-detail-controls { display: flex; gap: 3px; }
.privacy-detail-controls button { display: grid; place-items: center; width: 26px; height: 30px; border-radius: 6px; color: #122D61; background: #eff3f9; }
.privacy-detail-controls .ui-arrow { width: 16px; height: 16px; flex-basis: 16px; }
.policy-page { max-width: 900px; }
.policy-page h1 { font-weight: 720; letter-spacing: -.8px; }
.policy-page h2 { font-weight: 650; }
.policy-page p, .policy-page .policy-list { font-size: 15px; line-height: 1.8; color: #485b75; }
.policy-page section { padding: 24px; border-radius: var(--card-radius); background: #f7f9fc; margin-top: 22px; }
.policy-page .policy-list { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }

@media (min-width: 701px) and (max-height: 680px) {
  .registration-dialog { max-height: calc(100dvh - 16px); }
  .wizard-header { padding: 12px 24px 10px; }
  .wizard-header .eyebrow { display: none; }
  .wizard-progress { margin-inline: 24px; padding-bottom: 9px; }
  .wizard-body { padding: 8px 24px; }
  .wizard-step-heading { margin-bottom: 10px; }
  .wizard-step-heading h3 { font-size: 20px; }
  .wizard-panel[data-wizard-panel="0"] .wizard-step-heading p { display: none; }
  .wizard-body .consent-card { padding: 12px 14px; }
  .wizard-body .consent-card dl { margin-block: 9px; gap: 6px 8px; }
  .consent-retention { margin-top: 9px; padding: 9px 12px; }
  .consent-bottom { margin-top: 8px; }
  .wizard-footer { padding: 9px 24px 12px; }
  .privacy-dialog-header { padding: 15px 24px 12px; }
  .privacy-dialog-content { padding: 16px 24px; }
  .privacy-panel section { padding: 14px; }
  .privacy-panel p { font-size: 13px; line-height: 1.6; }
}

@media (max-width: 700px) {
  .registration-dialog { width: calc(100% - 24px); height: 790px; max-height: calc(100dvh - 24px); border-radius: var(--card-radius); }
  .wizard-header { padding: 16px 18px 12px; }
  .wizard-header h2 { font-size: 22px; }
  .wizard-progress { margin-inline: 18px; padding-bottom: 12px; gap: 7px; }
  .wizard-progress button { gap: 6px; }
  .wizard-progress button > strong { font-size: 11px; }
  .wizard-progress button > span { width: 22px; height: 22px; font-size: 10px; }
  .wizard-body { padding: 15px 18px; }
  .wizard-step-heading { margin-bottom: 12px; }
  .wizard-step-heading h3 { font-size: 20px; }
  .wizard-step-heading p { font-size: 12px; }
  .consent-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; margin-bottom: 10px; border-radius: 8px; background: #edf1f7; }
  .consent-tabs button { background: none; color: #6c7c97; padding: 7px; font-size: 12px; font-weight: 650; border-radius: 6px; }
  .consent-tabs button[aria-selected="true"] { background: #fff; color: #122D61; box-shadow: 0 2px 6px #122D610d; }
  .consent-tabs button span { font-weight: 450; font-size: 10px; }
  .consent-grid { grid-template-columns: 1fr; }
  .consent-grid[data-consent-view="required"] #optional-consent-card, .consent-grid[data-consent-view="optional"] #required-consent-card { display: none; }
  .wizard-body .consent-card { padding: 13px; min-height: 231px; }
  .wizard-body .consent-card dl { grid-template-columns: 53px 1fr; gap: 7px 8px; margin: 10px 0; }
  .wizard-body .consent-card dd.consent-important { font-size: 14.4px; line-height: 1.5; }
  .wizard-body .consent-card > p { font-size: 12px; margin-bottom: 10px; }
  .wizard-body .consent-card .check-row { font-size: 12px; padding-top: 9px; }
  .consent-retention { padding: 10px 12px; margin-top: 10px; }
  .consent-bottom { align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 12px; }
  .wizard-body .policy-link { font-size: 12px; }
  .wizard-body .form-grid { grid-template-columns: 1fr 1fr; gap: 17px 12px; }
  .wizard-body .form-grid .full { grid-column: 1 / -1; }
  .wizard-body .field input:not([type="checkbox"]), .wizard-body .field select { font-size: 16px; padding: 9px 10px; }
  .wizard-body .form-grid .field small { grid-column: 1 / -1; font-size: 11px; }
  .wizard-optional-fields { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
  .wizard-optional-fields .interest-field { grid-column: auto; grid-row: auto; }
  .wizard-body .interest-options { gap: 7px; }
  .wizard-body .interest-chip { padding: 7px 8px; font-size: 11px; }
  .wizard-footer { padding: 12px 18px 15px; }
  .wizard-footer .button { padding: 9px 13px; gap: 11px; font-size: 12px; }
  .wizard-success { padding: 22px 18px; }
  .wizard-success h3 { font-size: 21px; }
  .wizard-success .reference-box strong { font-size: 17px; }
  .privacy-dialog { width: calc(100% - 24px); height: 790px; max-height: calc(100dvh - 24px); border-radius: var(--card-radius); }
  .privacy-dialog-header { padding: 18px 18px 14px; gap: 10px; }
  .privacy-dialog-header h2 { font-size: 23px; }
  .privacy-dialog-header p { font-size: 12px; }
  .privacy-tabs { margin-inline: 18px; }
  .privacy-tabs button { padding: 8px 3px; font-size: 12px; }
  .privacy-dialog-content { padding: 16px 18px; }
  .privacy-panel { grid-template-columns: 1fr; gap: 12px; }
  .privacy-panel section { padding: 14px; }
  .privacy-panel h2 { font-size: 14px; margin-bottom: 9px; }
  .privacy-panel p { font-size: 13px; line-height: 1.65; margin-top: 7px; }
  .privacy-panel .policy-list { font-size: 13px; grid-template-columns: 66px 1fr; gap: 9px 10px; padding-top: 10px; }
  .privacy-panel .policy-list dt { font-size: 12px; }
  .privacy-dialog-footer { padding: 12px 18px 16px; gap: 12px; }
  .policy-page { padding-top: 32px; }
  .policy-page section { padding: 18px; }
  .policy-page p, .policy-page .policy-list { font-size: 14px; }
}
@media (max-width: 700px) and (max-height: 740px) {
  .wizard-header { padding: 12px 15px 10px; }
  .wizard-header .eyebrow { display: none; }
  .wizard-header h2 { font-size: 21px; }
  .wizard-progress { margin-inline: 15px; padding-bottom: 8px; }
  .wizard-body { padding: 10px 15px; }
  .wizard-step-heading { margin-bottom: 8px; }
  .wizard-step-heading p { display: none; }
  .consent-tabs { margin-bottom: 8px; }
  .consent-tabs button { padding-block: 5px; }
  .wizard-body .consent-card { padding: 10px; min-height: 0; }
  .wizard-body .consent-card dl { gap: 6px 7px; margin-block: 8px; }
  .wizard-body .consent-card dd.consent-important, .consent-retention > strong { font-size: 14.4px; line-height: 1.42; }
  .wizard-body .consent-card .check-row { padding-top: 7px; }
  .consent-retention { padding: 8px 10px; margin-top: 8px; }
  .consent-bottom { flex-direction: row; align-items: center; gap: 8px; margin-top: 8px; }
  .policy-link .policy-label-full { display: none; }
  .policy-link .policy-label-short { display: inline; }
  .wizard-body .policy-link { gap: 3px; }
  .wizard-footer { padding: 9px 15px 12px; }
  .wizard-body .form-grid { gap: 13px 12px; }
  .wizard-body .participant-review { margin-bottom: 9px; padding: 8px 10px; }
  .wizard-optional-fields { margin-top: 10px; gap: 11px; }
  .wizard-success { padding: 12px 15px; }
  .privacy-dialog-header { padding: 13px 15px 10px; }
  .privacy-dialog-header .eyebrow { display: none; }
  .privacy-tabs { margin-inline: 15px; }
  .privacy-dialog-content { padding: 12px 15px; }
  .privacy-panel { gap: 8px; }
  .privacy-panel section { padding: 10px; }
  .privacy-panel h2 { margin-bottom: 4px; }
  .privacy-panel p { line-height: 1.5; margin-top: 5px; }
  .privacy-dialog-footer { padding: 9px 15px 12px; }
}
.policy-label-short { display: none; }
@media (max-width: 359px), (max-width: 700px) and (max-height: 680px) {
  .registration-dialog, .privacy-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 8px); }
  .consent-tabs { grid-template-columns: repeat(3, 1fr); }
  .consent-grid[data-consent-view="retention"] { display: none; }
  .wizard-panel:not([data-consent-view="retention"]) .consent-retention { display: none; }
  .wizard-panel[data-consent-view="retention"] .consent-retention { margin-top: 0; padding: 16px; }
  .wizard-optional-fields:disabled { display: none; }
  .wizard-body .optional-notice { padding: 10px; }
  .privacy-panel.policy-paginated { grid-template-columns: 1fr; }
  .privacy-panel.policy-paginated section { grid-column: 1 / -1; }
  .privacy-dialog-content { padding: 8px 15px; }
  .privacy-panel:first-child section { padding: 8px; }
  .privacy-panel:first-child .policy-list { gap: 7px 10px; padding-top: 8px; margin-top: 10px; }
  .privacy-dialog-footer { gap: 8px; }
  .privacy-dialog-footer a { font-size: 11px; }
  .privacy-dialog-footer .button { padding-inline: 12px; }
  .privacy-detail-controls button { width: 22px; }
}
@media (prefers-reduced-motion: reduce) { .ui-arrow { transition: none; } }

/* Shared consent typography applies to both registration entrances. */
.wizard-body .consent-card > strong,
.wizard-body .consent-card dt,
.wizard-body .consent-card dd,
.wizard-body .consent-card dd.consent-important,
.wizard-body .consent-card > p,
.wizard-body .consent-card .check-row,
.wizard-body .consent-retention > span,
.wizard-body .consent-retention > strong,
.wizard-body .consent-retention .check-row.age-row { font-size: 13px; }
.wizard-body .consent-card dl { grid-template-columns: 64px minmax(0, 1fr); }
.wizard-progress button > strong { font-size: 14px; }
.wizard-progress button > span { width: 28px; height: 28px; font-size: 13px; flex-shrink: 0; }
@media (max-width: 700px) {
  .wizard-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .wizard-progress button { flex-direction: column; justify-content: center; gap: 6px; width: 100%; }
  .wizard-progress button > strong { font-size: 13px; white-space: nowrap; }
  .wizard-body .form-grid { grid-template-columns: minmax(0, 1fr); }
  .wizard-body .form-grid .full { grid-column: auto; }
  .consent-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  .consent-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .consent-grid[data-consent-view="retention"] { display: none; }
  .wizard-panel:not([data-consent-view="retention"]) .consent-retention { display: none; }
  .wizard-panel[data-consent-view="retention"] .consent-retention { margin-top: 0; padding: 16px; }
}
