/* ============================================================
   HOWZIT PORTAL — Business Support Services page + 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.
   World-class service card design so no client can refuse it.
   ============================================================ */

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

/* ---------- Hero ---------- */
.bs-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(255,106,2,0.35), transparent 60%),
    radial-gradient(900px 380px at 0% 120%, rgba(0,150,142,0.30), 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);
}
.bs-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;
}
.bs-hero-badge i { color: #ff8c40; }
.bs-hero h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.bs-hero h1 .bs-accent { color: #ff8c40; }
.bs-hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.6;
  max-width: 660px;
  color: rgba(255,255,255,0.92);
  margin: 0 0 28px;
}
.bs-hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.bs-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;
}
.bs-btn:active { transform: translateY(1px); }
.bs-btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(255,106,2,0.4); }
.bs-btn-primary:hover { background: var(--orange-dark, #e55d00); color: #fff; box-shadow: 0 14px 30px rgba(255,106,2,0.5); transform: translateY(-2px); }
.bs-btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.45); }
.bs-btn-ghost:hover { background: rgba(255,255,255,0.22); color: #fff; transform: translateY(-2px); }
.bs-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; }
.bs-hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.bs-hero-trust i { color: #2dd4bf; }

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

/* ---------- Section heading ---------- */
.bs-section-head { text-align: center; max-width: 760px; margin: 56px auto 30px; }
.bs-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;
}
.bs-section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--navy); margin: 0 0 12px; letter-spacing: -0.01em; }
.bs-section-head p { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------- Search bar ---------- */
.bs-search-wrap {
  max-width: 640px; margin: 0 auto 34px; position: relative;
}
.bs-search-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 14px;
  padding: 16px 18px 16px 50px; font-family: 'Onest', sans-serif; font-size: 15px;
  color: var(--text-dark); background: #fff; box-shadow: var(--card-shadow);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.bs-search-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,2,0.14); }
.bs-search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 17px; pointer-events: none;
}

/* ---------- WORLD-CLASS SERVICE CARDS ---------- */
.bs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.bs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .2s ease;
}
.bs-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(45,25,82,0.18);
  border-color: rgba(255,106,2,0.35);
}

/* Card media / icon header */
.bs-card-media {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #2d1952 0%, #1885b0 130%);
}
.bs-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.bs-card:hover .bs-card-media img { transform: scale(1.06); }
.bs-card-media-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(255,255,255,0.85);
}
/* overlay gradient for text legibility on featured */
.bs-card-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(45,25,82,0.45) 100%);
}

/* Featured ribbon */
.bs-card-featured {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(255,106,2,0.4);
}
.bs-card-featured i { font-size: 10px; }

/* CIPC badge */
.bs-card-cipc {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.92); color: var(--navy);
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.bs-card-cipc i { color: var(--teal); font-size: 11px; }

