/* Triovant Systems — Requirements Wizard Styles */
.wiz-container { max-width: 860px; margin: 0 auto; padding: 24px 0 60px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; min-height: 32px; }
.chip {
  display: inline-flex; gap: 8px; align-items: center;
  background: #E6F7F8; color: var(--navy);
  border: 1px solid var(--teal); border-radius: 999px;
  padding: 5px 8px 5px 14px; font-size: 0.9rem; font-weight: 500;
}
.chip button {
  border: 0; background: transparent; color: var(--teal);
  font: 600 0.82rem inherit; cursor: pointer; padding: 2px 8px;
  border-radius: 999px; transition: background .15s;
}
.chip button:hover { background: rgba(11, 116, 128, 0.15); }
.chip button:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

/* Step selection cards */
.step h2 { font-size: 1.35rem; margin: 0 0 6px; color: var(--navy); }
.step > p.step-desc { color: var(--muted); margin: 0 0 18px; font-size: 0.98rem; }
.wizard-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 22px; }
.wizard-card {
  text-align: left; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; cursor: pointer;
  min-height: 80px; transition: border-color .2s, box-shadow .2s, transform .15s;
  display: flex; flex-direction: column; justify-content: center;
}
.wizard-card:hover:not(:disabled) {
  border-color: var(--teal);
  box-shadow: 0 6px 16px rgba(16,24,32,.08);
  transform: translateY(-1px);
}
.wizard-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.wizard-card b { display: block; font-size: 1.05rem; margin-bottom: 4px; color: var(--navy); font-weight: 600; }
.wizard-card span { font-size: 0.88rem; color: var(--muted); line-height: 1.4; display: block; }
.wizard-card.sel { background: #E6F7F8; border-color: var(--teal); }

/* Sticky progress bar */
.wiz-bar {
  position: sticky; top: 72px; background: var(--bg);
  padding: 12px 0 10px; z-index: 20;
  border-bottom: 1px solid rgba(226,232,240,0.9);
  margin-bottom: 24px;
}
.wiz-track { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.wiz-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  border-radius: 4px; transition: width .25s ease-out;
}
.wiz-pct { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--muted); margin-top: 6px; font-weight: 500; }

/* Sections */
.wiz-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 26px 12px;
  margin: 22px 0; box-shadow: 0 1px 4px rgba(16,24,32,.04);
}
.wiz-section > h2 {
  font-size: 1.25rem; margin: 0 0 4px; color: var(--navy);
  border-bottom: 2px solid #E6F7F8; padding-bottom: 8px;
}
.wiz-section > p { margin: 0 0 20px; color: var(--muted); font-size: 0.95rem; }

/* Fieldsets & Questions */
fieldset.wiz-fs { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend.wiz-lg { font-weight: 600; font-size: 1rem; color: var(--navy); padding: 0; margin-bottom: 10px; width: 100%; }
legend.wiz-lg small { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 0.88rem; }
.wiz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
label.wiz-opt {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; font-size: 0.94rem;
  line-height: 1.4; background: var(--bg);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
label.wiz-opt:hover { border-color: var(--teal); background: #FAFDFE; }
label.wiz-opt:has(input:checked) { background: #E6F7F8; border-color: var(--teal); font-weight: 500; color: var(--navy); }
label.wiz-opt:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--teal); margin-top: 3px; flex: none; width: 18px; height: 18px; }
input.wiz-other {
  width: 100%; margin-top: 10px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font: inherit; font-size: 0.94rem; color: var(--text);
}
textarea.wiz-txt {
  width: 100%; min-height: 80px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font: inherit; font-size: 0.94rem; color: var(--text);
  resize: vertical;
}
input.wiz-other:focus, textarea.wiz-txt:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(11,116,128,.2); outline-offset: 1px;
}

/* Contact Grid */
.wiz-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.wiz-contact-field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--navy); }
.wiz-contact-field label .req { color: var(--err); margin-left: 2px; }
.wiz-contact-field input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 8px; background: #fff; font: inherit; font-size: 0.95rem; color: var(--text);
}
.wiz-contact-field input:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(11,116,128,.2);
}
.wiz-contact-field input[aria-invalid="true"] { border-color: var(--err); }
.wiz-contact-field .error { color: var(--err); font-size: 0.85rem; margin: 4px 0 0; min-height: 1.2em; }

/* Action Buttons & Status */
.wiz-acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.btn-wa {
  background: #25D366; border-color: #25D366; color: #06310F; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-wa:hover { background: #20BA5A; border-color: #20BA5A; color: #06310F; }
.btn-wa:focus-visible { outline: 2px solid #20BA5A; outline-offset: 2px; }
.wiz-status {
  padding: 16px 20px; border-radius: 8px; margin: 18px 0;
  font-size: 0.96rem; display: none; line-height: 1.5;
}
.wiz-status.ok { display: block; background: #E6F7F0; border: 1px solid #14764F; color: #0E5136; font-weight: 500; }
.wiz-status.err { display: block; background: #FDEDED; border: 1px solid #B3261E; color: #7B1712; }
.wiz-sum-label { font-weight: 600; font-size: 0.92rem; margin-top: 18px; margin-bottom: 6px; display: none; color: var(--navy); }
.wiz-sum-box {
  width: 100%; min-height: 240px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85rem; background: #F1F5F9; border: 1px solid var(--border);
  border-radius: 8px; padding: 14px; margin-top: 6px; display: none;
  line-height: 1.5; color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .wiz-fill { transition: none; }
  .wizard-card { transition: none; }
}

@media (max-width: 600px) {
  .wiz-section { padding: 18px 16px 8px; }
  .wiz-opts { grid-template-columns: 1fr; }
  .wizard-cards { grid-template-columns: 1fr; }
  .wiz-acts button, .wiz-acts a { width: 100%; justify-content: center; }
  .wiz-bar { top: 64px; }
}
