/* ============================================================
   QUALIFY GATEWAY, page-specific styles for /Qualify.
   Builds on the shared tokens and .wizard-*/.pricing-card/
   .form-* classes already defined in marketing.css.
============================================================ */

.qualify-container {
  max-width: 940px;
  margin: 0 auto 4rem;
}

.qualify-step-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.375rem;
}

.qualify-step-sub {
  color: var(--text-2);
  font-size: 0.9375rem;
  margin: 0 0 1.75rem;
  max-width: 60ch;
}

.qualify-step-panel { display: none; }
.qualify-step-panel.active { display: block; animation: qzFade 0.2s ease; }

@keyframes qzFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.qualify-error {
  background: #fee;
  border: 1.5px solid #fcc;
  padding: 1rem 1.125rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  color: #b91c1c;
  font-size: 0.875rem;
}

/* ---- Step 1: headcount + deployment model ---- */
.qz-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--stroke-mid);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  margin: 0.5rem 0 0;
}

.qz-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--navy);
  cursor: pointer;
}

.qz-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--navy);
  cursor: pointer;
}

.count-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.count-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.count-num span { font-size: 0.9375rem; font-weight: 600; color: var(--text-3); }

.tier-flag {
  margin-top: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 74, 173, 0.06);
  color: var(--navy);
  padding: 0.5rem 0.9375rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.model-toggle { display: flex; gap: 1rem; flex-wrap: wrap; }

.model-card {
  flex: 1;
  min-width: 230px;
  border: 1.5px solid var(--stroke-mid);
  border-radius: 0.875rem;
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  transition: all 0.25s var(--spring);
  background: var(--white);
}

.model-card:hover { border-color: var(--navy); background: rgba(0, 74, 173, 0.04); }

.model-card.selected {
  border-color: var(--navy);
  background: rgba(0, 74, 173, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.08);
}

.model-card .m-title { font-weight: 700; font-size: 0.9375rem; color: var(--navy); margin-bottom: 0.25rem; }
.model-card .m-desc { font-size: 0.8125rem; color: var(--text-3); }

.model-card .m-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--stroke-mid);
  display: inline-block;
  margin-right: 0.5rem;
  position: relative;
  vertical-align: middle;
}

.model-card.selected .m-radio { border-color: var(--navy); }
.model-card.selected .m-radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--navy);
}

/* ---- Step 2: plan cards (extends .pricing-card) ---- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; } }

.pricing-card.selectable { cursor: pointer; }
.pricing-card.selected { border-color: var(--navy); box-shadow: 0 8px 24px rgba(0, 74, 173, 0.16); }
.pricing-card.selected.featured-dark { border-color: var(--gold); }
.pricing-card.disabled { cursor: not-allowed; opacity: 0.5; }
.pricing-card.disabled .plan-pick-tag { background: var(--surface); color: var(--text-3); border-color: var(--stroke); }

.plan-pick-tag {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem;
  border-radius: 0.625rem;
  background: var(--surface);
  color: var(--text-3);
  border: 1px solid var(--stroke);
}

.pricing-card.selected .plan-pick-tag { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---- Step 3: add-ons ---- */
#qzNext:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.addon-card {
  border: 1.5px solid var(--stroke-mid);
  border-radius: 0.875rem;
  padding: 1.125rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.875rem;
  cursor: pointer;
}

.addon-card.on { border-color: var(--navy); background: rgba(0, 74, 173, 0.04); }
.addon-check { width: 20px; height: 20px; accent-color: var(--navy); flex-shrink: 0; }
.addon-title { font-weight: 700; color: var(--navy); font-size: 0.9375rem; }
.addon-desc { font-size: 0.8125rem; color: var(--text-3); margin-top: 0.125rem; }
.addon-price { font-weight: 700; color: var(--navy); font-size: 0.9375rem; margin-left: auto; white-space: nowrap; }

.included-note {
  background: #e7f7ef;
  color: #166b44;
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.included-note.muted { background: var(--surface); color: var(--text-3); }

/* ---- Step 5: billing cadence + payment preference ---- */
.cadence-row { display: flex; gap: 0.75rem; margin: 0.375rem 0 1.125rem; }

.cadence-opt {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  border: 1.5px solid var(--stroke-mid);
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

.cadence-opt.selected { border-color: var(--navy); background: rgba(0, 74, 173, 0.06); color: var(--navy); }

.pay-grid { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }

.pay-card {
  border: 1.5px solid var(--stroke-mid);
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  cursor: pointer;
}

.pay-card.selected { border-color: var(--navy); background: rgba(0, 74, 173, 0.04); }

.pay-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.625rem;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--navy);
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.pay-name { font-weight: 700; font-size: 0.9375rem; color: var(--navy); }
.pay-desc { font-size: 0.8125rem; color: var(--text-3); }

.sales-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border: 1.5px solid var(--navy);
  background: rgba(0, 74, 173, 0.05);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.125rem;
}

.sales-title { font-weight: 700; color: var(--navy); font-size: 0.9rem; margin-bottom: 0.2rem; }
.sales-desc { font-size: 0.8125rem; color: var(--text-3); max-width: 44ch; }

.no-payment-card {
  border: 1.5px solid var(--stroke-mid);
  border-radius: 0.875rem;
  padding: 1.5rem 1.625rem;
  background: var(--surface);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.no-payment-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e7f7ef;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---- Step 6: review ledger ---- */
.ledger { border: 1.5px solid var(--stroke); border-radius: 0.875rem; overflow: hidden; margin-bottom: 1.125rem; }

.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8125rem 1.125rem;
  border-bottom: 1px solid var(--stroke);
  font-size: 0.875rem;
}

.ledger-row:last-child { border-bottom: none; }
.ledger-row .amt { font-weight: 700; white-space: nowrap; }
.ledger-row.waived .amt { color: var(--success); }
.ledger-row.total { background: var(--navy-deep); color: var(--white); font-weight: 700; }
.ledger-row.total .amt { font-size: 1.125rem; }

.ledger-note { font-size: 0.75rem; color: var(--text-3); padding: 0.625rem 1.125rem; background: var(--surface); }

.term-flag {
  background: #fff6e0;
  border: 1px solid #f2dfa0;
  color: #7a5b0a;
  border-radius: 0.75rem;
  padding: 0.8125rem 1rem;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.agree-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.625rem 0;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.agree-row input { width: 19px; height: 19px; margin-top: 0.125rem; accent-color: var(--navy); flex-shrink: 0; }

/* ---- Confirmation panel ---- */
.qualify-confirm { text-align: center; padding: 2rem 0.5rem 0.5rem; }

.confirm-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e7f7ef;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.125rem;
  font-weight: 800;
}

.confirm-ref {
  display: inline-block;
  margin-top: 1.125rem;
  background: var(--surface);
  border: 1px dashed var(--stroke-mid);
  border-radius: 0.625rem;
  padding: 0.625rem 1.125rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.8125rem;
}

/* ---- Wizard action buttons - symmetric padding (no trailing icon circle here) ---- */
.wizard-actions .btn-pill {
  padding: 0.8125rem 1.75rem;
  justify-content: center;
  min-width: 7rem;
}

/* ---- Shared bits ---- */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }
