/* ============================================================
   RoadmapMint — Assessment studio (roadmap.php only)
   Presentation for the opening and the assessment workspace. Loaded by roadmap.php alone and scoped to
   `.rmx`, so every other public page is unaffected. It reuses the site's tokens
   (main.css), so light and dark themes follow the site's own [data-theme]. No remote dependencies.
   ============================================================ */

.rmx {
  --rmx-line: var(--border);
  --rmx-soft: var(--clr-accent-lt);
  --rmx-green: var(--clr-accent-txt);
  --rmx-focus: #0E7F58;
  --rmx-preview: #16313B;
  --rmx-preview-ink: #EDF7F4;
  --rmx-preview-muted: #B6D0CC;
  --rmx-r: 12px;
}
[data-theme="dark"] .rmx {
  --rmx-green: var(--clr-mint);
  --rmx-focus: #6EE7B7;
  --rmx-preview: #0E202B;
}
.rmx .container { max-width: 1120px; }
.rmx [hidden] { display: none !important; }
.rmx .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Focus is always visible: the same ring on every control in the workspace */
.rmx a:focus-visible, .rmx button:focus-visible, .rmx summary:focus-visible,
.rmx input:focus-visible, .rmx select:focus-visible, .rmx textarea:focus-visible,
.rmx .av2-check-item:focus-within, .rmx .av2-plan-card:focus-within, .rmx .av2-consent-item:focus-within {
  outline: 3px solid var(--rmx-focus);
  outline-offset: 2px;
}
.rmx .av2-select:focus, .rmx .av2-input:focus { border-color: var(--rmx-focus); }
/* the focus ring appears at once: outlines are not part of any control's transition */
.rmx .btn, .rmx .av2-check-item, .rmx .av2-plan-card, .rmx .av2-select, .rmx .av2-input { transition-property: background-color, border-color, color, box-shadow, transform; }

.rmx svg.rmx-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Opening ─────────────────────────────────────────────── */
.rmx .fl-opening[hidden] { display: none; }
.rmx-shell {
  background: var(--bg-surface-2);
  border: 1px solid var(--rmx-line);
  border-radius: 18px;
  padding: clamp(20px, 3.4vw, 36px);
}
.rmx-open { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); align-items: start; }
.rmx-open > * { min-width: 0; }
.rmx-over { margin: 0 0 var(--sp-3); font-size: 12px; line-height: 1.3; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rmx-green); }
.rmx-title { margin: 0 0 var(--sp-4); font-size: clamp(1.75rem, 3.1vw, 2.25rem); line-height: 1.14; letter-spacing: -.02em; max-width: 19ch; text-align: left; }
.rmx-lead { margin: 0; color: var(--txt-secondary); line-height: 1.65; max-width: 48ch; font-size: var(--fs-base); }

.rmx-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); margin: var(--sp-6) 0 var(--sp-4); }
.rmx-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--sp-4); background: var(--bg-surface); border: 1px solid var(--rmx-line); border-radius: var(--rmx-r); padding: var(--sp-4); min-width: 0; }
.rmx-plan--lead { border-top: 3px solid var(--clr-mint); padding-top: calc(var(--sp-4) - 2px); }
.rmx-plan p { margin: 0; }
.rmx-plan-text { min-width: 0; text-align: left; }
.rmx-plan-name { font-size: 1rem; font-weight: 700; color: var(--txt-primary); margin: 0 0 var(--sp-1); }
.rmx-plan-price { display: block; margin: 0; text-align: right; font-size: 1.35rem; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--txt-primary); white-space: nowrap; }
.rmx-plan-price .fl-was { display: block; font-size: .875rem; line-height: 1.3; font-weight: 500; letter-spacing: 0; color: var(--txt-muted); }
.rmx-plan .fl-offer { font-size: var(--fs-xs); font-weight: 700; color: var(--rmx-green); margin: 0 0 var(--sp-1) !important; }
.rmx-plan-desc { font-size: var(--fs-sm); line-height: 1.55; color: var(--txt-secondary); }
@media (max-width: 480px) {
  .rmx-plan { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "desc desc" "offer offer"; align-items: start; row-gap: var(--sp-2); }
  .rmx-plan-text { display: contents; }
  .rmx-plan-name { grid-area: name; margin: 0; align-self: center; }
  .rmx-plan-price { grid-area: price; align-self: center; }
  .rmx-plan-desc { grid-area: desc; }
  .rmx-plan .fl-offer { grid-area: offer; margin: 0 !important; }
}

.rmx-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--txt-secondary); }
.rmx-meta li { display: flex; align-items: center; gap: 6px; }
.rmx-meta .rmx-i { color: var(--rmx-green); }
.rmx-paynote { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--txt-secondary); }
.rmx-paynote strong { color: var(--txt-primary); }
.rmx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-5); }
.rmx-actions .btn { max-width: 100%; white-space: normal; min-height: 48px; }
.rmx-links { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); margin: var(--sp-2) 0 0; }
.rmx-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-sm); }
.rmx-note { margin: var(--sp-4) 0 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--txt-muted); }
.rmx a.fl-open-link, .rmx .fl-note a, .rmx .rmx-note a, .rmx .rmx-link { color: var(--rmx-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rmx .fl-more { margin: var(--sp-4) 0 0; border-top: 1px solid var(--rmx-line); padding-top: var(--sp-3); }
.rmx .fl-more summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); color: var(--txt-secondary); padding: var(--sp-2) 0; min-height: 44px; display: flex; align-items: center; }
.rmx .fl-more[open] summary { color: var(--txt-primary); }
.rmx .fl-steps { counter-reset: fls; list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.rmx .fl-steps li { counter-increment: fls; position: relative; padding-left: 2.25rem; color: var(--txt-secondary); line-height: 1.6; font-size: var(--fs-sm); }
.rmx .fl-steps li::before { content: counter(fls); position: absolute; left: 0; top: .1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--rmx-line); background: var(--rmx-soft); color: var(--rmx-green); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rmx .fl-steps strong { color: var(--txt-primary); }
.rmx .fl-note { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); color: var(--txt-muted); line-height: 1.6; }

