/* ============================================================
   QRBELL — How It Works Page
   ============================================================ */

/* ---------- Inner Hero override ---------- */
.hiw-hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(3,27,78,.92) 0%, rgba(6,33,85,.88) 100%),
    url('/images/hero-image.png') center/cover no-repeat;
  overflow: hidden;
}
.hiw-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/images/favicon.jpeg') center/200px 200px repeat;
  opacity: .04;
  pointer-events: none;
}

/* ---------- Main Steps Section ---------- */
.hiw-section {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  background: #f4f6fb;
}
.hiw-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/images/hero-image.png') center/cover no-repeat;
  opacity: .05;
  pointer-events: none;
  z-index: 0;
}
.hiw-section::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,246,251,.96) 0%, rgba(244,246,251,.98) 100%);
  pointer-events: none;
  z-index: 0;
}
.hiw-container { position: relative; z-index: 1; }

/* ---------- Heading ---------- */
.hiw-heading-wrap { margin-bottom: 52px; }
.hiw-eyebrow {
  font-size: .82rem; font-weight: 600;
  color: #F4B400;
  letter-spacing: 1.5px; margin-bottom: 10px; display: block;
}
.hiw-title {
  font-size: 2.2rem; font-weight: 800;
  color: #031B4E; line-height: 1.18; margin: 0;
}

