/* ============================================================
   HOWZIT ADMIN — Billing Service page + "Request Demo" modal
   Matches the Howzit Portal design system:
   --navy #2d1952 | --orange #ff6a02 | --teal #00968e | --green #059669
   Font: Onest. Uses same radius/shadow tokens as style.css.
   ============================================================ */

/* ---------- Page section ---------- */
.howzit-admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px 60px;
  font-family: 'Onest', sans-serif;
  color: var(--text-dark);
}

/* ---------- Hero ---------- */
.ha-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(0,150,142,0.35), transparent 60%),
    radial-gradient(900px 380px at 0% 120%, rgba(255,106,2,0.28), transparent 60%),
    linear-gradient(135deg, #2d1952 0%, #241452 45%, #1885b0 130%);
  color: #fff;
  padding: 56px 48px;
  box-shadow: 0 18px 50px rgba(45,25,82,0.35);
}
.ha-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.ha-hero-badge i { color: #ff8c40; }
.ha-hero h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.ha-hero h1 .ha-accent { color: #ff8c40; }
.ha-hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.6;
  max-width: 640px;
  color: rgba(255,255,255,0.92);
  margin: 0 0 28px;
}
.ha-hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ha-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  font-family: 'Onest', sans-serif;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.ha-btn:active { transform: translateY(1px); }
.ha-btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(255,106,2,0.4); }
.ha-btn-primary:hover { background: var(--orange-dark); color: #fff; box-shadow: 0 14px 30px rgba(255,106,2,0.5); transform: translateY(-2px); }
.ha-btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.45); }
.ha-btn-ghost:hover { background: rgba(255,255,255,0.22); color: #fff; transform: translateY(-2px); }
.ha-hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 600; }
.ha-hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.ha-hero-trust i { color: #2dd4bf; }

/* ---------- Stat strip ---------- */
.ha-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 26px 0 8px;
}
.ha-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: var(--card-shadow);
  text-align: center;
}
.ha-stat-num { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1; }
.ha-stat-num .ha-stat-plus { color: var(--orange); }
.ha-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 8px; font-weight: 600; }

