/* Varicose vein pre-consultation guide. Uses the site tokens from site.css. */

.vein-tool-page { background: var(--bg); }
.vein-tool-page .container { max-width: 980px; }

.vein-wizard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 24px 50px -36px rgba(11,58,114,.35);
}
.vein-wizard .card-body { padding: 2rem; }
@media (min-width: 1000px) { .vein-wizard .card-body { padding: 2.5rem; } }

.wizard-progress .small { color: var(--muted); }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--navy); border-radius: 999px; transition: width .25s ease; }

.wizard-question-title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.15; margin-bottom: .5rem; }
.wizard-question-help { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; }

.wizard-options { display: grid; gap: 1rem; }
.wizard-options.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wizard-options.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.wizard-option {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: var(--card);
  cursor: pointer;
  text-align: left;
  appearance: none;
  font: inherit;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.wizard-option:hover, .wizard-option:focus-visible {
  border-color: var(--navy);
  box-shadow: 0 14px 30px -22px rgba(11,58,114,.5);
  transform: translateY(-1px);
}
.wizard-option:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wizard-option.selected { border-color: var(--navy); background: var(--bg); box-shadow: inset 0 0 0 1px var(--navy); }
.wizard-option.selected::after {
  content: "\2713";
  position: absolute; top: .6rem; right: .6rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: .9rem; font-weight: 700; line-height: 1.5rem; text-align: center;
}
.wizard-option.selected .wizard-option-title { padding-right: 2rem; }
.wizard-option svg, .wizard-option img { width: 100%; max-height: 130px; margin-bottom: .75rem; }
.wizard-option-title { font-weight: 700; margin-bottom: .25rem; }
.wizard-option-text { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

.wizard-nav { gap: .8rem; }
.wizard-nav .btn { min-width: 110px; }

.result-panel { border-radius: var(--radius); padding: 1.25rem 1.4rem; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--navy); }
.result-panel.warning { border-left-color: var(--warn); }
.result-panel.urgent { border-left-color: #a33; background: #fbf1f0; }
.result-panel .h5 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }

.clinic-summary {
  white-space: pre-wrap;
  background: var(--navy-deep);
  color: #f5efe6;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  font-size: .92rem;
  max-height: 460px;
  overflow: auto;
}

.wizard-result-actions { gap: .6rem; }

@media (max-width: 768px) {
  .wizard-options.grid-2, .wizard-options.grid-3 { grid-template-columns: 1fr; }
  .vein-wizard .card-body { padding: 1.4rem; }
}

/* Static explainer below the wizard */
.vein-guide-explainer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.vein-type-card { height: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--card); }
.vein-type-card img { display: block; height: 110px; margin: 0 auto .75rem; }
.vein-type-card .h5 { font-family: var(--serif); font-weight: 500; }
.vein-guide-faq { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.vein-guide-faq summary { cursor: pointer; font-weight: 700; font-family: var(--serif); font-size: 1.05rem; }
.vein-guide-faq p { margin: .5rem 0 0; color: var(--muted); }
.vein-guide-explainer ul { list-style: disc; padding-left: 1.5rem; }

#wizardContent:focus { outline: none; }
.wizard-nav .btn[style*="hidden"] { pointer-events: none; }

.guide-head { margin-bottom: 2rem; }
.guide-head .lead { max-width: 72ch; text-wrap: balance; }
