/* ==========================================================================
   Wrenfield Movers — the move planner's CSS (the wizard, its result, the send
   form, the plain page without JavaScript, and the plan table the staff
   screen borrows).

   Loaded AFTER assets/css/site.css by the planner page, api/plan.php and the
   staff screens. EVERY RULE IS SCOPED UNDER `.wrf-planner` and every class is
   `wrf-`, so no marketing component reaches a planner control (§32.4 #6) and
   no planner rule reaches a marketing page. Every colour is one of
   site.css's own `:root` tokens.

   THE RULES THIS SHEET KEEPS (APP-SPEC §9):
     - radios and check boxes keep their natural width; a label wraps beside
       its control and never squeezes to one word per line at 320 px (§32.4 #7);
     - the two ends of a range share ONE class, `.wrf-end`, and one size
       (6 RCNY § 5-12(a));
     - text on its own ground at 4.5:1 or better (ink, body and muted on paper
       and bone; white on the primary button);
     - `[hidden]` hides (§25.9: a display rule must not outrank it).
   ========================================================================== */

.wrf-planner [hidden] { display: none !important; }
.wrf-planner { color: var(--body); font-family: var(--sans); }
.wrf-planner .wrf-app { min-height: 12rem; }
.wrf-planner .wrf-step:focus { outline: none; }
.wrf-planner .wrf-step:focus-visible { outline: 3px solid var(--seal-dk); outline-offset: 4px; }

/* ------------------------------------------------------------ headings */
.wrf-planner .wrf-h { font-family: var(--serif); color: var(--ink); font-size: clamp(1.35rem, 3.4vw, 1.75rem); line-height: 1.2; margin: 0 0 .8rem; }
.wrf-planner .wrf-h3 { font-family: var(--serif); color: var(--ink); font-size: 1.15rem; line-height: 1.25; margin: 1.6rem 0 .6rem; }

/* ------------------------------------------------------------ progress */
.wrf-planner .wrf-progress { height: 6px; background: var(--bone-2); border-radius: 999px; overflow: hidden; margin: 0 0 .5rem; }
.wrf-planner .wrf-progress-fill { height: 100%; background: var(--seal-dk); border-radius: 999px; }
.wrf-planner .wrf-count { font-size: .9rem; color: var(--muted); margin: 0 0 1.1rem; }

/* ------------------------------------------------------------ questions */
.wrf-planner .wrf-set { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); padding: .9rem 1rem 1rem; margin: 0 0 1rem; min-width: 0; }
.wrf-planner .wrf-set--bad { border-color: var(--signal); }
.wrf-planner .wrf-set > legend { font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.35; padding: 0 .3rem; max-width: 100%; white-space: normal; }
.wrf-planner .wrf-help { font-size: .92rem; color: var(--muted); line-height: 1.5; margin: .25rem 0 .7rem; }
.wrf-planner .wrf-choices { display: flex; flex-direction: column; gap: .45rem; }
.wrf-planner .wrf-choice {
  display: flex; align-items: flex-start; gap: .6rem; cursor: pointer;
  padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  color: var(--body); line-height: 1.4; min-width: 0;
}
.wrf-planner .wrf-choice:hover { border-color: var(--line-2); background: var(--bone); }
.wrf-planner .wrf-choice input { flex: 0 0 auto; width: auto; height: auto; margin: .2rem 0 0; accent-color: var(--seal-dk); }
.wrf-planner .wrf-choice span { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.wrf-planner .wrf-choice:has(input:checked) { border-color: var(--seal-dk); background: var(--seal-lt); }
.wrf-planner .wrf-choice:has(input:focus-visible) { outline: 3px solid var(--seal-dk); outline-offset: 2px; }
.wrf-planner .wrf-check { border: 0; background: transparent; padding: .35rem 0; }
.wrf-planner .wrf-check:hover { background: transparent; }
.wrf-planner .wrf-check--bad span { color: var(--signal); }

/* ------------------------------------------------------------ actions */
.wrf-planner .wrf-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1.1rem 0; }
.wrf-planner .wrf-actions .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ------------------------------------------------------------ the notice */
.wrf-planner .wrf-notice {
  font-size: .95rem; line-height: 1.55; color: var(--warm-ink); background: var(--brass-lt);
  border: 1px solid var(--warm-line); border-left: 4px solid var(--warm-ink); border-radius: var(--r); padding: .75rem .9rem; margin: 1.2rem 0;
}
.wrf-planner .wrf-notice strong { color: var(--warm-ink); }

/* ------------------------------------------------------------ the result */
.wrf-planner .wrf-table-wrap { overflow-x: auto; }
.wrf-planner .wrf-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); font-size: 1rem; }
.wrf-planner .wrf-table th, .wrf-planner .wrf-table td { text-align: left; vertical-align: top; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.wrf-planner .wrf-table th { color: var(--muted); font-weight: 600; width: 40%; font-size: .95rem; }
.wrf-planner .wrf-table td { color: var(--ink); }
.wrf-planner .wrf-table tr:last-child th, .wrf-planner .wrf-table tr:last-child td { border-bottom: 0; }
.wrf-planner .wrf-table .wrf-total th, .wrf-planner .wrf-table .wrf-total td { background: var(--bone); color: var(--ink); font-weight: 700; }
/* BOTH ENDS OF EVERY RANGE: ONE CLASS, ONE SIZE */
.wrf-planner .wrf-end { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1em; color: var(--brass-dk); white-space: nowrap; }
.wrf-planner .wrf-total .wrf-end { color: var(--brass-dk); }
.wrf-planner .wrf-row-note { display: block; font-size: .88rem; font-weight: 400; color: var(--muted); margin-top: .2rem; }
@media (max-width: 520px) {
  .wrf-planner .wrf-table th, .wrf-planner .wrf-table td { display: block; width: auto; border-bottom: 0; padding: .45rem .7rem; }
  .wrf-planner .wrf-table th { padding-bottom: 0; }
  .wrf-planner .wrf-table tr { display: block; border-bottom: 1px solid var(--line); }
}
.wrf-planner .wrf-block { margin: 1.2rem 0; }
.wrf-planner .wrf-special { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: .2rem 1rem .6rem; }
.wrf-planner .wrf-special ul, .wrf-planner .wrf-disclosure { margin: 0; padding-left: 1.15rem; }
.wrf-planner .wrf-special li, .wrf-planner .wrf-disclosure li { margin: .4rem 0; line-height: 1.55; }
.wrf-planner .wrf-disclosure strong { color: var(--ink); }
.wrf-planner .wrf-disclosure a, .wrf-planner .wrf-help a { color: var(--seal-dk); }
.wrf-planner .wrf-answers { margin: 1.2rem 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .6rem 1rem; }
.wrf-planner .wrf-answers summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.wrf-planner .wrf-answers dl, .wrf-planner .wrf-answers-list { margin: .6rem 0 0; }
.wrf-planner .wrf-answers dt, .wrf-planner .wrf-answers-list dt { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.wrf-planner .wrf-answers dd, .wrf-planner .wrf-answers-list dd { margin: .1rem 0 0; color: var(--ink); }

/* the result screen and the refusal screen (each a .wrf-step) */
.wrf-planner .wrf-result .wrf-table-wrap { margin: 0 0 1rem; }
.wrf-planner .wrf-refused .wrf-refusal { margin: 0 0 1rem; }

/* ------------------------------------------------------------ refusals */
.wrf-planner .wrf-refusal { font-size: 1.02rem; line-height: 1.6; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-left: 4px solid var(--signal); border-radius: var(--r); padding: .8rem 1rem; }
.wrf-planner .wrf-alert { color: var(--ink); background: var(--signal-lt); border: 1px solid var(--signal); border-radius: var(--r); padding: .65rem .85rem; margin: .8rem 0; }

/* ------------------------------------------------------------ the send form */
.wrf-planner .wrf-send { margin: 1.6rem 0 0; padding: 1.1rem 1.1rem .4rem; background: var(--bone); border: 1px solid var(--line); border-radius: var(--r-lg); }
.wrf-planner .wrf-send .wrf-h3 { margin-top: 0; }
.wrf-planner .wrf-grid { display: grid; grid-template-columns: 1fr; gap: .2rem 1rem; }
@media (min-width: 640px) { .wrf-planner .wrf-grid { grid-template-columns: 1fr 1fr; } }
.wrf-planner .wrf-field { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 .8rem; min-width: 0; }
.wrf-planner .wrf-field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.wrf-planner .wrf-field input { font: inherit; color: var(--body); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: .55rem .65rem; width: 100%; box-sizing: border-box; }
.wrf-planner .wrf-field input:focus-visible { outline: 3px solid var(--seal-dk); outline-offset: 1px; }
.wrf-planner .wrf-field--bad input { border-color: var(--signal); }
.wrf-planner .wrf-field--bad label { color: var(--signal); }
.wrf-planner .wrf-field .wrf-help { margin: 0; }
.wrf-planner .wrf-lead { color: var(--ink); line-height: 1.55; margin: 1rem 0 .4rem; }
/* THE HONEYPOT: out of sight and out of the tab order, never display:none (some bots skip those) */
.wrf-planner .wrf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ sent */
.wrf-planner .wrf-sent .wrf-ref { font-variant-numeric: tabular-nums; color: var(--ink); letter-spacing: .02em; }

/* ------------------------------------------------------------ the plain page */
.wrf-planner .wrf-plain { margin: 1rem 0; }
.wrf-page .wrf-demo-notice { margin-top: 2rem; }