/* ---------- Section heading ---------- */
.ha-section-head { text-align: center; max-width: 760px; margin: 56px auto 30px; }
.ha-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); background: rgba(0,150,142,0.1); padding: 5px 13px; border-radius: 999px; margin-bottom: 12px;
}
.ha-section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--navy); margin: 0 0 12px; letter-spacing: -0.01em; }
.ha-section-head p { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------- Benefits grid ---------- */
.ha-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ha-benefit {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px;
  box-shadow: var(--card-shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ha-benefit:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(45,25,82,0.12); border-color: rgba(255,106,2,0.4); }
.ha-benefit-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; margin-bottom: 16px;
}
.ha-benefit-icon.c-navy   { background: linear-gradient(135deg, #2d1952, #1885b0); }
.ha-benefit-icon.c-teal   { background: linear-gradient(135deg, #00968e, #059669); }
.ha-benefit-icon.c-orange { background: linear-gradient(135deg, #ff6a02, #ffb27a); }
.ha-benefit h4 { font-size: 17px; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.ha-benefit p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------- How it works ---------- */
.ha-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.ha-step {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px 22px 24px;
  box-shadow: var(--card-shadow);
}
.ha-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(45,25,82,0.35);
}
.ha-step h4 { font-size: 16px; font-weight: 800; color: var(--navy); margin: 6px 0 8px; }
.ha-step p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------- Packages ---------- */
.ha-packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.ha-pkg {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px 24px 26px;
  box-shadow: var(--card-shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ha-pkg:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(45,25,82,0.16); }
.ha-pkg-popular { border: 2px solid var(--orange); box-shadow: 0 16px 40px rgba(255,106,2,0.25); }
.ha-pkg-popular::before {
  content: 'MOST POPULAR'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  padding: 5px 14px; border-radius: 999px; box-shadow: 0 6px 14px rgba(255,106,2,0.4); white-space: nowrap;
}
.ha-pkg-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 21px; color: #fff; margin-bottom: 16px; }
.ha-pkg-name { font-size: 19px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.ha-pkg-tag { font-size: 12.5px; color: var(--text-muted); margin: 0 0 18px; min-height: 34px; }
.ha-pkg-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.ha-pkg-price .cur { font-size: 18px; font-weight: 700; color: var(--navy); }
.ha-pkg-price .amt { font-size: 38px; font-weight: 800; color: var(--navy); line-height: 1; }
.ha-pkg-price .per { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.ha-pkg-billed { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.ha-pkg-feats { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.ha-pkg-feats li { display: flex; gap: 10px; font-size: 13.5px; color: #333; line-height: 1.5; padding: 7px 0; border-bottom: 1px dashed #eef1f6; }
.ha-pkg-feats li:last-child { border-bottom: none; }
.ha-pkg-feats i { color: var(--green); font-size: 14px; margin-top: 3px; flex-shrink: 0; }
.ha-pkg-feats li.muted i { color: #c4cad6; }
.ha-pkg-feats li.muted { color: #9aa3b2; }
.ha-pkg .ha-btn { width: 100%; justify-content: center; }
.ha-pkg-btn { background: var(--navy); color: #fff; }
.ha-pkg-btn:hover { background: var(--navy-mid); color: #fff; }
.ha-pkg-popular .ha-pkg-btn { background: var(--orange); box-shadow: 0 8px 20px rgba(255,106,2,0.35); }
.ha-pkg-popular .ha-pkg-btn:hover { background: var(--orange-dark); color: #fff; }

/* ---------- Comparison note ---------- */
.ha-pkg-note { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 26px; }
.ha-pkg-note a { color: var(--orange); font-weight: 700; cursor: pointer; }

/* ---------- Final CTA band ---------- */
.ha-cta-band {
  margin-top: 56px;
  border-radius: 22px; overflow: hidden; padding: 48px 40px; text-align: center;
  background:
    radial-gradient(800px 300px at 90% -20%, rgba(255,106,2,0.35), transparent 60%),
    linear-gradient(135deg, #2d1952 0%, #1885b0 130%);
  color: #fff; box-shadow: 0 18px 50px rgba(45,25,82,0.35);
}
.ha-cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 0 12px; }
.ha-cta-band p { font-size: 16px; color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 24px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.ha-faq { max-width: 820px; margin: 0 auto; }
.ha-faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; box-shadow: var(--card-shadow); overflow: hidden; }
.ha-faq-q { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--navy); font-size: 15px; }
.ha-faq-q i { color: var(--orange); transition: transform .25s ease; }
.ha-faq-item.open .ha-faq-q i { transform: rotate(180deg); }
.ha-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.ha-faq-a-inner { padding: 0 22px 18px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }

/* ============================================================
   REQUEST DEMO MODAL  (mirrors quote-flow.css conventions)
   ============================================================ */
.ha-demo-overlay {
  position: fixed; inset: 0; background: rgba(10,12,28,0.62); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 30000;
  opacity: 0; transition: opacity .25s ease; padding: 20px;
}
.ha-demo-overlay.open { opacity: 1; }
.ha-demo-modal {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,0.4);
  transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.ha-demo-overlay.open .ha-demo-modal { transform: translateY(0) scale(1); }
.ha-demo-header {
  background: linear-gradient(135deg, #2d1952 0%, #1885b0 130%);
  color: #fff; padding: 22px 24px; border-radius: 18px 18px 0 0; position: relative;
}
.ha-demo-header h3 { font-size: 19px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 10px; }
.ha-demo-header h3 i { color: #ff8c40; }
.ha-demo-header p { font-size: 13px; color: rgba(255,255,255,0.85); margin: 6px 0 0; }
.ha-demo-close {
  position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.18); border: none;
  color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.ha-demo-close:hover { background: rgba(255,255,255,0.32); }

.ha-demo-stepper { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 18px 24px 6px; }
.ha-demo-dot { width: 10px; height: 10px; border-radius: 50%; background: #d7dce6; transition: all .25s; }
.ha-demo-dot.active { background: var(--orange); width: 26px; border-radius: 6px; }
.ha-demo-dot.done { background: var(--green); }

.ha-demo-body { padding: 18px 24px 8px; }
.ha-demo-step { display: none; animation: ha-fade .3s ease; }
.ha-demo-step.active { display: block; }
@keyframes ha-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.ha-field { margin-bottom: 14px; }
.ha-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ha-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.ha-label .ha-req { color: var(--orange); }
.ha-input, .ha-select, .ha-textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 13px;
  font-family: 'Onest', sans-serif; font-size: 14px; color: var(--text-dark); background: #fff;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.ha-input:focus, .ha-select:focus, .ha-textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,2,0.14); }
.ha-textarea { resize: vertical; min-height: 78px; }
.ha-input.err, .ha-select.err { border-color: #e23b3b; box-shadow: 0 0 0 3px rgba(226,59,59,0.12); }
.ha-err-msg { display: none; color: #e23b3b; font-size: 12px; margin-top: 5px; font-weight: 600; }
.ha-err-msg.show { display: block; }

.ha-pkg-pick-label { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.ha-pkg-picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ha-pkg-pick {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 13px 12px; cursor: pointer; text-align: left;
  transition: all .18s; background: #fff;
}
.ha-pkg-pick:hover { border-color: rgba(255,106,2,0.5); }
.ha-pkg-pick.sel { border-color: var(--orange); background: var(--orange-light); box-shadow: 0 0 0 3px rgba(255,106,2,0.12); }
.ha-pkg-pick strong { display: block; font-size: 14px; color: var(--navy); font-weight: 800; }
.ha-pkg-pick small { font-size: 12px; color: var(--text-muted); }
.ha-pkg-pick .ha-pick-price { font-size: 13px; font-weight: 800; color: var(--orange); margin-top: 4px; display: block; }

.ha-demo-footer { display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px 22px; }
.ha-demo-btn {
  border: none; cursor: pointer; font-family: 'Onest', sans-serif; font-weight: 800; font-size: 14.5px;
  padding: 13px 22px; border-radius: 11px; display: inline-flex; align-items: center; gap: 9px;
  transition: background .2s, transform .15s, opacity .2s;
}
.ha-demo-btn:disabled { opacity: .55; cursor: not-allowed; }
.ha-demo-back { background: #eef1f6; color: var(--navy); }
.ha-demo-back:hover { background: #e1e6f0; }
.ha-demo-next { background: var(--navy); color: #fff; margin-left: auto; }
.ha-demo-next:hover { background: var(--navy-mid); }
.ha-demo-submit { background: var(--orange); color: #fff; margin-left: auto; box-shadow: 0 8px 20px rgba(255,106,2,0.35); }
.ha-demo-submit:hover { background: var(--orange-dark); }

/* loading / success / error states */
.ha-demo-state { text-align: center; padding: 40px 24px; }
.ha-demo-spinner {
  width: 46px; height: 46px; border: 4px solid #eef1f6; border-top-color: var(--orange);
  border-radius: 50%; margin: 0 auto 18px; animation: ha-spin 0.8s linear infinite;
}
@keyframes ha-spin { to { transform: rotate(360deg); } }
.ha-demo-state p { color: var(--text-muted); font-size: 15px; margin: 0; }
.ha-demo-success-icon {
  width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, #00968e, #059669);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 18px;
  box-shadow: 0 10px 26px rgba(5,150,105,0.35);
}
.ha-demo-state h3 { color: var(--navy); font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.ha-demo-state .ha-demo-done-btn { margin-top: 22px; background: var(--navy); color: #fff; }
.ha-demo-state .ha-demo-done-btn:hover { background: var(--navy-mid); }
.ha-demo-error-icon { background: linear-gradient(135deg,#ef4444,#b91c1c); box-shadow: 0 10px 26px rgba(239,68,68,0.35); }
.ha-demo-again-btn { margin-top: 22px; background: var(--orange); color: #fff; }
.ha-demo-again-btn:hover { background: var(--orange-dark); }

/* Honeypot — hidden from humans */
.ha-hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .ha-benefits { grid-template-columns: repeat(2, 1fr); }
  .ha-packages { grid-template-columns: repeat(2, 1fr); }
  .ha-steps { grid-template-columns: repeat(2, 1fr); }
  .ha-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ha-hero { padding: 38px 22px; border-radius: 16px; }
  .ha-benefits { grid-template-columns: 1fr; }
  .ha-packages { grid-template-columns: 1fr; }
  .ha-steps { grid-template-columns: 1fr; }
  .ha-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ha-section-head { margin: 40px auto 22px; }
  .ha-field-row { grid-template-columns: 1fr; gap: 0; }
  .ha-pkg-picks { grid-template-columns: 1fr; }
  .ha-cta-band { padding: 34px 22px; }
}
