* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #428dff;
  --blue-hover: #2a7aef;
  --ink: #141414;
  --ink-mid: #3a3a3a;
  --ink-soft: #6f6f6f;
  --ink-mute: #999;
  --border: #d8d8d8;
  --border-soft: #ebebeb;
  --bg: #fff;
  --bg-panel: #f7f7f7;
  --gold: #fcbd49;
  --green: #34c759;
}

/* ─── LAYOUT ─────────────────────────────── */
.wrap {
  display: flex;
  min-height: 100vh;
  flex-direction: row;
}
.left {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.right {
  width: 400px;
  flex-shrink: 0;
  background: var(--bg-panel);
  border-left: 1px solid var(--border-soft);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* ─── NAV ────────────────────────────────── */
.top-nav {
  padding: 22px 56px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-sq {
  width: 34px; height: 34px;
  background: var(--blue);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px; padding: 7px;
  flex-shrink: 0;
}
.brand-sq span { background: #fff; display: block; }
.brand-name {
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
}
.nav-secure {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.secure-dot {
  width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
}

/* ─── PROGRESS ───────────────────────────── */
.progress-bar {
  padding: 28px 56px;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.progress-track { display: flex; align-items: flex-start; }
.prog-step {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px; flex-shrink: 0;
}
.prog-num {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: #c0c0c0; background: #fff;
  position: relative; z-index: 1;
  transition: all 0.3s ease;
}
.prog-num.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.prog-num.done { background: var(--blue); border-color: var(--blue); color: #fff; }
.prog-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #c0c0c0; transition: color 0.3s;
}
.prog-label.active { color: var(--ink); }
.prog-label.done { color: var(--blue); }
.prog-line-wrap { flex: 1; padding-top: 17px; }
.prog-line { height: 1px; background: #e0e0e0; width: 100%; transition: background 0.4s; }
.prog-line.done { background: var(--blue); }

/* ─── STEP PANELS ────────────────────────── */
.step-panel { display: none; padding: 44px 56px 56px; flex: 1; }
.step-panel.active { display: block; }

.form-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #c9a84c; margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.form-eyebrow::before {
  content: ''; width: 22px; height: 1px;
  background: #c9a84c; display: inline-block;
}
.form-title {
  font-size: 28px; font-weight: 900;
  color: var(--ink); margin-bottom: 6px;
  letter-spacing: -0.02em; line-height: 1.1;
}
.form-sub {
  font-size: 14px; color: var(--ink-soft);
  margin-bottom: 36px; line-height: 1.6;
}

/* ─── FIELDS ─────────────────────────────── */
.field-section-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 12px;
}
.toggle-group { display: flex; margin-bottom: 32px; flex-wrap: wrap; }
.toggle-btn {
  padding: 10px 26px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; border: 1.5px solid var(--ink);
  transition: all 0.15s; user-select: none;
}
.toggle-btn.on { background: var(--ink); color: #fff; }
.toggle-btn.off { background: #fff; color: var(--ink); border-left: none; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.field-single { margin-bottom: 20px; }
.field-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.field-optional {
  font-size: 9px; font-weight: 400;
  color: #b0b0b0; text-transform: none; letter-spacing: 0;
}
.field-input {
  width: 100%; height: 52px;
  border: 1.5px solid var(--border);
  padding: 0 18px; font-size: 15px;
  color: var(--ink); background: #fff; outline: none;
  transition: border-color 0.15s;
}
.field-input:focus { border-color: var(--blue); }
.field-input::placeholder { color: #c0c0c0; font-size: 14px; }
.phone-row { display: flex; }
.phone-prefix {
  height: 52px; min-width: 96px;
  border: 1.5px solid var(--border); border-right: none;
  display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 14px; font-weight: 600;
  color: var(--ink); background: #f7f7f7;
  flex-shrink: 0; padding: 0 14px;
}
.phone-input {
  flex: 1; height: 52px;
  border: 1.5px solid var(--border);
  padding: 0 18px; font-size: 15px;
  color: var(--ink); background: #fff; outline: none;
  transition: border-color 0.15s;
}
.phone-input:focus { border-color: var(--blue); }

.check-item {
  display: flex; align-items: center;
  gap: 12px; margin-bottom: 14px; cursor: pointer;
}
.check-box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--border);
  flex-shrink: 0; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.15s;
}
.check-box.checked { background: var(--blue); border-color: var(--blue); }
.check-box svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.5; }
.check-text { font-size: 14px; color: var(--ink-mid); line-height: 1.5; }
.check-link { color: var(--blue); font-weight: 600; cursor: pointer; }

/* ─── PLAN CARDS ─────────────────────────── */
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 36px; }
.plan-card {
  border: 1.5px solid var(--border);
  padding: 24px; cursor: pointer;
  position: relative; transition: all 0.2s;
}
.plan-card:hover { border-color: #aaa; }
.plan-card.selected { border-color: var(--blue); border-width: 2px; }
.plan-rec-tag {
  position: absolute; top: -1px; right: 18px;
  background: var(--gold); color: var(--ink);
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px;
}
.plan-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.plan-card.selected .plan-radio { border-color: var(--blue); }
.plan-radio-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); display: none;
}
.plan-card.selected .plan-radio-dot { display: block; }
.plan-name { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.plan-price { font-size: 26px; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; }
.plan-price-orig {
  font-size: 14px; font-weight: 400;
  color: #c0c0c0; text-decoration: line-through; margin-left: 8px;
}
.plan-off-tag {
  display: inline-block; padding: 3px 9px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin: 10px 0 16px;
}
.plan-off-tag.blue { background: var(--blue); color: #fff; }
.plan-off-tag.dark { background: var(--ink); color: #fff; }
.plan-feats { display: flex; flex-direction: column; gap: 9px; }
.plan-feat {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12px; color: var(--ink-soft); line-height: 1.4;
}
.feat-check {
  width: 16px; height: 16px; border-radius: 50%;
  background: #e9f2ff; flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
}
.feat-check svg { width: 7px; height: 7px; fill: none; stroke: var(--blue); stroke-width: 2; }
.feat-check.gold { background: #fff8e6; }
.feat-check.gold svg { stroke: #ffa23e; }

/* ─── PAYMENT ────────────────────────────── */
.pay-tabs { display: flex; border: 1.5px solid var(--ink); width: fit-content; margin-bottom: 28px; flex-wrap: wrap; }
.pay-tab {
  padding: 10px 28px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; border-right: 1.5px solid var(--ink);
  color: var(--ink-soft); transition: all 0.15s;
}
.pay-tab:last-child { border-right: none; }
.pay-tab.active { background: var(--ink); color: #fff; }

.pay-methods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.pay-method {
  border: 1.5px solid var(--border); padding: 16px 10px;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; cursor: pointer; transition: all 0.15s;
}
.pay-method:hover { border-color: #aaa; }
.pay-method.active { border-color: var(--blue); border-width: 2px; background: #f0f6ff; }
.pay-method-icon { font-size: 24px; }
.pay-method-name {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); text-align: center;
}
.pay-method.active .pay-method-name { color: var(--blue); }

.pay-detail-section { margin-bottom: 28px; }
.pay-detail-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 14px;
}

/* UPI apps */
.upi-apps { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.upi-app {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1.5px solid var(--border);
  cursor: pointer; transition: all 0.15s; font-size: 12px; font-weight: 700;
}
.upi-app:hover { border-color: #aaa; }
.upi-app.active { border-color: var(--ink); background: #fafafa; }
.upi-or {
  display: flex; align-items: center; gap: 14px;
  margin: 14px 0; color: #c0c0c0;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.upi-or::before, .upi-or::after {
  content: ''; flex: 1; height: 1px; background: #e8e8e8;
}

/* Card fields */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Netbanking */
.bank-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.bank-item {
  border: 1.5px solid var(--border); padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; cursor: pointer; font-size: 11px; font-weight: 700;
  color: var(--ink-soft); text-align: center; transition: all 0.15s;
}
.bank-item:hover { border-color: #aaa; }
.bank-item.active { border-color: var(--blue); background: #f0f6ff; color: var(--blue); }
.bank-logo { font-size: 20px; }

/* Pay Now input row */
.pay-input-row { display: flex; gap: 0; }
.pay-input {
  flex: 1; height: 52px;
  border: 1.5px solid var(--ink);
  padding: 0 18px; font-size: 15px;
  color: var(--ink); background: #fff; outline: none;
  transition: border-color 0.15s;
}
.pay-input:focus { border-color: var(--blue); }
.pay-input::placeholder { color: #c0c0c0; font-size: 14px; }
.pay-submit-btn {
  height: 52px; padding: 0 28px;
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s; flex-shrink: 0;
}
.pay-submit-btn:hover { background: var(--blue-hover); }

.emi-info {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: #f7f7f7;
  border-left: 3px solid #ffa23e; margin-top: 16px;
  font-size: 12px; color: var(--ink-soft);
}
.emi-info strong { color: var(--ink); font-weight: 700; }

.secure-note {
  display: flex; align-items: center; gap: 10px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 11px; color: #bbb;
}

/* ─── CTA BUTTONS ────────────────────────── */
.cta-btn {
  width: 100%; height: 56px; background: var(--blue);
  color: #fff; font-size: 13px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 36px; transition: background 0.15s;
}
.cta-btn:hover { background: var(--blue-hover); }
.cta-note {
  text-align: center; margin-top: 12px;
  font-size: 11px; color: var(--ink-mute);
}

.btn-row { display: flex; gap: 14px; margin-top: 36px; }
.btn-back {
  height: 56px; padding: 0 32px;
  background: #fff; color: var(--ink);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1.5px solid var(--border); cursor: pointer;
  transition: all 0.15s; white-space: nowrap; flex-shrink: 0;
}
.btn-back:hover { border-color: var(--ink); }

/* ─── ORDER SUMMARY (RIGHT) ──────────────── */
.os-heading {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 20px;
}
.os-badge {
  display: inline-block; background: var(--gold);
  color: var(--ink); font-size: 9px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; margin-bottom: 14px;
}
.os-title {
  font-size: 19px; font-weight: 900; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 16px;
}
.os-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.os-meta-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-soft);
}
.os-divider { height: 1px; background: #e0e0e0; margin: 0 0 18px; }
.os-price-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.os-price-row { display: flex; justify-content: space-between; align-items: center; }
.os-price-label { font-size: 12px; color: var(--ink-soft); }
.os-price-val { font-size: 12px; color: var(--ink); font-weight: 500; }
.os-price-strike {
  text-decoration: line-through; color: #c0c0c0;
  margin-left: 8px; font-size: 11px; font-weight: 400;
}
.os-total-section { border-top: 1px solid #e0e0e0; padding-top: 18px; margin-bottom: 22px; }
.os-total-row { display: flex; justify-content: space-between; align-items: flex-start; }
.os-total-label {
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); margin-top: 6px;
}
.os-total-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.os-total-price-row { display: flex; align-items: center; gap: 10px; }
.os-total-price {
  font-size: 28px; font-weight: 900; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1;
}
.os-off-pill {
  display: inline-block; background: var(--blue);
  color: #fff; font-size: 9px; font-weight: 800;
  letter-spacing: 0.1em; padding: 4px 10px; text-transform: uppercase;
}
.os-emi { font-size: 11px; color: var(--ink-mute); text-align: right; }
.os-promo-wrap {
  border: 1px solid var(--border); display: flex;
  background: #fff; margin-bottom: 10px;
}
.os-promo-input {
  flex: 1; height: 44px; background: transparent; border: none;
  padding: 0 14px; font-size: 13px; color: var(--ink);
  outline: none;
}
.os-promo-input::placeholder { color: #c0c0c0; font-size: 12px; }
.os-promo-btn {
  height: 44px; padding: 0 18px; background: var(--blue);
  color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none; cursor: pointer; flex-shrink: 0;
  transition: background 0.15s;
}
.os-promo-btn:hover { background: var(--blue-hover); }
.os-promo-active {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #fff;
  border: 1px solid #e0e0e0; margin-bottom: 20px;
}
.os-promo-dot {
  width: 18px; height: 18px; background: var(--green);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.os-promo-dot svg { width: 9px; height: 9px; fill: none; stroke: #fff; stroke-width: 2.5; }
.os-promo-code { font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: 0.06em; }
.os-promo-disc { font-size: 11px; color: var(--ink-soft); margin-left: auto; }
.os-pmi {
  border: 1px solid #e0e0e0; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; margin-top: auto; position: relative; overflow: hidden;
}
.os-pmi::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--blue);
}
.os-pmi-badge {
  width: 38px; height: 38px; border-radius: 50%;
  background: #e9f2ff; border: 1px solid #c0d8f8;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.os-pmi-badge span { font-size: 9px; font-weight: 900; color: var(--blue); }
.os-pmi-title { font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.os-pmi-sub { font-size: 10px; color: var(--ink-mute); }
.trust-row {
  display: flex; align-items: center; gap: 6px;
  margin-top: 14px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--ink-mute);
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.trust-dot { width: 5px; height: 5px; background: var(--green); border-radius: 50%; }
.trust-sep { color: #d8d8d8; }

/* ─── STEP-SPECIFIC SIDEBAR ──────────────── */
.sidebar-plan-selected {
  background: #f0f6ff; border: 1px solid #c0d8f8;
  padding: 14px 16px; margin-bottom: 18px;
  display: none;
}
.sidebar-plan-selected.visible { display: flex; align-items: center; gap: 10px; }
.sp-name { font-size: 12px; font-weight: 800; color: var(--ink); }
.sp-price { font-size: 12px; color: var(--blue); font-weight: 700; margin-left: auto; }

/* ─── SUCCESS ────────────────────────────── */
.success-wrap {
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 60vh; text-align: center; padding: 60px 56px;
}
.success-wrap.active { display: flex; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #e9f8ef; display: flex;
  align-items: center; justify-content: center; margin-bottom: 24px;
}
.success-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--green); stroke-width: 2.5; }
.success-title { font-size: 28px; font-weight: 900; color: var(--ink); margin-bottom: 10px; }
.success-sub { font-size: 14px; color: var(--ink-soft); line-height: 1.6; max-width: 420px; }

/* ─── ANIMATIONS ─────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.step-panel.active { animation: fadeUp 0.35s ease both; }

/* ─── TOAST ──────────────────────────────── */
.custom-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  max-width: 350px;
  width: max-content;
  min-width: 200px;
  height: 80px;
  min-height: 48px;
  background: #1e1e2f;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.1);
  backdrop-filter: blur(2px);
  border-left: 4px solid #428dff;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  word-break: break-word;
  white-space: normal;
  box-sizing: border-box;
}
.custom-toast.show { opacity: 1; transform: translateX(0); }
.custom-toast::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #428dff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════ */

/* ── Large Desktop (1280px+) ── */
@media (min-width: 1280px) {
  .right { width: 420px; }
  .step-panel { padding: 48px 64px 64px; }
  .progress-bar { padding: 28px 64px; }
  .top-nav { padding: 22px 64px; }
}

/* ── Tablet Landscape / Small Desktop (1024px – 1279px) ── */
@media (max-width: 1279px) and (min-width: 1025px) {
  .right { width: 360px; padding: 28px 24px; }
  .step-panel { padding: 36px 40px 48px; }
  .progress-bar { padding: 24px 40px; }
  .top-nav { padding: 18px 40px; }
  .form-title { font-size: 24px; }
}

/* ── Tablet Portrait (768px – 1024px) ── */
@media (max-width: 1024px) {
  /* Stack layout vertically */
  .wrap {
    flex-direction: column;
  }

  /* Right panel: full width, not sticky, natural height */
  .right {
    width: 100%;
    height: auto;
    position: static;
    border-left: none;
    border-top: 1px solid var(--border-soft);
    padding: 28px 32px;
    order: -1; /* Show order summary on top on tablet/mobile */
  }

  .left {
    width: 100%;
  }

  .step-panel { padding: 36px 40px 48px; }
  .progress-bar { padding: 24px 40px; }
  .top-nav { padding: 18px 40px; }

  .plans-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pay-methods-grid { grid-template-columns: repeat(4, 1fr); }
  .bank-grid { grid-template-columns: repeat(3, 1fr); }

  .os-total-price { font-size: 24px; }
}

/* ── Mobile Large (640px – 767px) ── */
@media (max-width: 767px) {
  .wrap { flex-direction: column; }

  .right {
    width: 100%;
    height: auto;
    position: static;
    border-left: none;
    border-top: 1px solid var(--border-soft);
    padding: 24px 20px;
    order: -1;
  }

  .left { width: 100%; }

  .top-nav { padding: 16px 20px; }
  .nav-secure { display: none; } /* hide on small screens */

  .progress-bar { padding: 20px 20px; }
  .prog-num { width: 28px; height: 28px; font-size: 11px; }
  .prog-label { font-size: 9px; letter-spacing: 0.06em; }
  .prog-line-wrap { padding-top: 14px; }

  .step-panel { padding: 28px 20px 40px; }
  .form-title { font-size: 22px; }
  .form-sub { font-size: 13px; margin-bottom: 28px; }

  /* Fields: stack first/last name on mobile */
  .field-row { grid-template-columns: 1fr; gap: 16px; }

  .plans-grid { grid-template-columns: 1fr; gap: 16px; }

  .pay-methods-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bank-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-grid { grid-template-columns: 1fr; gap: 14px; }

  .btn-row { flex-direction: column; gap: 10px; }
  .btn-back { width: 100%; justify-content: center; display: flex; align-items: center; }
  .cta-btn { margin-top: 24px; }

  .pay-input-row { flex-direction: column; gap: 0; }
  .pay-input { border-bottom: none; width: 100%; }
  .pay-submit-btn { width: 100%; height: 52px; }

  .success-wrap { padding: 40px 20px; min-height: 50vh; }
  .success-title { font-size: 22px; }

  .os-total-price { font-size: 22px; }
  .os-title { font-size: 16px; }
  .os-heading { font-size: 8px; }
}

/* ── Mobile Small (up to 480px) ── */
@media (max-width: 480px) {
  .top-nav { padding: 14px 16px; }

  .progress-bar { padding: 16px 16px; }
  .prog-num { width: 26px; height: 26px; font-size: 10px; }
  .prog-label { display: none; } /* hide text labels, show only circles on very small */

  .step-panel { padding: 24px 16px 36px; }
  .form-title { font-size: 20px; }

  .field-input { height: 48px; font-size: 14px; }
  .phone-prefix { height: 48px; min-width: 80px; font-size: 13px; }
  .phone-input { height: 48px; font-size: 14px; }

  .plans-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 18px; }
  .plan-price { font-size: 22px; }

  .pay-methods-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pay-method { padding: 12px 8px; }
  .pay-method-icon { font-size: 20px; }

  .bank-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .bank-item { padding: 12px 8px; font-size: 10px; }

  .cta-btn { height: 52px; font-size: 12px; letter-spacing: 0.08em; }
  .btn-back { height: 50px; padding: 0 20px; font-size: 11px; }

  .right { padding: 20px 16px; }
  .os-total-price { font-size: 20px; }
  .os-title { font-size: 15px; }

  .toggle-btn { padding: 8px 16px; font-size: 10px; }

  .upi-app { padding: 8px 12px; font-size: 11px; }

  .success-wrap { padding: 32px 16px; }
  .success-title { font-size: 20px; }
  .success-sub { font-size: 13px; }
  .success-icon { width: 60px; height: 60px; }
  .success-icon svg { width: 26px; height: 26px; }

  /* Toast: full width on very small screens */
  .custom-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
    width: auto;
  }
}

/* ── Extra Small / Old Mobile (up to 360px) ── */
@media (max-width: 360px) {
  .step-panel { padding: 20px 12px 32px; }
  .right { padding: 16px 12px; }
  .progress-bar { padding: 14px 12px; }
  .top-nav { padding: 12px 14px; }

  .form-title { font-size: 18px; }
  .field-input, .phone-input, .phone-prefix { height: 44px; }

  .plan-price { font-size: 20px; }
  .plan-name { font-size: 13px; }
  .plan-feat { font-size: 11px; }

  .cta-btn { height: 48px; font-size: 11px; }
  .btn-back { height: 46px; font-size: 10px; }

  .pay-methods-grid { grid-template-columns: repeat(2, 1fr); }
  .bank-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Print / High DPI (optional quality) ── */
@media (min-resolution: 2dppx) {
  .field-input,
  .phone-input { border-width: 1px; }
  .plan-card { border-width: 1px; }
  .plan-card.selected { border-width: 1.5px; }
}