/* ---------- Steps Row ---------- */
.hiw-steps-row {
  display: flex; align-items: flex-start;
  justify-content: center; gap: 0;
  flex-wrap: nowrap; margin-bottom: 56px;
}
.hiw-step-card {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  flex: 0 0 220px; max-width: 220px; position: relative;
}
.hiw-step-icon-wrap { margin-bottom: 20px; position: relative; }
.hiw-step-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: #031B4E;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff;
  box-shadow: 0 10px 32px rgba(3,27,78,.22);
  transition: transform .25s, box-shadow .25s;
  position: relative; z-index: 1;
}
.hiw-step-icon::before {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 2px dashed rgba(3,27,78,.15);
}
.hiw-step-card:hover .hiw-step-icon {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(3,27,78,.3);
}
.hiw-step-body { padding: 0 8px; }
.hiw-step-label {
  display: inline-block; font-size: .72rem; font-weight: 700;
  color: #F4B400; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 8px; background: rgba(244,180,0,.1);
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid rgba(244,180,0,.25);
}
.hiw-step-title {
  font-size: 1.05rem; font-weight: 800;
  color: #031B4E; margin: 0 0 10px; line-height: 1.3;
}
.hiw-step-desc { font-size: .81rem; color: #6b7280; line-height: 1.65; margin: 0; }

/* ---------- Connectors ---------- */
.hiw-connector {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0; padding: 0 8px; margin-top: 44px;
}
.hiw-connector span {
  display: block; width: 7px; height: 7px;
  border-radius: 50%; background: rgba(3,27,78,.18); flex-shrink: 0;
}
.hiw-connector span:nth-child(3) {
  background: rgba(244,180,0,.5); width: 9px; height: 9px;
}

/* ---------- Features Bar ---------- */
.hiw-features-bar {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: 16px; padding: 20px 36px;
  gap: 0; flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(3,27,78,.07);
}
.hiw-feature {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 28px; transition: transform .2s;
}
.hiw-feature:hover { transform: translateY(-2px); }
.hiw-feat-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(3,27,78,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #031B4E; flex-shrink: 0;
}
.hiw-feat-label { font-size: .88rem; font-weight: 700; color: #031B4E; white-space: nowrap; }
.hiw-feat-divider { width: 1px; height: 36px; background: #e2e8f0; flex-shrink: 0; }

/* ---------- Detail Section ---------- */
.hiw-detail-section { padding: 72px 0 56px; background: #fff; }
.hiw-detail-sub {
  font-size: .92rem; color: #6b7280;
  max-width: 540px; margin: 0 auto; line-height: 1.7;
}
.hiw-detail-card {
  background: #f8fafc; border-radius: 20px; padding: 38px 36px;
  height: 100%; border-left: 4px solid transparent;
  transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.hiw-detail-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(3,27,78,.1); }
.hiw-detail-card::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%; opacity: .06;
}
.hiw-card-gold { border-left-color: #F4B400; }
.hiw-card-gold::before { background: #F4B400; }
.hiw-card-blue { border-left-color: #3b82f6; }
.hiw-card-blue::before { background: #3b82f6; }
.hiw-card-green { border-left-color: #22c55e; }
.hiw-card-green::before { background: #22c55e; }

.hiw-detail-num { font-size: 3.5rem; font-weight: 800; line-height: 1; margin-bottom: 16px; opacity: .1; color: #031B4E; }
.hiw-detail-title { font-size: 1.4rem; font-weight: 800; color: #031B4E; margin-bottom: 12px; }
.hiw-detail-desc { font-size: .875rem; color: #6b7280; line-height: 1.65; margin-bottom: 18px; }
.hiw-detail-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.hiw-detail-list li { font-size: .85rem; color: #1c2333; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.hiw-detail-list .bi-check-circle-fill { color: #22c55e; font-size: .8rem; flex-shrink: 0; }
.hiw-detail-note {
  font-size: .78rem; font-weight: 600; color: #031B4E;
  background: rgba(3,27,78,.05); border-radius: 8px;
  padding: 8px 14px; margin: 0; border-left: 3px solid #031B4E;
}

/* Visual cards */
.hiw-visual-card {
  background: linear-gradient(135deg, #031B4E 0%, #082C7A 100%);
  border-radius: 20px; padding: 56px 32px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 20px;
  box-shadow: 0 20px 60px rgba(3,27,78,.2);
  min-height: 280px; position: relative; overflow: hidden;
}
.hiw-visual-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(244,180,0,.08);
}
.hiw-visual-icon {
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; color: #F4B400;
}
.hiw-visual-caption { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.6); letter-spacing: .5px; text-align: center; }

/* ---------- Why Strip ---------- */
.hiw-why-strip {
  background: linear-gradient(135deg, #031B4E 0%, #082C7A 100%);
  padding: 72px 0 64px; position: relative; overflow: hidden;
}
.hiw-why-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; padding: 32px 20px 28px; height: 100%;
  transition: background .25s, transform .25s, border-color .25s;
}
.hiw-why-card:hover { background: rgba(255,255,255,.1); border-color: rgba(244,180,0,.3); transform: translateY(-4px); }
.hiw-why-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(244,180,0,.12); border: 1.5px solid rgba(244,180,0,.3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.45rem; color: #F4B400; margin-bottom: 16px;
}
.hiw-why-title { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.hiw-why-desc { font-size: .78rem; color: rgba(255,255,255,.6); line-height: 1.6; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .hiw-step-card { flex: 0 0 200px; max-width: 200px; }
  .hiw-connector { padding: 0 4px; gap: 4px; }
}
@media (max-width: 991px) {
  .hiw-section { padding: 56px 0 44px; }
  .hiw-title { font-size: 1.85rem; }
  .hiw-heading-wrap { margin-bottom: 40px; }
  .hiw-steps-row { flex-direction: column; align-items: center; gap: 0; max-width: 420px; margin-left: auto; margin-right: auto; }
  .hiw-step-card { flex: unset; max-width: 100%; width: 100%; flex-direction: row; text-align: left; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(3,27,78,.08); }
  .hiw-step-card:last-of-type { border-bottom: none; }
  .hiw-step-icon-wrap { margin-bottom: 0; flex-shrink: 0; }
  .hiw-step-body { padding: 0; }
  .hiw-connector { flex-direction: column; margin: 0; padding: 2px 0 2px 44px; gap: 4px; align-self: flex-start; height: 28px; }
  .hiw-connector span { width: 6px; height: 6px; }
  .hiw-connector span:nth-child(3) { width: 8px; height: 8px; }
  .hiw-features-bar { padding: 16px 20px; flex-wrap: wrap; justify-content: space-around; }
  .hiw-feat-divider { display: none; }
  .hiw-feature { padding: 10px 16px; }
  .hiw-detail-section { padding: 56px 0 44px; }
  .hiw-detail-card { padding: 28px 26px; }
  .hiw-visual-card { min-height: 220px; padding: 40px 24px; }
  .hiw-why-strip { padding: 56px 0 48px; }
  .hiw-why-card { padding: 24px 16px 20px; }
}
@media (max-width: 767px) {
  .hiw-section { padding: 44px 0 36px; }
  .hiw-title { font-size: 1.6rem; }
  .hiw-step-icon { width: 72px; height: 72px; font-size: 1.6rem; }
  .hiw-features-bar { flex-direction: row; flex-wrap: wrap; align-items: stretch; padding: 8px 12px; border-radius: 12px; }
  .hiw-feature { flex: 0 0 50%; padding: 12px 10px; justify-content: flex-start; border-bottom: 1px solid #f1f5f9; }
  .hiw-feature:nth-child(odd) { border-right: 1px solid #f1f5f9; }
  .hiw-feature:nth-last-child(-n+2) { border-bottom: none; }
  .hiw-detail-section { padding: 44px 0 36px; }
  .hiw-detail-card { padding: 24px 20px; border-radius: 16px; }
  .hiw-detail-title { font-size: 1.2rem; }
  .hiw-visual-card { min-height: 180px; padding: 32px 20px; border-radius: 16px; }
  .hiw-visual-icon { width: 80px; height: 80px; font-size: 2.2rem; }
  .hiw-why-strip { padding: 44px 0 36px; }
  .hiw-why-icon { width: 50px; height: 50px; font-size: 1.25rem; margin-bottom: 12px; }
  .hiw-why-title { font-size: .88rem; }
  .hiw-why-desc { font-size: .74rem; }
}
@media (max-width: 575px) {
  .hiw-section { padding: 36px 0 28px; }
  .hiw-title { font-size: 1.35rem; }
  .hiw-eyebrow { font-size: .73rem; }
  .hiw-heading-wrap { margin-bottom: 28px; }
  .hiw-steps-row { max-width: 100%; }
  .hiw-step-card { max-width: 100%; gap: 14px; padding: 16px 0; }
  .hiw-step-icon { width: 60px; height: 60px; font-size: 1.35rem; }
  .hiw-step-label { font-size: .67rem; }
  .hiw-step-title { font-size: .9rem; margin-bottom: 6px; }
  .hiw-step-desc { font-size: .76rem; }
  .hiw-features-bar { padding: 6px 10px; border-radius: 10px; }
  .hiw-feat-icon { width: 32px; height: 32px; font-size: .95rem; border-radius: 8px; }
  .hiw-feat-label { font-size: .78rem; }
  .hiw-detail-section { padding: 36px 0 28px; }
  .hiw-detail-card { padding: 20px 16px; border-radius: 14px; }
  .hiw-detail-num { font-size: 2.2rem; margin-bottom: 8px; }
  .hiw-detail-title { font-size: 1.05rem; }
  .hiw-detail-desc { font-size: .81rem; }
  .hiw-detail-list li { font-size: .8rem; }
  .hiw-detail-note { font-size: .74rem; }
  .hiw-visual-card { min-height: 160px; padding: 28px 16px; border-radius: 14px; }
  .hiw-visual-icon { width: 68px; height: 68px; font-size: 1.9rem; }
  .hiw-visual-caption { font-size: .76rem; }
  .hiw-why-strip { padding: 36px 0 28px; }
  .hiw-why-card { padding: 18px 12px 16px; border-radius: 14px; }
  .hiw-why-icon { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 10px; }
  .hiw-why-title { font-size: .82rem; }
  .hiw-why-desc { font-size: .71rem; }
}
