/* ── Service Plan Recommender — /tools/service-plan-recommender ──────────
   Everything is prefixed .spr- and nothing targets a bare element, so the
   tool cannot leak styling into the surrounding theme. Palette matches the
   other free tools: navy hero, cyan accent. */

.spr-wrap { color: #0d1f3c; }

/* Hero */
.spr-hero { background: #0f2544; padding: 56px 24px 40px; text-align: center; }
.spr-hero-inner { max-width: 660px; margin: 0 auto; }
.spr-hero-icon { margin-bottom: 14px; }
.spr-hero-icon svg { width: 52px; height: 52px; }
.spr-hero-title {
  font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: #fff;
  line-height: 1.2; margin: 0 0 12px;
}
.spr-hero-sub { font-size: 15.5px; color: rgba(255,255,255,.72); line-height: 1.65; margin: 0; }

/* Body */
.spr-outer { max-width: 760px; margin: 0 auto; padding: 36px 24px 80px; }

/* Progress rail */
.spr-rail { display: flex; gap: 5px; margin-bottom: 22px; }
.spr-rail i { flex: 1; height: 3px; border-radius: 3px; background: #e2e8f0; transition: background .25s; }
.spr-rail i.on { background: #017bbd; }

/* Question card */
.spr-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 26px; }
.spr-step {
  font-family: 'SF Mono', Consolas, Menlo, monospace; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: #7c8ca3;
}
.spr-card h2 { font-size: 20px; margin: 6px 0 4px; letter-spacing: -.01em; line-height: 1.3; }
.spr-hint { color: #7c8ca3; font-size: 13.5px; margin: 0 0 18px; }

/* Options */
.spr-opts { display: flex; flex-direction: column; gap: 9px; }
.spr-opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  background: #fafbfd; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 14px 16px; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .15s, background .15s;
}
.spr-opt:hover { border-color: #017bbd; background: #fff; }
.spr-opt:focus-visible { outline: 2px solid #017bbd; outline-offset: 2px; }
.spr-opt.sel { border-color: #017bbd; background: #f0f8fd; }
.spr-opt .k { font-weight: 650; font-size: 15px; display: block; }
.spr-opt .d { color: #7c8ca3; font-size: 13px; margin-top: 2px; line-height: 1.45; display: block; }
.spr-tick {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; margin-top: 2px;
  border: 2px solid #cbd9e6; position: relative;
}
.spr-tick.sq { border-radius: 5px; }
.spr-opt.sel .spr-tick { border-color: #017bbd; background: #017bbd; }
.spr-opt.sel .spr-tick::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.spr-opt.sel .spr-tick.sq::after { border-radius: 2px; }

/* Toggle groups */
.spr-tgroup { border-top: 1px solid #e2e8f0; padding-top: 14px; margin-top: 14px; }
.spr-tgroup:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.spr-tlabel { font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.spr-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.spr-chip {
  background: #fafbfd; border: 1px solid #e2e8f0; border-radius: 999px;
  padding: 7px 14px; font: inherit; font-size: 13.5px; color: #475569; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.spr-chip:hover { border-color: #cbd9e6; }
.spr-chip:focus-visible { outline: 2px solid #017bbd; outline-offset: 2px; }
.spr-chip.sel { background: #017bbd; border-color: #017bbd; color: #fff; font-weight: 600; }

/* Buttons */
.spr-bar { display: flex; gap: 10px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.spr-btn {
  font: inherit; font-size: 14px; font-weight: 650; border-radius: 9px; padding: 11px 20px;
  cursor: pointer; border: 1px solid transparent; text-decoration: none; display: inline-block;
  transition: filter .15s, border-color .15s, color .15s;
}
.spr-btn:focus-visible { outline: 2px solid #017bbd; outline-offset: 2px; }
.spr-btn-p { background: #017bbd; color: #fff; }
.spr-btn-p:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.spr-btn-p[disabled] { opacity: .4; cursor: not-allowed; filter: none; }
.spr-btn-g { background: transparent; color: #475569; border-color: #cbd9e6; }
.spr-btn-g:hover { border-color: #7c8ca3; color: #0d1f3c; text-decoration: none; }

/* The full range, with the recommendation ticked. Five across on desktop,
   wrapping down to two and then one. */
.spr-plans {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px;
}
.spr-plan {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 12px 12px 11px; position: relative;
}
.spr-plan.rec { border-color: #017bbd; background: #f0f8fd; box-shadow: 0 0 0 1px #017bbd inset; }
/* Ruled out: quieted, never hidden — the card stays readable and the row never
   reflows. Transition makes the narrowing legible as it happens. */
.spr-plan.out { opacity: .38; filter: saturate(.25); }
.spr-plan { transition: opacity .28s ease, filter .28s ease, border-color .2s, background .2s; }
@media (prefers-reduced-motion: reduce) { .spr-plan { transition: none; } }
.spr-plan-top { display: flex; align-items: center; gap: 6px; }
.spr-plan-tick {
  flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid #cbd9e6; display: inline-flex; align-items: center;
  justify-content: center; font-size: 10px; line-height: 1; color: transparent;
}
.spr-plan.rec .spr-plan-tick { background: #017bbd; border-color: #017bbd; color: #fff; }
.spr-plan-name { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.spr-plan.rec .spr-plan-name { color: #015d8f; }
.spr-plan-desc { font-size: 11.5px; color: #7c8ca3; line-height: 1.45; margin-top: 5px; }
.spr-plan-flag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: #017bbd; margin-top: 7px;
}
.spr-plans-note { font-size: 12px; color: #7c8ca3; margin: -8px 0 16px; }

@media (max-width: 780px) { .spr-plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .spr-plans { grid-template-columns: 1fr; } }

/* Result */
.spr-verdict {
  background: linear-gradient(140deg, #0d1f3c, #14304f);
  border-radius: 14px; padding: 28px 26px; color: #eaf1f8; margin-bottom: 16px;
}
.spr-verdict .lbl {
  font-family: 'SF Mono', Consolas, Menlo, monospace; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: #3db5f0;
}
.spr-verdict h3 { font-size: clamp(23px, 3.6vw, 30px); margin: 8px 0 6px; letter-spacing: -.02em; color: #fff; line-height: 1.2; }
.spr-verdict .scope { font-size: 15px; color: #b9cde4; }
.spr-badge {
  display: inline-block; margin-top: 14px; background: rgba(61,181,240,.16);
  border: 1px solid rgba(61,181,240,.3); color: #9fd8f7; font-size: 12.5px;
  font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.spr-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px 24px; margin-bottom: 14px; }
.spr-panel h4 {
  font-size: 12px; font-family: 'SF Mono', Consolas, Menlo, monospace;
  letter-spacing: .12em; text-transform: uppercase; color: #7c8ca3; margin: 0 0 12px; font-weight: 600;
}
.spr-reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.spr-reasons li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.spr-reasons li::before { content: "\2192"; color: #017bbd; flex: 0 0 auto; font-weight: 700; }
.spr-incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 20px; }
.spr-incl div { display: flex; gap: 9px; font-size: 14px; line-height: 1.5; }
.spr-incl div::before { content: "\2713"; color: #15803d; font-weight: 700; flex: 0 0 auto; }
.spr-calc {
  font-family: 'SF Mono', Consolas, Menlo, monospace; font-size: 12.5px; color: #475569;
  background: #fafbfd; border: 1px dashed #cbd9e6; border-radius: 9px;
  padding: 12px 14px; margin-top: 12px; line-height: 1.7; overflow-x: auto;
}
.spr-alt { border-left: 3px solid #cbd9e6; padding-left: 14px; font-size: 14px; color: #475569; }
.spr-alt b { color: #0d1f3c; }
.spr-note { font-size: 13px; color: #7c8ca3; margin-top: 14px; line-height: 1.55; }
.spr-cta-copy { margin: 0 0 14px; font-size: 14.5px; color: #475569; }

/* Lead popup */
.spr-overlay {
  display: none; position: fixed; inset: 0; background: rgba(13,31,60,.55);
  z-index: 9999; align-items: center; justify-content: center; padding: 20px;
}
.spr-modal {
  background: #fff; border-radius: 14px; max-width: 460px; width: 100%;
  padding: 24px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  max-height: 90vh; overflow-y: auto;
}
.spr-modal-x {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  font-size: 22px; color: #94a3b8; cursor: pointer; line-height: 1;
}
.spr-modal-x:focus-visible { outline: 2px solid #017bbd; outline-offset: 2px; }
.spr-modal-h { font-size: 19px; font-weight: 800; color: #0d1f3c; margin: 0 0 3px; }
.spr-modal-sub { font-size: 13px; color: #64748b; margin: 0 0 14px; line-height: 1.5; }
.spr-field { margin-bottom: 10px; }
.spr-field label { display: block; font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 4px; }
.spr-field input, .spr-field select {
  width: 100%; padding: 9px 11px; border: 1.5px solid #dde5ef; border-radius: 8px;
  font-size: 13.5px; box-sizing: border-box; background: #fff; font-family: inherit;
}
.spr-field input:focus, .spr-field select:focus { outline: 2px solid #017bbd; outline-offset: 1px; border-color: #017bbd; }
.spr-answers { margin: 4px 0 12px; }
.spr-answers summary { font-size: 12.5px; color: #017bbd; cursor: pointer; }
.spr-answers div {
  white-space: pre-wrap; font-size: 12px; color: #475569; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; margin-top: 8px; line-height: 1.55;
}
.spr-modal-err {
  display: none; background: #fef2f2; color: #b91c1c; font-size: 12px;
  padding: 8px 11px; border-radius: 8px; margin-bottom: 10px;
}
.spr-btn-full { width: 100%; }
.spr-modal-ok { display: none; text-align: center; padding: 18px 0 6px; }
.spr-modal-ok-icon { font-size: 36px; margin-bottom: 8px; }
.spr-modal-ok h3 { font-size: 17px; font-weight: 800; color: #0d1f3c; margin: 0 0 5px; }
.spr-modal-ok p { font-size: 13px; color: #64748b; margin: 0; }

.spr-noscript {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
  padding: 16px 18px; font-size: 14.5px; color: #78350f;
}
.spr-foot { font-size: 13px; color: #7c8ca3; margin-top: 26px; line-height: 1.6; text-align: center; }

@media (max-width: 560px) {
  .spr-card, .spr-panel { padding: 20px 18px; }
  .spr-verdict { padding: 24px 20px; }
}