/* Illustrative report preview: structure only, no sample results */
.rmx-preview { position: relative; overflow: hidden; background: var(--rmx-preview); color: var(--rmx-preview-ink); border-radius: 16px; padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--rmx-line); }
.rmx-preview::before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgba(43,207,152,.18), transparent 70%); right: -90px; top: -110px; pointer-events: none; }
.rmx-preview-top { position: relative; display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.rmx-icon-box { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(43,207,152,.15); color: #76E6C1; flex: none; }
.rmx-preview-top small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #A8CBC5; margin-bottom: 2px; }
.rmx-preview-top strong { display: block; font-size: 15px; font-weight: 600; color: var(--rmx-preview-ink); line-height: 1.35; }
.rmx-paper { position: relative; background: var(--bg-surface); color: var(--txt-primary); border: 1px solid var(--rmx-line); border-radius: 9px; padding: clamp(14px, 2vw, 20px); box-shadow: 0 14px 30px rgba(0,0,0,.18); transform: rotate(-1.2deg); margin: 0 4px; }
.rmx-paper-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--rmx-line); margin-bottom: var(--sp-4); font-size: 11px; color: var(--txt-secondary); }
.rmx-paper-head img { height: 17px; width: auto; max-width: 60%; }
.rmx-paper-head .logo-dark { display: none; }
[data-theme="dark"] .rmx-paper-head .logo-light { display: none; }
[data-theme="dark"] .rmx-paper-head .logo-dark { display: block; }
.rmx-paper-title { margin: 0 0 var(--sp-4); font-weight: 700; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.02em; color: var(--txt-primary); }
.rmx-paper ol { list-style: none; margin: 0; padding: 0; }
.rmx-paper li { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 10px; position: relative; padding: 0 0 var(--sp-4); }
.rmx-paper li:last-child { padding-bottom: 0; }
.rmx-paper li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 1px; background: var(--rmx-line); }
.rmx-dot { width: 21px; height: 21px; border-radius: 50%; background: var(--rmx-soft); color: var(--rmx-green); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.rmx-paper b { display: block; font-size: 13px; line-height: 1.35; color: var(--txt-primary); }
.rmx-paper small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--txt-secondary); }
.rmx-caption { position: relative; margin: var(--sp-5) 0 0; font-size: 12px; line-height: 1.55; color: var(--rmx-preview-muted); text-align: center; }

@media (max-width: 860px) {
  .rmx-open { grid-template-columns: minmax(0, 1fr); }
}
/* Phones: the decorative preview gives way to the plain disclosure; the Start button stays above it */
@media (max-width: 680px) {
  .rmx-preview { background: transparent; border: 0; padding: 0; border-top: 1px solid var(--rmx-line); padding-top: var(--sp-4); overflow: visible; }
  .rmx-preview::before, .rmx-preview-top, .rmx-paper { display: none; }
  .rmx-caption { color: var(--txt-muted); margin: 0; text-align: left; }
  .rmx-actions .btn { width: 100%; justify-content: center; }
}

/* ── Workspace ───────────────────────────────────────────── */
.rmx-work { margin-inline: auto; }
.rmx-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--sp-3) var(--sp-5); margin-bottom: var(--sp-5); }
.rmx-head .fl-stages { flex: 1 1 420px; min-width: 0; margin: 0; }
.rmx-head-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-5); font-size: var(--fs-sm); }
.rmx-head-tools a { color: var(--rmx-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.rmx .assessment-reset-link { font-size: var(--fs-sm); min-height: 44px; padding: 0 var(--sp-1); color: var(--txt-secondary); }
.rmx .assessment-top-row { margin: 0; }

.rmx .fl-stage-now { margin: 0 0 var(--sp-3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--rmx-green); }
.rmx .fl-stage-list { list-style: none; margin: 0; padding: 0 0 var(--sp-4); border-bottom: 1px solid var(--rmx-line); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.rmx .fl-stage-list li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--txt-muted); min-width: 0; }
.rmx .fl-dot { flex: none; width: 23px; height: 23px; border-radius: 50%; border: 1px solid var(--rmx-line); background: var(--bg-surface); color: var(--txt-secondary); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rmx .fl-stage-list .is-done .fl-dot { background: var(--clr-mint); border-color: var(--clr-mint); color: var(--clr-navy); }
.rmx .fl-stage-list .is-current { color: var(--rmx-green); font-weight: 700; }
.rmx .fl-stage-list .is-current .fl-dot { background: var(--rmx-soft); border: 2px solid var(--rmx-green); color: var(--txt-primary); }
@media (max-width: 640px) {
  .rmx .fl-stage-list { flex-wrap: nowrap; gap: var(--sp-2); }
  .rmx .fl-stage-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}

.rmx-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 34px); align-items: start; }
.rmx-grid > * { min-width: 0; }
.rmx-work.is-single .rmx-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }

/* The form surface */
.rmx .av2-card { max-width: none; margin: 0; border-radius: 14px; box-shadow: none; border: 1px solid var(--rmx-line); }
.rmx .av2-card-bar { display: none; }
.rmx .av2-card-inner { padding: clamp(20px, 2.6vw, 28px); }
@media (max-width: 360px) {
  .rmx .av2-card-inner { padding: 16px; }
  .rmx .av2-select { padding-inline: .6rem; }   /* room for the longest selected label on the narrowest phones */
}
.rmx .assessment-question-hero { margin: 0 0 var(--sp-2); text-align: left; max-width: none; font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.25; letter-spacing: -.02em; }
.rmx .assessment-question-hero:focus { outline: none; }
.rmx .assessment-question-hero:focus-visible { outline: 3px solid var(--rmx-focus); outline-offset: 4px; border-radius: 4px; }
.rmx .av2-card-inner > p.av2-hint:not([role]) { font-size: var(--fs-sm); color: var(--txt-secondary); line-height: 1.6; max-width: 62ch; }
.rmx .av2-card-inner > p.av2-hint[role="status"] { line-height: 1.6; }   /* a status message (e.g. "Code sent to") reads like the paragraphs around it */
.rmx .av2-form { gap: var(--sp-5); margin-top: var(--sp-5); }
.rmx .av2-label { font-size: var(--fs-sm); font-weight: 600; color: var(--txt-primary); }
.rmx .av2-select, .rmx .av2-input { min-height: 46px; font-size: 16px; background: var(--bg-page); border-radius: 8px; }
.rmx textarea.av2-input { min-height: 96px; }
.rmx .av2-hint, .rmx .fl-hint { color: var(--txt-muted); font-size: var(--fs-xs); line-height: 1.5; }
.rmx .av2-subheading { font-size: 1rem; font-weight: 700; color: var(--txt-primary); margin: var(--sp-6) 0 var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--rmx-line); }

/* Field sizing: each control is as wide as its content needs, left-aligned, never narrower than its content.
   The limit applies to the control, not to its group, so a message under it still has room to read. */
