/* ============================================================
   HLRBO Join Flow (/join) — tokens, keyframes, input focus states,
   chip/toggle/plan-card selection states, rail-step states, and
   responsive rules for the Claude Design "Join Flow.dc.html"
   handoff. The Razor view keeps the design's inline styles
   verbatim; ONLY dynamic states and responsive overrides live
   here. Prefix: jf26.
   ============================================================ */

:root {
  --hlrbo-green-dark: #31420E;
  --hlrbo-green: #6E883F;
  --hlrbo-orange: #DC7001;
  --hlrbo-green-hover: #5A7033;
  --hlrbo-orange-hover: #BB5F01;
  --hlrbo-text-primary: #1A1A1A;
  --hlrbo-text-secondary: #666666;
  --hlrbo-text-tertiary: #999999;
  --hlrbo-border: #E0E0E0;
  --hlrbo-bg: #F8F9FA;
  --font-sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.jf26 {
  margin: 0;
  background: #fff;
  font-family: var(--font-sans);
  color: var(--hlrbo-text-primary);
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.jf26 ::selection { background: rgba(220, 112, 1, .3); }
.jf26 p { text-wrap: pretty; }
.jf26 input::placeholder { color: #999999; }
.jf26 a:focus-visible, .jf26 button:focus-visible, .jf26 select:focus-visible, .jf26 input:focus-visible {
  outline: 2px solid var(--hlrbo-orange); outline-offset: 2px;
}

/* ---------- Keyframes (verbatim from the design) ---------- */
@keyframes jf26Rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes jf26FadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .jf26 *, .jf26 *::before, .jf26 *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
  }
}

/* ---------- Step panes (JS shows one at a time; re-display replays
   the rise/fade entry animation, matching the prototype's remount) ---------- */
.jf26-pane { display: none; }
.jf26-pane.is-current { display: block; }
.jf26-pane-rise { animation: jf26Rise .45s ease both; }
.jf26-pane-rise-q { animation: jf26Rise .4s ease both; }
.jf26-done { display: none; }
.jf26-done.is-current { display: flex; animation: jf26FadeIn .6s ease both; }

/* ---------- Text inputs (base + focus state; border-color/background
   must live here, not inline, or the focus rule could never win) ---------- */
.jf26 .jf26-input { border-color: transparent; background: #F4F5EE; }
.jf26 .jf26-input:focus {
  border-color: var(--hlrbo-green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(110, 136, 63, .15);
}

/* ---------- Disabled submit/continue buttons (design: opacity .45,
   cursor not-allowed on invalid). Cursor must NOT be inline on these
   buttons or this rule could never win. ---------- */
.jf26 button[disabled] { opacity: .45; cursor: not-allowed; }
/* Rail steps use disabled purely for the design's rs.locked focus/AT
   semantics — the design never dims them or shows not-allowed. */
.jf26 .jf26-railstep[disabled] { opacity: 1; cursor: default; }

/* ---------- Hover states (from the prototype's style-hover attrs).
   All prefixed .jf26 so they outrank the page's global anchor rule. ---------- */
.jf26 .jf26-btn-green { background: var(--hlrbo-green); color: #fff; cursor: pointer; }
.jf26 .jf26-btn-green:hover:not([disabled]) { background: var(--hlrbo-green-hover); }
.jf26 .jf26-btn-orange { background: var(--hlrbo-orange); color: #fff; }
.jf26 .jf26-btn-orange:hover:not([disabled]) { background: var(--hlrbo-orange-hover); color: #fff; }
.jf26 .jf26-btn-back { background: #fff; border-color: var(--hlrbo-border); }
.jf26 .jf26-btn-back:hover { border-color: var(--hlrbo-green); }
.jf26 .jf26-btn-stepper { background: #fff; border-color: var(--hlrbo-border); }
.jf26 .jf26-btn-stepper:hover { border-color: var(--hlrbo-green); }
.jf26 .jf26-btn-skip { color: var(--hlrbo-green); }
.jf26 .jf26-btn-skip:hover { color: var(--hlrbo-green-hover); }
.jf26 .jf26-btn-backplans { color: var(--hlrbo-text-secondary); }
.jf26 .jf26-btn-backplans:hover { color: var(--hlrbo-text-primary); }
.jf26 .jf26-close { background: rgba(255, 255, 255, .94); color: var(--hlrbo-text-primary); }
.jf26 .jf26-close:hover { background: #F8F9FA; color: var(--hlrbo-text-primary); }
.jf26 .jf26-link-green { font-weight: 600; color: var(--hlrbo-primary-text); }
.jf26 .jf26-link-green:hover { color: var(--hlrbo-green-hover); }
.jf26 .jf26-cta-orange { color: #fff; background: var(--hlrbo-orange); }
.jf26 .jf26-cta-orange:hover { background: var(--hlrbo-orange-hover); color: #fff; }
.jf26 .jf26-cta-outline-w { color: #fff; }
.jf26 .jf26-cta-outline-w:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Progress rail steps (JS applies is-done / is-active /
   is-clickable + the disabled attr). Colors per the design's renderVals
   mapping; cursor follows the design's clickable contract (done steps
   only while the flow is unfinished, minus the locked Account step). ---------- */
.jf26-railstep { cursor: default; }
.jf26-railstep.is-clickable { cursor: pointer; }
.jf26-railstep .jf26-railcircle {
  border-color: rgba(255, 255, 255, .35); background: transparent; color: rgba(255, 255, 255, .6);
}
.jf26-railstep.is-active .jf26-railcircle { border-color: var(--hlrbo-orange); background: var(--hlrbo-orange); color: #fff; }
.jf26-railstep.is-done .jf26-railcircle { border-color: var(--hlrbo-green); background: var(--hlrbo-green); }
.jf26-railstep .jf26-railcheck { display: none; }
.jf26-railstep.is-done .jf26-railcheck { display: inline-flex; }
.jf26-railstep.is-done .jf26-railnum { display: none; }
.jf26-railstep .jf26-raillabel { color: rgba(255, 255, 255, .6); }
.jf26-railstep.is-active .jf26-raillabel, .jf26-railstep.is-done .jf26-raillabel { color: #fff; }
.jf26-railstep .jf26-railsub { color: rgba(255, 255, 255, .35); }
.jf26-railstep.is-active .jf26-railsub, .jf26-railstep.is-done .jf26-railsub { color: rgba(255, 255, 255, .5); }

/* Rail matches box: hidden on the account step (design: showMatches = step !== 'account') */
.jf26-railmatches { display: none; }
.jf26-railmatches.is-on { display: flex; }

/* ---------- Selection chips (species / states / acreage share the
   design's chip() color mapping) ---------- */
.jf26 .jf26-chip { border-color: var(--hlrbo-border); background: #fff; color: var(--hlrbo-text-primary); }
.jf26 .jf26-chip.is-on { border-color: var(--hlrbo-green); background: var(--hlrbo-green); color: #fff; }
.jf26 .jf26-chip .jf26-chipcheck { border-color: var(--hlrbo-border); background: transparent; }
.jf26 .jf26-chip.is-on .jf26-chipcheck { border-color: #fff; background: #fff; }
.jf26 .jf26-chip .jf26-chipcheck svg { display: none; }
.jf26 .jf26-chip.is-on .jf26-chipcheck svg { display: block; }

/* ---------- Alerts switch (design: green when on, #D6D8CE off;
   knob left 3px -> 23px) ---------- */
.jf26 .jf26-toggle { background: #D6D8CE; }
.jf26 .jf26-toggle.is-on { background: var(--hlrbo-green); }
.jf26 .jf26-toggle .jf26-toggleknob { left: 3px; }
.jf26 .jf26-toggle.is-on .jf26-toggleknob { left: 23px; }

/* Fine-tune expander */
.jf26-fine-body { display: none; }
.jf26-fine.is-open .jf26-fine-body { display: grid; }
.jf26-fine-chev { transform: rotate(0deg); transition: transform .2s ease; }
.jf26-fine.is-open .jf26-fine-chev { transform: rotate(180deg); }

/* ---------- Plan cards (design: selected = green border, lifted
   shadow, green tier label, green radio w/ check) ---------- */
.jf26 .jf26-plancard { border-color: var(--hlrbo-border); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.jf26 .jf26-plancard.is-selected { border-color: var(--hlrbo-green); box-shadow: 0 8px 24px rgba(49, 66, 14, .14); }
.jf26 .jf26-plancard .jf26-plantier { color: var(--hlrbo-text-secondary); }
.jf26 .jf26-plancard.is-selected .jf26-plantier { color: var(--hlrbo-green); }
.jf26 .jf26-plancard .jf26-planradio { border-color: var(--hlrbo-border); background: #fff; }
.jf26 .jf26-plancard.is-selected .jf26-planradio { border-color: var(--hlrbo-green); background: var(--hlrbo-green); }
.jf26 .jf26-plancard .jf26-planradio svg { display: none; }
.jf26 .jf26-plancard.is-selected .jf26-planradio svg { display: block; }

/* Inline form error (documented-intentional addition — the prototype has
   no failure UI; real signup can fail, e.g. duplicate email) */
.jf26-error { display: none; font-size: 13.5px; font-weight: 600; color: #DC3545; line-height: 1.5; }
.jf26-error.is-on { display: block; }

/* ---------- Responsive (the prototype is desktop-only; these keep the
   flow usable on tablet/phone without altering desktop pixels) ---------- */
@media (max-width: 1023px) {
  .jf26-shell { height: auto !important; min-height: 100vh; overflow: visible !important; }
  .jf26-rail { display: none !important; }
  .jf26-main { overflow-y: visible !important; }
  .jf26-plan-grid { grid-template-columns: 1fr !important; max-width: 480px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .jf26-name-grid, .jf26-species-grid { grid-template-columns: 1fr !important; }
  .jf26-state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .jf26-fine-grid { grid-template-columns: 1fr !important; }
  .jf26-pay-grid { grid-template-columns: 1fr 1fr !important; }
}