/* Card body */
.bs-card-body { padding: 22px 22px 18px; flex: 1; display: flex; flex-direction: column; }
.bs-card-cat {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--teal); background: rgba(0,150,142,0.1);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start;
}
.bs-card-name { font-size: 19px; font-weight: 800; color: var(--navy); margin: 0 0 10px; line-height: 1.25; }
.bs-card-desc {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Card meta row: price + duration */
.bs-card-meta {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px; margin: auto 0 18px; padding-top: 14px;
  border-top: 1px dashed #eef1f6;
}
.bs-card-price { display: flex; flex-direction: column; }
.bs-card-price-label { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.bs-card-price-val { font-size: 24px; font-weight: 800; color: var(--orange); line-height: 1.1; }
.bs-card-duration { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.bs-card-duration-label { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.bs-card-duration-val { font-size: 14px; font-weight: 700; color: var(--navy); }
.bs-card-duration-val i { color: var(--teal); margin-right: 4px; font-size: 12px; }

/* Card footer / actions */
.bs-card-footer { display: flex; gap: 10px; padding: 0 22px 22px; }
.bs-card-btn {
  flex: 1; border: none; cursor: pointer; font-family: 'Onest', sans-serif;
  font-weight: 800; font-size: 13px; padding: 12px 10px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-align: center;
}
.bs-card-btn:active { transform: translateY(1px); }
.bs-card-btn-quote { background: var(--orange); color: #fff; box-shadow: 0 8px 18px rgba(255,106,2,0.3); }
.bs-card-btn-quote:hover { background: var(--orange-dark, #e55d00); box-shadow: 0 10px 22px rgba(255,106,2,0.4); transform: translateY(-2px); }
.bs-card-btn-samples { background: #fff; color: var(--navy); border: 1.5px solid var(--border); }
.bs-card-btn-samples:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* Loading skeleton */
.bs-skeleton {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.bs-skel-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: var(--card-shadow);
}
.bs-skel-media { height: 140px; background: linear-gradient(90deg,#eef1f6 25%,#e1e6f0 50%,#eef1f6 75%); background-size: 200% 100%; animation: bs-shimmer 1.4s infinite; }
.bs-skel-line { height: 14px; border-radius: 7px; margin: 14px 22px; background: linear-gradient(90deg,#eef1f6 25%,#e1e6f0 50%,#eef1f6 75%); background-size: 200% 100%; animation: bs-shimmer 1.4s infinite; }
.bs-skel-line.short { width: 55%; }
.bs-skel-line.long { width: 90%; }
@keyframes bs-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* No results / error state */
.bs-empty {
  text-align: center; padding: 50px 20px; color: var(--text-muted);
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--card-shadow);
}
.bs-empty i { font-size: 42px; color: var(--text-muted); margin-bottom: 14px; }
.bs-empty h3 { color: var(--navy); font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.bs-empty p { font-size: 14px; margin: 0; }

/* Pagination */
.bs-pagination {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 38px;
}
.bs-page-btn {
  border: 1.5px solid var(--border); background: #fff; color: var(--navy);
  font-family: 'Onest', sans-serif; font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s, background .2s, transform .15s;
  box-shadow: var(--card-shadow);
}
.bs-page-btn:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.bs-page-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.bs-page-info { font-size: 14px; font-weight: 700; color: var(--text-muted); }

/* ---------- Final CTA band ---------- */
.bs-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);
}
.bs-cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 0 12px; }
.bs-cta-band p { font-size: 16px; color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 24px; line-height: 1.6; }

/* ============================================================
   REQUEST QUOTE / ASK FOR SAMPLES MODAL
   (mirrors howzit-admin.css demo modal conventions)
   ============================================================ */
.bs-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;
}
.bs-overlay.open { opacity: 1; }
.bs-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);
}
.bs-overlay.open .bs-modal { transform: translateY(0) scale(1); }
.bs-modal-header {
  background: linear-gradient(135deg, #2d1952 0%, #00968e 130%);
  color: #fff; padding: 22px 24px; border-radius: 18px 18px 0 0; position: relative;
}
.bs-modal-header h3 { font-size: 19px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 10px; }
.bs-modal-header h3 i { color: #ff8c40; }
.bs-modal-header p { font-size: 13px; color: rgba(255,255,255,0.85); margin: 6px 0 0; }
.bs-modal-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;
}
.bs-modal-close:hover { background: rgba(255,255,255,0.32); }

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

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

/* Selected service summary chip */
.bs-svc-chip {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,150,142,0.08); border: 1px solid rgba(0,150,142,0.25);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 18px;
}
.bs-svc-chip-icon {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.bs-svc-chip-info { flex: 1; min-width: 0; }
.bs-svc-chip-name { font-size: 14px; font-weight: 800; color: var(--navy); margin: 0; }
.bs-svc-chip-cat { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }
.bs-svc-chip-price { font-size: 15px; font-weight: 800; color: var(--orange); white-space: nowrap; }

/* Form fields */
.bs-field { margin-bottom: 14px; }
.bs-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bs-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.bs-label .bs-req { color: var(--orange); }
.bs-input, .bs-select, .bs-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;
}
.bs-input:focus, .bs-select:focus, .bs-textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,2,0.14); }
.bs-textarea { resize: vertical; min-height: 78px; }
.bs-input.err, .bs-select.err { border-color: #e23b3b; box-shadow: 0 0 0 3px rgba(226,59,59,0.12); }
.bs-err-msg { display: none; color: #e23b3b; font-size: 12px; margin-top: 5px; font-weight: 600; }
.bs-err-msg.show { display: block; }

/* Inquiry type toggle */
.bs-type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.bs-type-opt {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 12px; cursor: pointer;
  text-align: center; transition: all .18s; background: #fff;
}
.bs-type-opt:hover { border-color: rgba(255,106,2,0.5); }
.bs-type-opt.sel { border-color: var(--orange); background: rgba(255,106,2,0.06); box-shadow: 0 0 0 3px rgba(255,106,2,0.12); }
.bs-type-opt i { font-size: 20px; color: var(--navy); margin-bottom: 6px; }
.bs-type-opt.sel i { color: var(--orange); }
.bs-type-opt strong { display: block; font-size: 13.5px; color: var(--navy); font-weight: 800; }
.bs-type-opt small { font-size: 11px; color: var(--text-muted); }

/* Modal footer */
.bs-modal-footer { display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px 22px; }
.bs-modal-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;
}
.bs-modal-btn:disabled { opacity: .55; cursor: not-allowed; }
.bs-modal-back { background: #eef1f6; color: var(--navy); }
.bs-modal-back:hover { background: #e1e6f0; }
.bs-modal-next { background: var(--navy); color: #fff; margin-left: auto; }
.bs-modal-next:hover { background: var(--navy-mid, #3d2a6e); }
.bs-modal-submit { background: var(--orange); color: #fff; margin-left: auto; box-shadow: 0 8px 20px rgba(255,106,2,0.35); }
.bs-modal-submit:hover { background: var(--orange-dark, #e55d00); }

/* loading / success / error states */
.bs-modal-state { text-align: center; padding: 40px 24px; }
.bs-spinner {
  width: 46px; height: 46px; border: 4px solid #eef1f6; border-top-color: var(--orange);
  border-radius: 50%; margin: 0 auto 18px; animation: bs-spin 0.8s linear infinite;
}
@keyframes bs-spin { to { transform: rotate(360deg); } }
.bs-modal-state p { color: var(--text-muted); font-size: 15px; margin: 0; }
.bs-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);
}
.bs-modal-state h3 { color: var(--navy); font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.bs-modal-state .bs-done-btn { margin-top: 22px; background: var(--navy); color: #fff; }
.bs-modal-state .bs-done-btn:hover { background: var(--navy-mid, #3d2a6e); }
.bs-error-icon { background: linear-gradient(135deg,#ef4444,#b91c1c); box-shadow: 0 10px 26px rgba(239,68,68,0.35); }
.bs-again-btn { margin-top: 22px; background: var(--orange); color: #fff; }
.bs-again-btn:hover { background: var(--orange-dark, #e55d00); }

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

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .bs-grid { grid-template-columns: repeat(2, 1fr); }
  .bs-skeleton { grid-template-columns: repeat(2, 1fr); }
  .bs-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bs-hero { padding: 38px 22px; border-radius: 16px; }
  .bs-grid { grid-template-columns: 1fr; }
  .bs-skeleton { grid-template-columns: 1fr; }
  .bs-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bs-section-head { margin: 40px auto 22px; }
  .bs-field-row { grid-template-columns: 1fr; gap: 0; }
  .bs-type-toggle { grid-template-columns: 1fr; }
  .bs-cta-band { padding: 34px 22px; }
  .bs-card-footer { flex-direction: column; }
}