.rmx .av2-field-group { align-items: stretch; }
.rmx .av2-field-group > .av2-select, .rmx .av2-field-group > .av2-input, .rmx .av2-field-group > .av2-mobile-field { justify-self: start; }
.rmx .av2-form > .av2-field-group[data-size="select"] > .av2-select { width: min(100%, max(300px, var(--rmx-fit, 300px))); max-width: 100%; }
.rmx .av2-form > .av2-field-group[data-size="date"] > .av2-input { width: min(100%, 15rem); max-width: none; }
.rmx .av2-form > .av2-field-group[data-size="short"] > .av2-input { width: min(100%, 9rem); max-width: none; }
.rmx .av2-form > .av2-field-group[data-size="text"] > .av2-input, .rmx .av2-form > .av2-field-group[data-size="text"] > .av2-mobile-field { width: min(100%, 30rem); }
.rmx .av2-form > .av2-field-group[data-size="fit"] > .av2-select { max-width: 100%; }
.rmx .av2-field-group .av2-field-error { max-width: 52ch; }

/* Back / Continue: same place on every screen, both at the right, Back just before the primary action */
.rmx .av2-nav { display: flex; justify-content: flex-end; align-items: center; gap: var(--sp-3); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--rmx-line); }
.rmx .av2-nav.av2-nav-paged { justify-content: flex-end; }   /* Back sits next to Continue, at the right: after choosing from a list the pointer is not left above Back */
.rmx .av2-nav .btn { min-height: 46px; }
@media (max-width: 560px) {
  .rmx .av2-nav, .rmx .av2-nav.av2-nav-paged { flex-direction: column-reverse; align-items: stretch; }
  .rmx .av2-nav .btn { width: 100%; justify-content: center; }
}

/* Choices: native checkboxes in selection cards, selected state shown by border + tint + the box itself */
.rmx .av2-checklist { gap: var(--sp-2); }
.rmx .av2-check-item { min-height: 44px; padding: .55rem .9rem; border-radius: 10px; border: 1.5px solid var(--rmx-line); background: var(--bg-page); font-weight: 500; line-height: 1.35; }
.rmx .av2-check-item:has(input:checked) { border-color: var(--rmx-green); background: var(--rmx-soft); font-weight: 600; }
.rmx .av2-check-item input { width: 18px; height: 18px; flex: none; }
.rmx .av2-consent-item { border-radius: 10px; min-height: 44px; }
.rmx .av2-cert-remove { width: 44px; height: 44px; }
.rmx .av2-cert-add { min-height: 44px; border-radius: 10px; color: var(--rmx-green); }
.rmx .av2-guardian-box { border-radius: var(--rmx-r); border: 1px solid var(--rmx-line); }

/* Messages: one look for notices, field errors and the draft line */
.rmx .av2-field-error { display: flex; gap: 6px; align-items: flex-start; margin: var(--sp-1) 0 0; font-size: var(--fs-sm); font-weight: 600; line-height: 1.45; color: var(--rm-err-tx); overflow-wrap: anywhere; }
.rmx .av2-field-error::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--rm-err-bd); color: var(--bg-surface); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
[data-theme="dark"] .rmx .av2-field-error { color: var(--rm-err-tx); }
.rmx .rm-notice { border-radius: 10px; margin-bottom: var(--sp-4); }
.rmx #assessment-error { position: relative; margin: 0 0 var(--sp-4); max-width: none; padding: var(--sp-3) var(--sp-4) var(--sp-3) 48px; border: 1px solid var(--rm-err-bd); border-left-width: 4px; border-radius: 10px; background: var(--rm-err-bg); color: var(--rm-err-tx); font-size: var(--fs-sm); font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.rmx #assessment-error::before { content: "!"; position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--rm-err-bd); color: var(--bg-surface); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.rmx .fl-restored { margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--rmx-line); border-left: 3px solid var(--clr-mint); background: var(--rmx-soft); border-radius: 10px; font-size: var(--fs-sm); line-height: 1.6; color: var(--txt-secondary); overflow-wrap: anywhere; }
.rmx .fl-draftstat { position: relative; display: block; margin: 16px 0 0; padding: 10px 0 10px 16px; min-height: 40px; font-size: 13px; line-height: 1.55; color: var(--txt-muted); overflow-wrap: anywhere; }
.rmx .fl-draftstat::before { content: ""; position: absolute; left: 0; top: calc(10px + .55em); width: 7px; height: 7px; border-radius: 50%; background: var(--txt-muted); opacity: .55; }
.rmx .fl-draftstat:empty::before { display: none; }
.rmx .fl-draftstat[data-state="saved"]::before { background: var(--rmx-green); opacity: .9; }
.rmx .fl-draftstat.is-error, .rmx .fl-draftstat[data-state="conflict"] { padding: 12px 14px 12px 32px; border: 1px solid var(--rm-err-bd); border-left-width: 4px; border-radius: 10px; background: var(--rm-err-bg); color: var(--rm-err-tx); font-weight: 600; }
.rmx .fl-draftstat.is-error::before, .rmx .fl-draftstat[data-state="conflict"]::before { left: 14px; top: calc(12px + .55em); background: var(--rm-err-bd); opacity: 1; }
.rmx .fl-draftstat[data-state="conflict"] { border-color: var(--rm-warn-bd); background: var(--rm-warn-bg); color: var(--rm-warn-tx); }
.rmx .fl-draftstat[data-state="conflict"]::before { background: var(--rm-warn-bd); }
.rmx .fl-draft-actions { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 6px; }
@media (max-width: 560px) {
  .rmx .fl-draft-actions { flex-direction: column; gap: 8px; align-items: stretch; }
  .rmx .fl-draft-actions .fl-linkbtn { justify-content: center; padding: 0 var(--sp-4); border: 1px solid currentColor; border-radius: 10px; text-decoration: none; background: var(--bg-surface); color: var(--txt-primary); min-height: 44px; text-align: center; white-space: normal; }
}
.rmx .fl-edit, .rmx .fl-linkbtn { background: none; border: 0; padding: 0 var(--sp-1); min-height: 44px; display: inline-flex; align-items: center; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--rmx-green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rmx .fl-confirm-row, .rmx .fl-verify-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.rmx .fl-fixed { margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--rmx-line); border-radius: 10px; background: var(--bg-surface-2); color: var(--txt-secondary); font-size: var(--fs-sm); line-height: 1.6; }
.rmx .fl-fixed strong { color: var(--txt-primary); overflow-wrap: anywhere; }

/* Review */
.rmx .fl-review { display: grid; gap: var(--sp-4); margin: var(--sp-5) 0 0; }
.rmx .fl-rv { border: 1px solid var(--rmx-line); border-radius: var(--rmx-r); background: var(--bg-surface); overflow: hidden; }
.rmx .fl-rv-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin: 0; padding: var(--sp-2) var(--sp-4); background: var(--bg-surface-2); border-bottom: 1px solid var(--rmx-line); }
.rmx .fl-rv-head h3 { margin: 0; font-size: .95rem; }
.rmx .fl-rv .av2-review-list { border: 0; border-radius: 0; }
.rmx .av2-review-row { grid-template-columns: minmax(120px, 210px) minmax(0, 1fr); background: transparent !important; }
.rmx .av2-review-label { font-weight: 600; color: var(--txt-muted); }
.rmx .av2-review-value { overflow-wrap: anywhere; word-break: normal; line-height: 1.55; }
@media (max-width: 560px) { .rmx .av2-review-row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Delivery and verification */
.rmx .av2-profile-row { gap: var(--sp-5); }
/* Two fields side by side (email + mobile, guardian email + mobile) share one set of rows -- label, help text, control, error -- so
   the controls line up even when one help text wraps to more lines than the other. The groups stay independent when stacked. */
@supports (grid-template-rows: subgrid) {
  .rmx .av2-profile-row { row-gap: 0 !important; column-gap: var(--sp-5) !important; }
  .rmx .av2-profile-row > .av2-field-group { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start; min-width: 0; }
  .rmx .av2-profile-row > .av2-field-group > .av2-label-row { grid-row: 1; }
  .rmx .av2-profile-row > .av2-field-group > .av2-hint { grid-row: 2; margin: var(--sp-2) 0 0; }
  .rmx .av2-profile-row > .av2-field-group > .av2-input,
  .rmx .av2-profile-row > .av2-field-group > .av2-select,
  .rmx .av2-profile-row > .av2-field-group > .av2-mobile-field { grid-row: 3; margin-top: var(--sp-2); align-self: start; }
  .rmx .av2-profile-row > .av2-field-group > .av2-field-error { grid-row: 4; margin: var(--sp-2) 0 0; }
  /* Stacked (one column): the second group needs the space the shared row gap used to give. */
  @media (max-width: 640px) { .rmx .av2-profile-row > .av2-field-group + .av2-field-group { margin-top: var(--sp-5); } }
}
.rmx .av2-privacy-notice { margin-top: var(--sp-4); }
.rmx .av2-otp-input { max-width: 15rem; min-height: 56px; font-size: 1.75rem; letter-spacing: .4em; text-indent: .4em; font-variant-numeric: tabular-nums; border-width: 2px; }
.rmx .fl-verify-links { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--rmx-line); }
.rmx .fl-verify-links .assessment-reset-link { border: 1px solid var(--rmx-line); border-radius: 8px; padding: 0 var(--sp-4); color: var(--txt-primary); white-space: normal; text-decoration: none; background: var(--bg-surface); }
.rmx .fl-verify-links .assessment-reset-link:disabled { color: var(--txt-muted); }
.rmx .av2-card-inner > p[role="status"]:not(.fl-draftstat):not(.rmx-expired) { margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: 10px; background: var(--bg-surface-2); border: 1px solid var(--rmx-line); font-size: var(--fs-sm); color: var(--txt-primary); overflow-wrap: anywhere; }

/* Plans */
.rmx .av2-plan-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-3); }
/* Same shape as the plan cards on the opening screen: name and description on the left, price on the right. */
.rmx .av2-plan-card { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; column-gap: var(--sp-3); padding: var(--sp-4); border: 1.5px solid var(--rmx-line); border-radius: var(--rmx-r); background: var(--bg-surface); cursor: pointer; min-height: 44px; }
.rmx .av2-plan-card input { width: 20px; height: 20px; margin: 0; accent-color: var(--rmx-green); }
.rmx .av2-plan-card.is-selected { border-color: var(--rmx-green); background: var(--rmx-soft); box-shadow: 0 0 0 1px var(--rmx-green); }
.rmx .av2-plan-card.is-selected::after { content: "\2713"; content: "\2713" / ""; position: absolute; top: -10px; right: 12px; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--rmx-green); color: var(--bg-surface); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.rmx .av2-plan-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--sp-4); min-width: 0; }
.rmx .av2-plan-text { display: block; min-width: 0; text-align: left; }
.rmx .av2-plan-name { display: block; font-size: 1rem; font-weight: 700; margin: 0 0 var(--sp-1); }
.rmx .av2-plan-price { display: block; text-align: right; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: var(--txt-primary); line-height: 1.25; white-space: nowrap; }
.rmx .av2-plan-desc { display: block; font-size: var(--fs-sm); color: var(--txt-secondary); line-height: 1.55; }
.rmx .av2-plan-was { display: block; font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--txt-muted); }
@media (max-width: 480px) {
  .rmx .av2-plan-card { align-items: start; }
  .rmx .av2-plan-card input { margin-top: 1px; }
  .rmx .av2-plan-info { grid-template-areas: "name price" "desc desc"; align-items: start; row-gap: var(--sp-2); }
  .rmx .av2-plan-text { display: contents; }
  .rmx .av2-plan-name { grid-area: name; margin: 0; align-self: center; }
  .rmx .av2-plan-price { grid-area: price; align-self: center; }
  .rmx .av2-plan-desc { grid-area: desc; }
}
.rmx .av2-process-strip { border-radius: var(--rmx-r); }

/* ── Guidance column ─────────────────────────────────────── */
.rmx-guide-col { position: sticky; top: calc(var(--nav-h) + var(--announce-h, 0px) + 16px); }
.rmx-aside > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; font-size: var(--fs-sm); font-weight: 600; color: var(--txt-secondary); padding: var(--sp-2) var(--sp-4); border: 1px solid var(--rmx-line); border-radius: 10px; background: var(--bg-surface); }
.rmx-aside > summary::-webkit-details-marker { display: none; }
.rmx-aside.is-wide > summary { display: none; }
.rmx-aside[open] > summary { margin-bottom: var(--sp-3); }
.rmx-guide { background: var(--rmx-soft); border-radius: var(--rmx-r); padding: var(--sp-5); }
.rmx-guide h3 { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-2); font-size: var(--fs-sm); color: var(--txt-primary); }
.rmx-guide h3 .rmx-i { color: var(--rmx-green); }
.rmx-guide p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--txt-secondary); }
.rmx-guide p + p { margin-top: var(--sp-2); }
.rmx-guide ul.rmx-why { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); line-height: 1.5; color: var(--txt-secondary); }
.rmx-guide ul.rmx-why strong { color: var(--txt-primary); }
.rmx-outline { padding: var(--sp-5) 0 0; }
.rmx-outline ul { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.rmx-outline li { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--txt-secondary); }
.rmx-outline li .rmx-i { color: var(--rmx-green); }
.rmx-keep { margin-top: var(--sp-4); border-top: 1px solid var(--rmx-line); padding-top: var(--sp-2); }
.rmx-keep summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: var(--fs-sm); font-weight: 600; color: var(--txt-secondary); }
.rmx-keep summary, .rmx .fl-more summary { list-style: none; gap: var(--sp-3); }
.rmx-keep summary::-webkit-details-marker, .rmx .fl-more summary::-webkit-details-marker { display: none; }
.rmx-keep summary::after, .rmx .fl-more summary::after { content: ""; flex: none; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--txt-muted); border-bottom: 2px solid var(--txt-muted); transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.rmx-keep[open] > summary::after, .rmx .fl-more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.rmx-keep p { margin: 0 0 var(--sp-2); font-size: var(--fs-xs); line-height: 1.6; color: var(--txt-muted); }

@media (max-width: 900px) {
  .rmx-grid { grid-template-columns: minmax(0, 1fr); }
  .rmx-guide-col { position: static; }
}

.rmx .rm-noscript { border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  .rmx *, .rmx *::before, .rmx *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rmx-paper { transform: none; }
}

/* ---- Final details screen: short labelled groups ---- */
.rmx .av2-fieldset { border: 1px solid var(--rmx-line); border-radius: 12px; padding: var(--sp-4) var(--sp-5) var(--sp-5); margin: 0 0 var(--sp-5); min-width: 0; }
.rmx .av2-fieldset > legend { padding: 0 var(--sp-2); font-weight: 600; color: var(--txt-primary); font-size: var(--fs-md, 1rem); }
.rmx .av2-fieldset-help { margin: 0 0 var(--sp-4); color: var(--txt-secondary); font-size: var(--fs-sm); line-height: 1.6; }
.rmx .av2-fieldset > .av2-field-group + .av2-field-group { margin-top: var(--sp-4); }
.rmx .av2-fieldset > .av2-field-group + .av2-profile-row, .rmx .av2-fieldset > .av2-profile-row + .av2-field-group { margin-top: var(--sp-4); }   /* the email + mobile row sits as far below a field as any other field does */
.rmx .av2-form > .av2-consent-item { margin-top: 0; }   /* the form's own gap already separates it from the box above (it was doubled: 64px against 40px between boxes) */
.rmx .av2-cert-row-fields { row-gap: var(--sp-4); }
.rmx .av2-picker-fields { row-gap: var(--sp-4); }   /* target role / designation rows: same, when the fields stack on a phone */   /* fields of one row that wrap under each other on a narrow screen: room for the next label, not 8px */
.rmx .av2-fieldset .av2-field-group > .av2-select-wide, .rmx .av2-fieldset .av2-field-group > .av2-input-mid { width: min(100%, 420px); max-width: 100%; }
@media (max-width: 480px) { .rmx .av2-fieldset { padding: var(--sp-3) var(--sp-4) var(--sp-4); } }

/* ============================================================
   Theme layer: matches the redesigned public pages (mint gradients, icon tiles, soft cards).
   Presentation only: no markup, ids or behaviour are touched.
   ============================================================ */
.rmx {
  --rmx-grad: linear-gradient(145deg, #0A6B4A, #10A674);
  --rmx-tint: rgba(52, 211, 153, .12);
  --rmx-glow: 0 0 0 4px rgba(52, 211, 153, .22);
  --rmx-shadow: 0 1px 2px rgba(15, 35, 50, .05), 0 22px 44px -30px rgba(15, 35, 50, .38);
  position: relative;
  background:
    radial-gradient(900px 420px at 92% -6%, rgba(52, 211, 153, .20), transparent 62%),
    radial-gradient(700px 360px at -4% 8%, rgba(56, 189, 248, .10), transparent 60%),
    var(--bg-page);
}
[data-theme="dark"] .rmx {
  --rmx-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 22px 44px -28px rgba(0, 0, 0, .7);
  background:
    radial-gradient(900px 420px at 92% -6%, rgba(52, 211, 153, .14), transparent 62%),
    radial-gradient(700px 360px at -4% 8%, rgba(56, 189, 248, .07), transparent 60%),
    var(--bg-page);
}

/* Step tracker: a connected row of numbered discs */
.rmx .fl-stage-now { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; background: var(--rmx-tint); border: 1px solid rgba(52, 211, 153, .35); }
.rmx .fl-stage-list { border-bottom: 0; padding-bottom: var(--sp-2); gap: var(--sp-2) 0; flex-wrap: nowrap; align-items: center; }
.rmx .fl-stage-list li { flex: 0 1 auto; gap: 8px; font-size: 13px; padding-right: 14px; margin-right: 14px; position: relative; }
.rmx .fl-stage-list li:not(:last-child)::after { content: ""; position: absolute; right: -2px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--rmx-line); }
.rmx .fl-stage-list li.is-done:not(:last-child)::after { background: var(--clr-mint); }
.rmx .fl-dot { width: 28px; height: 28px; font-size: 12px; background: var(--bg-surface); box-shadow: 0 1px 2px rgba(15, 35, 50, .08); }
.rmx .fl-stage-list .is-done .fl-dot { background: var(--rmx-grad); border-color: transparent; color: #fff; }
.rmx .fl-stage-list .is-current .fl-dot { background: var(--bg-surface); border: 2px solid #10A674; color: #0A6B4A; box-shadow: var(--rmx-glow); }
[data-theme="dark"] .rmx .fl-stage-list .is-current .fl-dot { color: var(--clr-mint); border-color: var(--clr-mint); }
.rmx .fl-stage-list .is-current { color: var(--txt-primary); }
@media (max-width: 900px) { .rmx .fl-stage-list li { padding-right: 10px; margin-right: 10px; } .rmx .fl-stage-list li:not(:last-child)::after { width: 10px; } }
@media (max-width: 640px) { .rmx .fl-stage-list li { padding-right: 0; margin-right: 0; flex: 1 1 0; justify-content: center; } .rmx .fl-stage-list li:not(:last-child)::after { right: -6px; width: 12px; } }

/* The main surface */
.rmx .av2-card { position: relative; overflow: hidden; border-radius: 22px; box-shadow: var(--rmx-shadow); background: var(--bg-surface); }
.rmx .av2-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, #10A674, #34D399); }
.rmx .av2-card-inner { padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px) clamp(26px, 3.2vw, 40px); }
.rmx .assessment-question-hero { font-weight: 800; font-size: clamp(1.3rem, 2.3vw, 1.75rem); letter-spacing: -.025em; }
.rmx .av2-card-inner > p.av2-hint:not([role]) { font-size: 1rem; }
.rmx .av2-label { font-size: .9375rem; font-weight: 700; }
.rmx .av2-select, .rmx .av2-input { border: 1.5px solid var(--rmx-line); border-radius: 12px; background: var(--bg-surface); box-shadow: 0 1px 2px rgba(15, 35, 50, .04); }
.rmx .av2-select:hover, .rmx .av2-input:hover { border-color: rgba(16, 166, 116, .55); }
.rmx .av2-select:focus, .rmx .av2-input:focus { border-color: #10A674; box-shadow: var(--rmx-glow); outline: none; }
.rmx .av2-nav { border-top: 0; padding-top: var(--sp-4); margin-top: var(--sp-5); }

/* Choices and plans: selected = green edge, tint, and a glow */
.rmx .av2-check-item, .rmx .av2-consent-item { border-radius: 14px; background: var(--bg-surface); }
.rmx .av2-check-item:hover { border-color: rgba(16, 166, 116, .6); }
.rmx .av2-check-item:has(input:checked) { border-color: #10A674; background: linear-gradient(var(--rmx-tint), var(--rmx-tint)), var(--bg-surface); box-shadow: 0 10px 22px -18px rgba(16, 166, 116, .7); }
.rmx .av2-check-item input, .rmx .av2-plan-card input, .rmx .av2-consent-item input { accent-color: #10A674; }
.rmx .av2-plan-card { border-radius: 16px; background: var(--bg-surface); padding: var(--sp-5); }
.rmx .av2-plan-card:hover { border-color: rgba(16, 166, 116, .6); }
.rmx .av2-plan-card.is-selected { border-color: #10A674; background: linear-gradient(var(--rmx-tint), var(--rmx-tint)), var(--bg-surface); box-shadow: 0 0 0 1px #10A674, 0 16px 30px -22px rgba(16, 166, 116, .8); }
.rmx .av2-plan-card.is-selected::after { background: var(--rmx-grad); color: #fff; }
.rmx .av2-fieldset { border-radius: 16px; background: var(--bg-surface-2); border-color: var(--rmx-line); }
.rmx .av2-guardian-box { border-radius: 16px; background: var(--bg-surface-2); }

/* Review blocks */
.rmx .fl-rv { border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 35, 50, .04); }
.rmx .fl-rv-head { background: linear-gradient(var(--rmx-tint), var(--rmx-tint)), var(--bg-surface-2); padding: var(--sp-3) var(--sp-4); }
.rmx .fl-rv-head h3 { font-size: 1rem; font-weight: 800; }

/* Guidance column: icon tiles instead of plain text */
.rmx-guide { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid rgba(52, 211, 153, .4); padding: var(--sp-5) var(--sp-5) var(--sp-5); background: radial-gradient(420px 220px at 100% 0%, rgba(52, 211, 153, .22), transparent 65%), linear-gradient(180deg, var(--bg-surface), var(--bg-surface)); box-shadow: var(--rmx-shadow); }
.rmx-guide h3 { gap: var(--sp-3); font-size: 1.0625rem; font-weight: 800; margin-bottom: var(--sp-3); }
.rmx-guide h3 .rmx-i, .rmx-outline li .rmx-i, .rmp-h .rmx-i { box-sizing: content-box; width: 18px; height: 18px; padding: 9px; border-radius: 12px; color: #fff; background: var(--rmx-grad); box-shadow: 0 8px 18px -10px rgba(16, 166, 116, .8); }
.rmx-guide p { font-size: .9688rem; }
.rmx-outline { padding-top: var(--sp-6); }
.rmx-outline h3, .rmx-outline .rmx-over { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--rmx-green); }
.rmx-outline ul { gap: var(--sp-2); }
.rmx-outline li { padding: 10px 14px; border: 1px solid var(--rmx-line); border-radius: 14px; background: var(--bg-surface); font-weight: 600; color: var(--txt-primary); gap: var(--sp-3); }
.rmx-outline li .rmx-i { width: 14px; height: 14px; padding: 7px; border-radius: 10px; background: var(--rmx-tint); color: #0A6B4A; box-shadow: none; border: 1px solid rgba(52, 211, 153, .35); }
[data-theme="dark"] .rmx-outline li .rmx-i { color: var(--clr-mint); }
.rmx-keep { border-top: 0; border: 1px solid var(--rmx-line); border-radius: 14px; background: var(--bg-surface); padding: 0 var(--sp-4); }
.rmx-keep[open] { padding-bottom: var(--sp-3); }

/* ── Payment page ───────────────────────────────────────── */
section.rmx.rmp .rmp-head { position: relative; overflow: hidden; margin: 0 0 var(--sp-5); padding: clamp(22px, 3vw, 34px); border: 1px solid var(--rmx-line); border-radius: 24px; background: radial-gradient(640px 320px at 96% 0%, rgba(52, 211, 153, .24), transparent 62%), linear-gradient(180deg, #fff, #f3faf7); box-shadow: var(--rmx-shadow); }
[data-theme="dark"] section.rmx.rmp .rmp-head { background: radial-gradient(640px 320px at 96% 0%, rgba(52, 211, 153, .16), transparent 62%), linear-gradient(180deg, #1B2F3F, #172B3A); }
section.rmx.rmp .rmp-title { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 800; max-width: none; }
section.rmx.rmp .rmp-lead { max-width: 56ch; }
.rmp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-4) 0 0; padding: 0; }
.rmp-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid rgba(52, 211, 153, .45); border-radius: 99px; background: var(--bg-surface); font-size: .875rem; font-weight: 600; color: var(--txt-primary); }
.rmp-chips svg { box-sizing: content-box; width: 14px; height: 14px; padding: 5px; border-radius: 50%; background: var(--rmx-grad); color: #fff; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
section.rmx.rmp .rmx-shell { background: none; border: 0; padding: 0; }
section.rmx.rmp .rmp-aside, section.rmx.rmp .rmp-card, section.rmx.rmp .rmp-extra { border-radius: 22px; box-shadow: var(--rmx-shadow); padding: clamp(20px, 2.6vw, 30px); }
section.rmx.rmp .rmp-h { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--txt-primary); letter-spacing: .08em; }
section.rmx.rmp .rmp-h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rmx-grad); box-shadow: 0 0 0 4px rgba(52, 211, 153, .22); flex: none; }
section.rmx.rmp .rmp-kicker { color: var(--rmx-green); }
section.rmx.rmp .rm-order-badge { background: linear-gradient(var(--rmx-tint), var(--rmx-tint)), var(--bg-surface); border: 1px dashed rgba(16, 166, 116, .5); border-radius: 14px; padding: var(--sp-3) var(--sp-4); }
section.rmx.rmp .rmp-plan-head { padding: var(--sp-4); border-radius: 16px; background: var(--bg-surface-2); border: 1px solid var(--rmx-line); }
section.rmx.rmp .rmp-plan-name { font-size: 1.5rem; font-weight: 800; }
section.rmx.rmp .rmp-short .li-check, section.rmx.rmp .rmp-list .li-check { color: #10A674; }

/* Option cards (report choice, payment method) */
section.rmx.rmp .rmp-opt, section.rmx.rmp .rm-pay-method-card { border-radius: 16px; padding: var(--sp-4) var(--sp-5); transition: border-color .15s, box-shadow .15s, background-color .15s; }
section.rmx.rmp .rmp-opt:hover, section.rmx.rmp .rm-pay-method-card:hover { border-color: rgba(16, 166, 116, .65); }
section.rmx.rmp .rmp-opt.is-selected, section.rmx.rmp .rm-pay-method-card.is-selected { border-color: #10A674; background: linear-gradient(var(--rmx-tint), var(--rmx-tint)), var(--bg-surface); box-shadow: 0 0 0 1px #10A674, 0 16px 30px -22px rgba(16, 166, 116, .8); }
section.rmx.rmp .rm-pay-method-card:has(input:checked) { border-color: #10A674; background: linear-gradient(var(--rmx-tint), var(--rmx-tint)), var(--bg-surface); box-shadow: 0 0 0 1px #10A674, 0 16px 30px -22px rgba(16, 166, 116, .8); }
section.rmx.rmp .rmp-radio, section.rmx.rmp .rm-pay-method-radio, section.rmx.rmp .rmp-accept input { accent-color: #10A674; }
section.rmx.rmp .rm-pay-method-icon { width: 44px; height: 44px; border-radius: 13px; margin: 0; color: #0A6B4A; background: linear-gradient(145deg, rgba(52, 211, 153, .26), rgba(52, 211, 153, .08)); border: 1px solid rgba(52, 211, 153, .35); }
[data-theme="dark"] section.rmx.rmp .rm-pay-method-icon { color: var(--clr-mint); }
section.rmx.rmp .rm-pay-method-name { font-size: 1.0625rem; }
section.rmx.rmp .rm-card-chip { border-radius: 8px; width: 46px; height: 30px; }
section.rmx.rmp .rm-card-chip img { max-width: 34px; max-height: 18px; }

/* Totals and the pay button */
section.rmx.rmp .rmp-pb { border-radius: 16px; background: var(--bg-surface-2); }
section.rmx.rmp .rmp-lines .rmp-total { font-size: 1.15rem; }
section.rmx.rmp .rmp-due { border-radius: 18px; padding: var(--sp-5); border: 1px solid rgba(52, 211, 153, .45); background: radial-gradient(360px 180px at 100% 0%, rgba(52, 211, 153, .22), transparent 65%), linear-gradient(var(--rmx-tint), var(--rmx-tint)), var(--bg-surface); }
section.rmx.rmp .rmp-due-amt { font-size: clamp(2rem, 4.6vw, 2.75rem); font-weight: 800; }
section.rmx.rmp .rmp-paybtn { min-height: 56px; font-size: 1.0625rem; border-radius: 99px; box-shadow: 0 16px 30px -16px rgba(16, 166, 116, .9); }
section.rmx.rmp .rmp-accept { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--rmx-line); border-radius: 14px; background: var(--bg-surface-2); }
section.rmx.rmp .rm-secure-note { border-radius: 16px; background: linear-gradient(var(--rmx-tint), var(--rmx-tint)), var(--bg-surface); border-color: rgba(52, 211, 153, .4); }
section.rmx.rmp .rm-secure-note svg { box-sizing: content-box; padding: 6px; border-radius: 50%; background: var(--rmx-grad); color: #fff; margin-top: 0; width: 16px; height: 16px; }
section.rmx.rmp .rmp-coupons li { border-radius: 14px; border-color: rgba(16, 166, 116, .5); background: var(--rmx-tint); }
section.rmx.rmp .rmp-coupon-form .av2-input { border-radius: 99px; padding-inline: 18px; }

/* Supporting points: ticks instead of bullets, details as cards */
section.rmx.rmp .rmp-essentials ul { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
section.rmx.rmp .rmp-essentials li { position: relative; padding: 0 0 0 30px; margin: 0; }
section.rmx.rmp .rmp-essentials li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(52, 211, 153, .2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A6B4A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/12px no-repeat; }
section.rmx.rmp .rmp-more { border: 1px solid var(--rmx-line); border-radius: 14px; background: var(--bg-surface-2); padding: 0 var(--sp-4); margin-top: var(--sp-3); }
section.rmx.rmp .rmp-more[open] { padding-bottom: var(--sp-3); }
section.rmx.rmp .rmp-state { background: var(--bg-surface); border: 1px solid var(--rmx-line); border-radius: 28px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--rmx-shadow); position: relative; overflow: hidden; }
section.rmx.rmp .rmp-state::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #10A674, #34D399); }
.rmx .fl-stage-list { flex-wrap: wrap; }
.rmx .fl-stage-name { white-space: nowrap; }

/* Native dropdowns: follow the site theme (not the OS) and never animate colours, so the list does not flash dark before showing */
.rmx select, .rmx input, .rmx textarea { color-scheme: light; }
[data-theme="dark"] .rmx select, [data-theme="dark"] .rmx input, [data-theme="dark"] .rmx textarea { color-scheme: dark; }
.rmx select, .rmx .av2-select { transition: border-color .15s ease, box-shadow .15s ease; }
.rmx select optgroup { color: var(--txt-primary); }

/* Plan screen: compare pop-up and free-guide picker */
.rmx .av2-link-btn { display: inline-block; margin: 0 0 var(--sp-3); padding: 0; border: 0; background: none; color: var(--rmx-green); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.rmx .av2-sub-title { font-size: 1.05rem; margin: var(--sp-5) 0 var(--sp-2); }
.rmx .av2-compare { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: var(--sp-5); border: 1px solid var(--rmx-line); border-radius: 16px; background: var(--bg-surface); color: var(--txt-primary); }
.rmx .av2-compare::backdrop { background: rgba(10, 20, 30, .55); }
.rmx .av2-compare-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.rmx .av2-compare-head h2 { margin: 0; font-size: 1.25rem; }
.rmx .av2-compare-x { width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; color: inherit; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.rmx .av2-compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.rmx .av2-compare-col { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4); border: 1px solid var(--rmx-line); border-radius: 12px; }
.rmx .av2-compare-col h3 { margin: 0; font-size: 1.05rem; }
.rmx .av2-compare-price { margin: 0; font-size: 1.35rem; font-weight: 700; }
.rmx .av2-compare-blurb { margin: 0; color: var(--txt-secondary); font-size: var(--fs-sm); }
.rmx .av2-compare-col ul { margin: 0 0 var(--sp-3); padding-left: 1.1rem; font-size: var(--fs-sm); flex: 1; }
.rmx .av2-compare-note { margin: var(--sp-4) 0 0; color: var(--txt-muted); font-size: var(--fs-sm); }
@media (max-width: 760px) { .rmx .av2-compare-grid { grid-template-columns: minmax(0, 1fr); } }

/* First screen: the "From" price card and its note */
.rmx .av2-plan-was, .rmx .av2-compare-price .av2-plan-was { text-decoration: line-through; }

/* Free guides picker: one tidy list, full-width rows divided by thin lines, no rounded corner on each row. */
.rmx #field_guides { display: flex; flex-direction: column; gap: 0; margin: var(--sp-3) 0 var(--sp-5); border: 1.5px solid var(--rmx-line); border-radius: 12px; overflow: hidden; background: var(--bg-surface); }
.rmx #field_guides .av2-check-item { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 0; margin: 0; padding: .8rem 1rem; border: 0; border-bottom: 1px solid var(--rmx-line); border-radius: 0; background: transparent; box-shadow: none; line-height: 1.5; font-size: var(--fs-sm); }
.rmx #field_guides .av2-check-item:last-child { border-bottom: 0; }
.rmx #field_guides .av2-check-item:hover { background: var(--rmx-tint); border-color: var(--rmx-line); }
.rmx #field_guides .av2-check-item:has(input:checked) { background: var(--rmx-tint); border-color: var(--rmx-line); box-shadow: none; }
.rmx #field_guides .av2-check-item:focus-within { outline: 2px solid var(--rmx-green); outline-offset: -2px; }

/* ── rm_fix38: wider form column, helper callouts, compact From card ───────── */
.rmx-grid { grid-template-columns: minmax(0, 1fr) clamp(250px, 29%, 340px); gap: clamp(20px, 3vw, 36px); }
.rmx-guide-col { display: grid; gap: var(--sp-3); }
.rmx-aside[open] > summary { margin-bottom: var(--sp-3); }

/* callout boxes: tinted background, thin border, uppercase coloured heading */
.rmx { --cal-g-bg: #ECFDF5; --cal-g-bd: #A7F3D0; --cal-g-tx: #047857;
       --cal-b-bg: #EFF6FF; --cal-b-bd: #BFDBFE; --cal-b-tx: #1D4ED8;
       --cal-a-bg: #FFFBEB; --cal-a-bd: #FDE68A; --cal-a-tx: #B45309; --cal-body: #334155; }
[data-theme="dark"] .rmx { --cal-g-bg: rgba(52,211,153,.10); --cal-g-bd: rgba(52,211,153,.35); --cal-g-tx: #6EE7B7;
       --cal-b-bg: rgba(96,165,250,.10); --cal-b-bd: rgba(96,165,250,.35); --cal-b-tx: #93C5FD;
       --cal-a-bg: rgba(251,191,36,.10); --cal-a-bd: rgba(251,191,36,.35); --cal-a-tx: #FCD34D; --cal-body: var(--txt-secondary); }

.rmx .rmx-outline, .rmx .rmx-keep { margin: var(--sp-3) 0 0; }
.rmx .rmx-guide, .rmx .rmx-outline, .rmx .rmx-keep { padding: var(--sp-4); border-radius: 12px; box-shadow: none; overflow: visible; }
.rmx .rmx-guide   { background: var(--cal-g-bg); border: 1px solid var(--cal-g-bd); }
.rmx .rmx-outline { background: var(--cal-b-bg); border: 1px solid var(--cal-b-bd); }
.rmx .rmx-keep    { background: var(--cal-a-bg); border: 1px solid var(--cal-a-bd); padding: 0 var(--sp-4); }
.rmx .rmx-keep[open] { padding-bottom: var(--sp-3); }

.rmx .rmx-guide h3, .rmx .rmx-outline .rmx-over, .rmx .rmx-keep summary {
  display: flex; align-items: center; gap: 8px; margin: 0 0 var(--sp-2);
  font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.rmx .rmx-guide h3 { color: var(--cal-g-tx); }
.rmx .rmx-outline .rmx-over { color: var(--cal-b-tx); }
.rmx .rmx-keep summary { color: var(--cal-a-tx); margin: 0; }
.rmx .rmx-keep summary::after { border-color: var(--cal-a-tx); }

/* small plain icons instead of gradient chips */
.rmx .rmx-guide h3 .rmx-i, .rmx .rmx-outline li .rmx-i {
  width: 15px; height: 15px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: currentColor; flex: none; }
.rmx .rmx-guide h3 .rmx-i { color: var(--cal-g-tx); }
.rmx .rmx-guide p, .rmx .rmx-guide ul.rmx-why { font-size: .9rem; line-height: 1.55; color: var(--cal-body); }
.rmx .rmx-guide ul.rmx-why strong { color: var(--txt-primary); }
.rmx .rmx-keep p { font-size: .84rem; color: var(--cal-body); margin: var(--sp-2) 0 0; }

.rmx .rmx-outline { padding-top: var(--sp-4); }
.rmx .rmx-outline ul { gap: 4px; margin-top: var(--sp-2); }
.rmx .rmx-outline li { padding: 3px 0; border: 0; border-radius: 0; background: none; font-size: .9rem; font-weight: 600; color: var(--txt-primary); gap: 10px; }
.rmx .rmx-outline li .rmx-i { color: var(--cal-b-tx); }

/* From card: badge sits next to the price, whole card keeps full width */

@media (max-width: 900px) {
  .rmx-grid { grid-template-columns: minmax(0, 1fr); }
}

/* rm_fix38b: price badge (the home hero's badge) on the card's top-right edge */
.rmx .av2-card { position: relative; }
.rmx .av2-from.hx-badge { position: absolute; top: 22px; right: 0; z-index: 1; width: auto; margin: 0; border-right: 0; border-radius: var(--r-lg, 14px) 0 0 var(--r-lg, 14px); padding: 6px 16px 6px 6px; }
.rmx .av2-from-was { font-size: .8rem; font-weight: 600; margin-right: 4px; text-decoration: line-through; opacity: .7; }
.rmx .av2-from-note { margin: var(--sp-2) 0 0; font-size: var(--fs-xs); color: var(--txt-muted); }
.rmx .av2-card-inner:has(> .av2-from) > h2 { padding-right: 125px; }
@media (max-width: 640px) {
  .rmx .av2-from.hx-badge { position: relative; top: auto; display: flex; width: fit-content; margin: 0 calc(-1 * var(--sp-4)) var(--sp-4) auto; padding: 5px 14px 5px 5px; }
  .rmx .av2-card-inner:has(> .av2-from) > h2 { padding-right: 0; }
}

.rmx .av2-card-inner > h2 + p { max-width: 56ch; text-wrap: balance; }
@media (max-width: 640px) { .rmx .av2-card-inner > h2 + p { max-width: none; text-wrap: pretty; } }

/* rm_fix38c: tablet widths: only the current step keeps its label, so the five steps stay on one line */
@media (max-width: 900px) and (min-width: 641px) {
  .rmx .fl-stage-list { flex-wrap: nowrap; }
  .rmx .fl-stage-list li:not(.is-current) .fl-stage-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}
