:root {
  --blue: #006bb6;
  --teal: #00a7b5;
  --ink: #132238;
  --muted: #637083;
  --line: #dce6ef;
  --bg: #f6fafc;
  --white: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
body.checkout-only {
  min-height: 100vh;
  background: #eaf0f5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 16px 28px;
}
a { color: inherit; text-decoration: none; }

.hero {
  min-height: 430px;
  background:
    linear-gradient(90deg, rgba(0, 78, 138, .92), rgba(0, 167, 181, .7)),
    url("https://images.unsplash.com/photo-1606811841689-23dfddce3e95?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: var(--white);
  padding: 26px min(7vw, 88px);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
}
nav strong { font-size: 28px; letter-spacing: .5px; }
.hero-content { max-width: 680px; margin-top: 84px; }
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(38px, 6vw, 70px); line-height: .98; margin-bottom: 18px; }
.hero p:not(.eyebrow) { font-size: 20px; line-height: 1.55; max-width: 640px; }

main { width: min(1180px, calc(100% - 32px)); margin: 42px auto 80px; }
.checkout-shell {
  width: min(1148px, 100%);
  margin: 0 auto;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
#apiStatus { color: var(--muted); font-size: 14px; }
.referral-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  border: 1px solid rgba(0, 167, 181, .28);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #f0fbfd;
  color: var(--ink);
  padding: 14px 16px;
  font-weight: 800;
}
.referral-status small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eaf4f8;
}
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-subtitle {
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.4;
}
.product-description {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}
.price { font-size: 34px; color: var(--blue); font-weight: 850; }
.price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.s4e-meta { margin: -6px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; }
ul { padding-left: 18px; margin: 0; color: var(--muted); line-height: 1.7; }
button {
  border: 0;
  border-radius: 8px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 800;
}
.primary, .buy { background: var(--blue); color: var(--white); }
.buy { margin-top: auto; width: 100%; }

dialog {
  width: min(1120px, calc(100% - 24px));
  max-height: min(860px, calc(100vh - 24px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(10, 32, 55, .35);
}
dialog::backdrop { background: rgba(8, 22, 38, .55); }
body.checkout-mode .hero { min-height: 300px; }
body.checkout-mode .hero-content { margin-top: 54px; }
body.checkout-mode .products { display: none; }
body.checkout-mode dialog[open] {
  display: block;
  position: static;
  margin: 0 auto;
  max-height: none;
  width: 100%;
}
body.checkout-mode dialog::backdrop { display: none; }
body.checkout-mode .close { display: none; }
body.checkout-mode .wizard-main { max-height: none; }
body.checkout-only dialog {
  box-shadow: 0 16px 42px rgba(25, 45, 65, .18);
}
form { position: relative; }
.close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 5;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  width: 36px;
  height: 36px;
  padding: 0;
}
.checkout-plan-card {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.checkout-plan-card:empty { display: none; }
.checkout-plan-card-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 250px;
  min-height: 250px;
  overflow: hidden;
  background: #fff;
}
.plan-card-image {
  min-height: 250px;
  background: #dbe9f1;
}
.plan-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}
.plan-card-content {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.plan-card-category {
  margin: 0 0 10px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  font-weight: 900;
}
.plan-card-content h1 {
  margin: 0 0 10px;
  color: #000a70;
  font-size: 30px;
  line-height: 1.08;
}
.plan-card-description {
  margin: 0;
  max-width: 650px;
  color: #5d6678;
  font-size: 17px;
  line-height: 1.48;
}
.plan-card-features {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  color: #17233b;
  font-size: 15px;
}
.plan-card-features li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--blue);
  font-weight: 900;
}
.plan-card-price {
  border-left: 1px solid var(--line);
  background: #f8fbfd;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}
.plan-card-price span {
  color: #687489;
  font-size: 14px;
}
.plan-card-price strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #000a70;
  font-size: 42px;
  line-height: 1;
}
.plan-card-price strong small {
  font-size: 16px;
  font-weight: 900;
}
.plan-card-price strong em {
  color: #00145f;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}
.plan-card-price p {
  margin: 0 0 8px;
  color: #687489;
  font-size: 13px;
  line-height: 1.42;
}
.plan-card-price button {
  width: 100%;
  border-radius: 999px;
  background: #000a70;
  color: #fff;
  padding: 15px 22px;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 900;
}
.plan-card-price button span {
  color: #fff;
  font-size: 18px;
}

.wizard-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  min-height: 680px;
  background: #fff;
}
.wizard-side {
  background: linear-gradient(180deg, #063a63, #006b9b);
  color: #fff;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 2px;
}
.brand-lockup img {
  display: block;
  width: min(178px, 100%);
  max-height: 58px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.wizard-side p { color: rgba(255,255,255,.82); line-height: 1.55; }
.wizard-side .eyebrow { color: #bdeeff; }
.wizard-side h2 { font-size: 30px; line-height: 1.08; margin-bottom: 4px; padding-right: 22px; }
.checkout-plan-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.checkout-plan-summary span {
  color: rgba(255,255,255,.74);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.checkout-plan-summary strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.22;
}
.checkout-plan-summary p {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.42;
}
.checkout-plan-summary b {
  color: #fff;
  font-size: 30px;
  line-height: 1;
}
.checkout-plan-summary small {
  color: rgba(255,255,255,.78);
  line-height: 1.35;
}
.summary-price {
  display: grid;
  gap: 2px;
}
.summary-condition {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.summary-condition span {
  color: rgba(255,255,255,.68);
}
.summary-description {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.wizard-steps {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.wizard-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.72);
  font-weight: 800;
  padding: 10px;
  border-radius: 8px;
}
.wizard-steps span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 13px;
}
.wizard-steps li.active { background: rgba(255,255,255,.14); color: #fff; }
.wizard-steps li.done span { background: #fff; color: var(--blue); }
.wizard-total {
  margin-top: auto;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 16px;
}
.wizard-total small { display: block; color: rgba(255,255,255,.78); margin-bottom: 5px; }
.wizard-total strong { font-size: 30px; }
.wizard-main {
  padding: 34px;
  overflow: auto;
  max-height: min(860px, calc(100vh - 24px));
}
.wizard-panel { display: none; animation: fadeIn .18s ease-out; }
.wizard-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.step-copy { color: var(--muted); line-height: 1.55; max-width: 680px; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
label { display: grid; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(0, 167, 181, .2);
  border-color: var(--teal);
}
.message { margin: 16px 0 0; color: var(--blue); font-weight: 800; min-height: 22px; }
.message.error { color: #b42318; }
.message.success { color: #087443; }
.message.info { color: var(--blue); }
.beneficiary-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.beneficiary-head p { color: var(--muted); margin-bottom: 0; line-height: 1.5; }
.holder-card, .dependent-card, .review-card, .empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.holder-card { padding: 16px; margin-bottom: 14px; }
.checkline {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  margin: 0 0 14px;
}
.checkline input { width: auto; }
.responsible-plan { margin-bottom: 0; }
.dependents-list { display: grid; gap: 12px; }
.empty-state { color: var(--muted); padding: 16px; line-height: 1.5; }
.monthly-billing-box {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.billing-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.billing-method-card {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  cursor: pointer;
}
.billing-method-card input {
  width: 18px;
  padding: 0;
}
.billing-method-card.selected {
  border-color: var(--blue);
  background: #eff8ff;
  box-shadow: inset 0 0 0 1px rgba(0, 107, 182, .16);
}
.billing-method-card strong {
  font-size: 17px;
}
.billing-method-card small {
  color: var(--muted);
  line-height: 1.4;
}
.billing-summary {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfd;
  color: var(--muted);
  line-height: 1.45;
}
.billing-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.billing-summary strong {
  color: var(--ink);
}
.billing-summary small {
  color: var(--muted);
}
.dependent-card { padding: 16px; }
.dependent-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.dependent-title span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.remove-dependent { background: #eef5f8; color: var(--ink); padding: 9px 11px; }
.compact { margin: 0; }
.wide { grid-column: 1 / -1; }
.review-box { display: grid; gap: 12px; }
.review-card { padding: 16px; }
.review-card span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 850; margin-bottom: 7px; }
.review-card strong { display: block; font-size: 18px; }
.review-card small { color: var(--muted); }
.review-lives { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--ink); }
.review-lives li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.review-lives li:first-child { border-top: 0; padding-top: 0; }
.review-lives span { grid-column: 1; text-transform: none; letter-spacing: 0; font-size: 13px; margin: 0; }
.review-lives b { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--blue); }
.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
}
.wizard-actions button { display: inline-flex; align-items: center; justify-content: center; }
#wizardBack { background: #eef5f8; color: var(--ink); }
#wizardBack:disabled, #wizardSubmit:disabled { opacity: .55; cursor: not-allowed; }
#wizardSubmit { display: none; }
@media (max-width: 860px) {
  dialog { width: min(720px, calc(100% - 16px)); }
  .checkout-plan-card-inner { grid-template-columns: 1fr; }
  .plan-card-image, .plan-card-image img { min-height: 220px; max-height: 260px; }
  .plan-card-content { padding: 24px 22px; }
  .plan-card-price { border-left: 0; border-top: 1px solid var(--line); padding: 22px; }
  .plan-card-price button { max-width: 320px; }
  .wizard-layout { grid-template-columns: 1fr; min-height: auto; }
  .wizard-side { padding: 22px; gap: 14px; }
  .wizard-side h2 { font-size: 24px; }
  .wizard-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .wizard-steps li { flex-direction: column; align-items: center; text-align: center; font-size: 12px; padding: 8px 4px; }
  .wizard-total { margin-top: 0; }
  .wizard-main { padding: 22px; max-height: none; }
}
@media (max-width: 680px) {
  body.checkout-only { padding: 0; }
  .checkout-shell { width: 100%; }
  dialog { width: 100%; border-radius: 0; }
  .plan-card-content h1 { font-size: 26px; }
  .plan-card-description { font-size: 15px; }
  .plan-card-features { display: grid; gap: 10px; margin-top: 18px; }
  .hero { min-height: 360px; padding: 22px 18px; }
  .hero-content { margin-top: 58px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .referral-status { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .beneficiary-head { flex-direction: column; }
  .billing-methods { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .wizard-actions { position: sticky; bottom: 0; background: #fff; margin-left: -22px; margin-right: -22px; padding: 14px 22px; }
  .wizard-actions button { flex: 1; }
  .review-lives li { grid-template-columns: 1fr; }
  .review-lives b { grid-column: 1; grid-row: auto; }
}

.product-category,
.summary-category {
  margin: 0 0 8px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 900;
}
.price-note,
.summary-price-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.summary-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 4px;
  background: rgba(255,255,255,.16);
}
.summary-features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 7px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.35;
}
.summary-features li::before {
  content: "✓";
  margin-right: 7px;
  color: #bdeeff;
  font-weight: 900;
}
.checkout-plan-summary .summary-category {
  color: #bdeeff;
  margin-bottom: -2px;
}
.checkout-plan-summary .summary-price-note {
  color: rgba(255,255,255,.78);
}


/* Premium checkout refinements */
body.checkout-only {
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 167, 181, .16), transparent 28%),
    linear-gradient(180deg, #eef7fb 0%, #f8fbfd 44%, #ffffff 100%);
  padding: 28px 18px 42px;
}
body.checkout-only .checkout-shell { width: min(1150px, 100%); }
.referral-status[hidden] { display: none !important; }
body.checkout-only .referral-status {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  border: 1px solid rgba(0, 107, 182, .16);
  border-left: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 34px rgba(0, 54, 96, .08);
  padding: 10px 16px;
  color: #003a70;
}
body.checkout-only .referral-status small { display: inline; margin-left: 8px; }
body.checkout-only dialog { background: transparent; box-shadow: none; overflow: visible; }
body.checkout-only form { display: grid; gap: 18px; }
.checkout-plan-card {
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 40, 82, .12);
}
.checkout-plan-card-inner { grid-template-columns: 224px minmax(0, 1fr) 250px; min-height: 252px; }
.plan-card-image, .plan-card-image img { min-height: 252px; }
.plan-card-content { padding: 34px 30px; }
.plan-card-category { color: #006bb6; font-size: 12px; letter-spacing: .09em; }
.plan-card-content h1 { max-width: 660px; color: #000a70; font-size: 29px; letter-spacing: 0; }
.plan-card-description { color: #5e6a7d; }
.plan-card-features { gap: 14px 24px; color: #132238; }
.plan-card-price { background: linear-gradient(180deg, #fbfdff, #f3f8fb); padding: 36px 28px; }
.plan-card-price strong { color: #000a70; letter-spacing: -.02em; }
.plan-card-price button {
  margin-top: 4px;
  min-height: 58px;
  background: #000a70;
  box-shadow: 0 12px 24px rgba(0, 10, 112, .18);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.plan-card-price button:hover { transform: translateY(-1px); background: #00118f; box-shadow: 0 16px 30px rgba(0, 10, 112, .24); }
.wizard-layout {
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  min-height: 650px;
  overflow: hidden;
  box-shadow: 0 20px 54px rgba(0, 40, 82, .10);
}
.wizard-side { background: linear-gradient(180deg, #074b78 0%, #005a89 48%, #004c74 100%); padding: 32px 30px; }
.brand-lockup img { width: min(168px, 100%); }
.wizard-side h2 { font-size: 28px; }
.checkout-plan-summary {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.wizard-steps li { transition: background .16s ease, color .16s ease; }
.wizard-steps li.active { background: rgba(255,255,255,.18); }
.wizard-total { background: rgba(255,255,255,.15); }
.wizard-main { background: #fff; padding: 36px 34px; }
.wizard-panel h3 { color: #060c2f; font-size: 22px; margin-bottom: 14px; }
.step-copy { color: #5c6a80; font-size: 16px; }
label { color: #54627a; }
input, select, textarea {
  min-height: 42px;
  border-color: #d6e3ec;
  background: #fbfdff;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:focus, select:focus, textarea:focus {
  background: #fff;
  outline: 0;
  border-color: #00a7b5;
  box-shadow: 0 0 0 4px rgba(0, 167, 181, .14);
}
.wizard-actions { align-items: center; }
.wizard-actions .primary, #wizardSubmit.primary { min-height: 46px; background: #006bb6; box-shadow: 0 12px 22px rgba(0, 107, 182, .16); }
#wizardBack { min-height: 46px; }
@media (max-width: 980px) {
  .checkout-plan-card-inner { grid-template-columns: 210px minmax(0, 1fr); }
  .plan-card-price { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .plan-card-price button { max-width: 340px; }
}
@media (max-width: 860px) {
  body.checkout-only { padding: 12px; }
  .checkout-plan-card-inner { grid-template-columns: 1fr; }
  .plan-card-image, .plan-card-image img { min-height: 230px; max-height: 280px; }
  .wizard-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body.checkout-only { padding: 0; background: #fff; }
  body.checkout-only form { gap: 0; }
  .checkout-plan-card, .wizard-layout { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .plan-card-price button { max-width: none; }
  .wizard-steps { overflow-x: auto; display: flex; padding-bottom: 4px; }
  .wizard-steps li { min-width: 96px; }
}


/* Checkout topbar + horizontal wizard */
body.checkout-only {
  background:
    radial-gradient(circle at 18% -6%, rgba(0, 167, 181, .14), transparent 32%),
    linear-gradient(180deg, #eef8fb 0%, #f7fbfe 45%, #ffffff 100%);
  padding: 22px 18px 44px;
}
body.checkout-only form { gap: 16px; }
.checkout-plan-card {
  position: sticky;
  top: 12px;
  z-index: 20;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(0, 40, 82, .13);
  backdrop-filter: blur(10px);
}
.checkout-plan-card-inner { display: none; }
.checkout-plan-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 24px;
  min-height: 148px;
  background: #fff;
}
.plan-topbar-copy {
  padding: 24px 28px;
  min-width: 0;
}
.plan-topbar-copy .plan-card-category {
  margin-bottom: 8px;
}
.plan-topbar-copy h1 {
  margin: 0 0 8px;
  color: #000a70;
  font-size: 30px;
  line-height: 1.05;
}
.plan-topbar-copy .plan-card-description {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.45;
}
.plan-topbar-copy .plan-card-features {
  margin-top: 14px;
  gap: 10px 22px;
  font-size: 14px;
}
.plan-topbar-price {
  align-self: stretch;
  border-left: 1px solid #d8e7f0;
  background: linear-gradient(180deg, #fbfdff, #f3f9fc);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.plan-topbar-price span {
  color: #66748a;
  font-size: 13px;
}
.plan-topbar-price strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #000a70;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.02em;
}
.plan-topbar-price strong small {
  font-size: 15px;
  font-weight: 900;
}
.plan-topbar-price strong em {
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}
.plan-topbar-price p {
  margin: 0;
  color: #66748a;
  font-size: 13px;
  line-height: 1.35;
}
.wizard-layout {
  display: block;
  min-height: 0;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 54px rgba(0, 40, 82, .10);
}
.wizard-side {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #132238;
  padding: 18px 24px;
  border-bottom: 1px solid #d8e7f0;
}
.wizard-side .brand-lockup {
  margin: 0;
  min-height: 34px;
}
.wizard-side .brand-lockup img {
  width: 132px;
  filter: none;
}
.wizard-side > .eyebrow,
.wizard-side > h2,
.wizard-side > .checkout-plan-summary {
  display: none;
}
.wizard-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 8px;
  margin: 0;
  align-items: stretch;
}
.wizard-steps li {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #66748a;
  background: #f5f9fc;
  border: 1px solid #e1edf4;
  border-radius: 8px;
  padding: 11px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.wizard-steps span {
  width: 26px;
  height: 26px;
  background: #e7f2f8;
  color: #006bb6;
  font-weight: 900;
}
.wizard-steps li.active {
  background: #006bb6;
  border-color: #006bb6;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 107, 182, .18);
}
.wizard-steps li.active span {
  background: #fff;
  color: #006bb6;
}
.wizard-steps li.done {
  background: #edf9fb;
  border-color: rgba(0, 167, 181, .28);
  color: #006b79;
}
.wizard-steps li.done span {
  background: #00a7b5;
  color: #fff;
}
.wizard-total {
  margin: 0;
  min-width: 178px;
  background: #f3f9fc;
  border: 1px solid #d8e7f0;
  color: #132238;
  padding: 12px 14px;
}
.wizard-total small {
  color: #66748a;
}
.wizard-total strong {
  color: #000a70;
  font-size: 24px;
}
.wizard-main {
  max-height: none;
  padding: 34px 34px 28px;
}
.wizard-panel .eyebrow {
  color: #006bb6;
}
@media (max-width: 1040px) {
  .wizard-side { grid-template-columns: 1fr; align-items: stretch; }
  .wizard-side .brand-lockup { justify-content: center; }
  .wizard-total { width: 100%; text-align: center; }
}
@media (max-width: 820px) {
  .checkout-plan-card { position: static; }
  .checkout-plan-topbar { grid-template-columns: 1fr; gap: 0; }
  .plan-topbar-price { border-left: 0; border-top: 1px solid #d8e7f0; }
  .wizard-steps { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .wizard-steps li { min-width: 150px; }
}
@media (max-width: 680px) {
  body.checkout-only { padding: 0; }
  .checkout-plan-card,
  .wizard-layout { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .plan-topbar-copy,
  .plan-topbar-price,
  .wizard-side,
  .wizard-main { padding-left: 18px; padding-right: 18px; }
  .plan-topbar-copy h1 { font-size: 25px; }
  .plan-topbar-price strong { font-size: 34px; }
  .wizard-actions { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
}


/* Payment explanation header refinement */
.checkout-plan-topbar {
  grid-template-columns: minmax(0, 1fr) 310px;
}
.plan-topbar-price {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(242,249,252,.96)),
    radial-gradient(circle at 100% 0%, rgba(0, 167, 181, .18), transparent 38%);
  padding: 26px 30px;
  gap: 9px;
}
.plan-topbar-price::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #00a7b5, #006bb6);
}
.plan-topbar-price .payment-kicker {
  width: fit-content;
  border-radius: 999px;
  background: #e9f8fb;
  color: #006b9b;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.plan-topbar-price strong {
  margin-top: 2px;
  font-size: 42px;
}
.plan-topbar-price p {
  color: #45546a;
  font-size: 14px;
  line-height: 1.45;
}
.plan-topbar-price .payment-source {
  color: #7a8798;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wizard-total {
  background: linear-gradient(180deg, #f8fcfe, #edf7fb);
}
.wizard-total small {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10px;
  font-weight: 900;
}
@media (max-width: 820px) {
  .checkout-plan-topbar { grid-template-columns: 1fr; }
  .plan-topbar-price::before { width: 100%; height: 4px; inset: 0 0 auto; }
}
@media (max-width: 680px) {
  .plan-topbar-price strong { font-size: 36px; }
}


/* Sticky wizard monthly header */
.wizard-side {
  position: sticky;
  top: 178px;
  z-index: 18;
  box-shadow: 0 12px 26px rgba(0, 40, 82, .08);
}
.wizard-total {
  box-shadow: 0 10px 20px rgba(0, 107, 182, .08);
}
@media (max-width: 1040px) {
  .wizard-side { top: 12px; }
}
@media (max-width: 820px) {
  .wizard-side { position: sticky; top: 0; z-index: 19; }
}
@media (max-width: 680px) {
  .wizard-side { top: 0; }
}


/* Unified sticky checkout header */
.checkout-sticky-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  gap: 10px;
  background: rgba(240, 248, 251, .92);
  padding-bottom: 10px;
  backdrop-filter: blur(12px);
}
.checkout-sticky-head .checkout-plan-card {
  position: static;
  top: auto;
  z-index: auto;
}
.checkout-sticky-head .wizard-side {
  position: static;
  top: auto;
  z-index: auto;
  box-shadow: 0 14px 30px rgba(0, 40, 82, .10);
}
.wizard-layout {
  margin-top: 0;
  overflow: visible;
}
body.checkout-only dialog {
  overflow: visible;
}
@media (max-width: 820px) {
  .checkout-sticky-head {
    position: sticky;
    top: 0;
    gap: 0;
    padding-bottom: 0;
  }
}
@media (max-width: 680px) {
  .checkout-sticky-head {
    background: #fff;
  }
}


/* Premium vertical checkout wizard */
body.checkout-only {
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 167, 181, .13), transparent 30%),
    linear-gradient(180deg, #edf8fb 0%, #f7fbfd 46%, #fff 100%);
}
body.checkout-only form {
  display: block;
}
.wizard-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.wizard-side {
  position: sticky;
  top: 18px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 16px;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfe 100%);
  color: #132238;
  box-shadow: 0 24px 60px rgba(0, 40, 82, .12);
}
.wizard-side .brand-lockup {
  order: -2;
  min-height: 32px;
  margin: 0 0 2px;
}
.wizard-side .brand-lockup img {
  width: 132px;
  filter: none;
}
.wizard-side > .eyebrow,
.wizard-side > h2,
.wizard-side > .checkout-plan-summary {
  display: none;
}
.wizard-side .checkout-plan-card {
  position: static;
  top: auto;
  z-index: auto;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}
.wizard-side .checkout-plan-topbar {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  gap: 0;
  background: #fff;
}
.wizard-side .plan-topbar-copy {
  padding: 18px 18px 14px;
}
.wizard-side .plan-topbar-copy .plan-card-category {
  margin-bottom: 8px;
  font-size: 11px;
}
.wizard-side .plan-topbar-copy h1 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.08;
}
.wizard-side .plan-topbar-copy .plan-card-description {
  font-size: 14px;
  line-height: 1.45;
}
.wizard-side .plan-topbar-copy .plan-card-features {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
}
.wizard-side .plan-topbar-price {
  border-left: 0;
  border-top: 1px solid #d8e7f0;
  padding: 18px;
  background: linear-gradient(180deg, #f8fdff, #edf9fb);
}
.wizard-side .plan-topbar-price::before {
  width: 100%;
  height: 4px;
  inset: 0 0 auto;
}
.wizard-side .plan-topbar-price strong {
  font-size: 32px;
}
.wizard-side .plan-topbar-price p {
  font-size: 13px;
}
.wizard-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.wizard-steps li {
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  border-radius: 8px;
  padding: 12px 12px;
  white-space: normal;
}
.wizard-steps li.active {
  background: #006bb6;
  color: #fff;
}
.wizard-steps li.done {
  background: #edf9fb;
  color: #006b79;
}
.wizard-total {
  margin-top: auto;
  width: 100%;
  min-width: 0;
  border: 1px solid #cce5ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fcfe, #eaf8fb);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.wizard-total strong {
  font-size: 28px;
}
.wizard-main {
  min-height: calc(100vh - 36px);
  padding: 34px;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 40, 82, .10);
}
.monthly-billing-box {
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  background: #f8fcfe;
  padding: 18px;
}
.billing-method-card {
  background: #fff;
}
.billing-method-card.selected {
  border-color: #006bb6;
  box-shadow: 0 14px 28px rgba(0, 107, 182, .12);
}
.billing-summary {
  border-color: #cce5ef;
  background: #fff;
}
@media (max-width: 1020px) {
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-side {
    position: static;
    min-height: 0;
    max-height: none;
  }
  .wizard-steps {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .wizard-steps li { min-width: 150px; }
  .wizard-total { margin-top: 0; }
}
@media (max-width: 680px) {
  body.checkout-only { padding: 0; background: #fff; }
  .wizard-layout { gap: 0; }
  .wizard-side,
  .wizard-main {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
  .wizard-main { padding: 22px 18px 26px; }
  .grid { grid-template-columns: 1fr; }
}


/* Restore premium IdentAL plan details */
.wizard-layout {
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 22px;
}
.wizard-side {
  padding: 18px;
  gap: 16px;
}
.wizard-side .checkout-plan-card {
  border-color: #cfe3ee;
  box-shadow: 0 18px 36px rgba(0, 40, 82, .08);
}
.wizard-side .checkout-plan-topbar {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,252,254,.98));
}
.wizard-side .plan-topbar-copy {
  padding: 22px 22px 18px;
}
.plan-selected-label {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  border: 1px solid rgba(0, 107, 182, .18);
  border-radius: 999px;
  background: #edf8fb;
  color: #006b9b;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wizard-side .plan-topbar-copy .plan-card-category {
  margin: 0 0 8px;
  color: #006bb6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.wizard-side .plan-topbar-copy h1 {
  margin: 0 0 12px;
  color: #000a70;
  font-size: 30px;
  line-height: 1.04;
}
.wizard-side .plan-topbar-copy .plan-card-description {
  margin: 0;
  color: #526176;
  font-size: 16px;
  line-height: 1.5;
}
.wizard-side .plan-topbar-copy .plan-card-features {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  background: #fbfdff;
  display: grid;
  gap: 11px;
  color: #132238;
  font-size: 14px;
}
.wizard-side .plan-topbar-copy .plan-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.wizard-side .plan-topbar-copy .plan-card-features li::before {
  flex: 0 0 auto;
  margin: 0;
  color: #006bb6;
}
.wizard-side .plan-topbar-price {
  margin: 0 14px 14px;
  border: 1px solid #cfe3ee;
  border-radius: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 167, 181, .16), transparent 42%),
    linear-gradient(180deg, #f8fdff, #ecf8fb);
}
.wizard-side .plan-topbar-price::before {
  display: none;
}
.wizard-side .plan-topbar-price .payment-kicker {
  background: #fff;
  border: 1px solid rgba(0, 107, 182, .16);
}
.wizard-side .plan-topbar-price strong {
  color: #000a70;
  font-size: 38px;
  line-height: .98;
}
.wizard-side .plan-topbar-price p {
  color: #4d5d72;
  font-size: 15px;
  font-weight: 800;
}
.wizard-steps {
  padding-top: 2px;
}
.wizard-total {
  margin-top: 0;
}
@media (max-width: 1120px) {
  .wizard-layout { grid-template-columns: 390px minmax(0, 1fr); }
}
@media (max-width: 1020px) {
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-side .plan-topbar-price { margin: 0 18px 18px; }
}
@media (max-width: 680px) {
  .wizard-side .plan-topbar-copy { padding: 20px 18px 16px; }
  .wizard-side .plan-topbar-copy h1 { font-size: 27px; }
  .wizard-side .plan-topbar-price { margin: 0 18px 18px; }
}


/* IdentAL catalog-like vertical plan card */
.wizard-layout {
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 24px;
}
.wizard-side {
  padding: 0;
  gap: 14px;
  overflow: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.wizard-side .brand-lockup,
.wizard-side > .eyebrow,
.wizard-side > h2,
.wizard-side > .checkout-plan-summary {
  display: none;
}
.wizard-side .checkout-plan-card {
  width: 100%;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 52px rgba(0, 40, 82, .13);
}
.wizard-side .checkout-plan-topbar {
  display: block;
  min-height: 0;
  background: #fff;
}
.plan-vertical-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #dfeef5;
  overflow: hidden;
}
.plan-vertical-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wizard-side .plan-topbar-copy {
  padding: 26px 28px 22px;
}
.plan-selected-label {
  display: none;
}
.wizard-side .plan-topbar-copy .plan-card-category {
  margin: 0 0 12px;
  color: #006bb6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wizard-side .plan-topbar-copy h1 {
  margin: 0 0 14px;
  color: #000a70;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: 0;
}
.wizard-side .plan-topbar-copy .plan-card-description {
  margin: 0;
  color: #5c6678;
  font-size: 17px;
  line-height: 1.52;
}
.wizard-side .plan-topbar-copy .plan-card-features {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  gap: 12px;
  color: #132238;
  font-size: 15px;
}
.wizard-side .plan-topbar-copy .plan-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.wizard-side .plan-topbar-copy .plan-card-features li::before {
  content: "✓";
  flex: 0 0 auto;
  margin: 0;
  color: #006bb6;
  font-weight: 900;
}
.wizard-side .plan-topbar-price {
  margin: 0;
  border: 0;
  border-top: 1px solid #d8e7f0;
  border-radius: 0;
  padding: 26px 28px 28px;
  background: linear-gradient(180deg, #fbfdff, #f3f8fb);
}
.wizard-side .plan-topbar-price::before {
  display: none;
}
.wizard-side .plan-topbar-price .payment-kicker {
  display: block;
  width: auto;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #687489;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.wizard-side .plan-topbar-price strong {
  display: block;
  color: #000a70;
  font-size: 44px;
  line-height: .98;
  letter-spacing: -.02em;
}
.wizard-side .plan-topbar-price p {
  margin: 10px 0 0;
  color: #5f6b7d;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.wizard-steps,
.wizard-total {
  margin-left: 0;
  margin-right: 0;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 40, 82, .08);
}
.wizard-steps {
  padding: 12px;
}
.wizard-total {
  padding: 18px;
}
.wizard-main {
  border-color: #d8e7f0;
  box-shadow: 0 22px 52px rgba(0, 40, 82, .10);
}
@media (max-width: 1180px) {
  .wizard-layout { grid-template-columns: 420px minmax(0, 1fr); }
  .wizard-side .plan-topbar-copy h1 { font-size: 31px; }
}
@media (max-width: 1020px) {
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-side { max-height: none; }
}
@media (max-width: 680px) {
  .wizard-side .plan-topbar-copy { padding: 22px 20px 18px; }
  .wizard-side .plan-topbar-copy h1 { font-size: 28px; }
  .wizard-side .plan-topbar-price { padding: 22px 20px; }
  .wizard-side .plan-topbar-price strong { font-size: 38px; }
}


/* No-image premium plan summary */
.plan-vertical-image { display: none !important; }
.wizard-layout { grid-template-columns: 440px minmax(0, 1fr); }
.wizard-side .checkout-plan-card {
  border: 1px solid #d7e7ef;
  background: #fff;
}
.wizard-side .checkout-plan-topbar {
  display: block;
  background: #fff;
}
.wizard-side .plan-topbar-copy {
  padding: 30px 30px 24px;
}
.wizard-side .plan-topbar-copy .plan-card-category {
  margin-bottom: 12px;
  color: #006bb6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wizard-side .plan-topbar-copy h1 {
  margin-bottom: 14px;
  color: #000a70;
  font-size: 32px;
  line-height: 1.06;
}
.wizard-side .plan-topbar-copy .plan-card-description {
  color: #596579;
  font-size: 17px;
  line-height: 1.55;
}
.wizard-side .plan-topbar-copy .plan-card-features {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  color: #142238;
  font-size: 15px;
}
.wizard-side .plan-topbar-price {
  padding: 24px 30px 28px;
  border-top: 1px solid #d7e7ef;
  background: linear-gradient(180deg, #fbfdff, #f2f8fb);
}
.wizard-side .plan-topbar-price .payment-kicker {
  margin-bottom: 9px;
  color: #687489;
  font-size: 14px;
}
.wizard-side .plan-topbar-price strong {
  font-size: 42px;
}
.wizard-side .plan-topbar-price p {
  margin-top: 10px;
  color: #4f6075;
  font-size: 15px;
  font-weight: 800;
}
@media (max-width: 1180px) { .wizard-layout { grid-template-columns: 410px minmax(0, 1fr); } }
@media (max-width: 1020px) { .wizard-layout { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .wizard-side .plan-topbar-copy { padding: 24px 20px 20px; }
  .wizard-side .plan-topbar-copy h1 { font-size: 28px; }
  .wizard-side .plan-topbar-price { padding: 22px 20px; }
}


/* Align vertical sidebar blocks and keep actions visible */
.wizard-side {
  align-items: stretch;
}
.wizard-side .checkout-plan-card,
.wizard-side .wizard-steps,
.wizard-side .wizard-total {
  width: 100%;
  box-sizing: border-box;
}
.wizard-side .wizard-steps {
  margin: 0;
  padding: 12px;
  border: 1px solid #d7e7ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 40, 82, .08);
}
.wizard-side .wizard-total {
  margin: 0;
  border-color: #d7e7ef;
  box-shadow: 0 18px 40px rgba(0, 40, 82, .08);
}
.wizard-main {
  padding-bottom: 18px;
}
.wizard-actions {
  position: sticky;
  bottom: 16px;
  z-index: 25;
  align-items: center;
  margin: 22px 0 0;
  padding: 14px;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 40px rgba(0, 40, 82, .14);
  backdrop-filter: blur(10px);
}
.wizard-actions button {
  min-height: 46px;
}
@media (max-width: 680px) {
  .wizard-actions {
    bottom: 0;
    margin-left: -18px;
    margin-right: -18px;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
  }
}


/* Payment block visible inside plan card and safe actions */
.wizard-side .plan-topbar-copy .plan-topbar-price {
  margin: 24px 0 0;
  border: 1px solid #bfe2ec;
  border-radius: 8px;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 167, 181, .16), transparent 40%),
    linear-gradient(180deg, #f8fdff, #eaf8fb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.wizard-side .plan-topbar-copy .plan-topbar-price .payment-kicker {
  display: block;
  margin: 0 0 8px;
  color: #006b9b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wizard-side .plan-topbar-copy .plan-topbar-price strong {
  display: block;
  color: #000a70;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.02em;
}
.wizard-side .plan-topbar-copy .plan-topbar-price p {
  margin: 10px 0 0;
  color: #4f6075;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}
.wizard-side > .plan-topbar-price {
  display: none;
}
.wizard-main {
  display: flex;
  flex-direction: column;
}
.wizard-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: auto -8px 0;
  padding: 14px 8px 0;
  border: 0;
  border-top: 1px solid #d8e7f0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -18px 34px rgba(255,255,255,.96);
  backdrop-filter: none;
}
.wizard-actions button {
  min-height: 48px;
}
@media (max-width: 680px) {
  .wizard-actions {
    margin-left: -18px;
    margin-right: -18px;
    padding: 12px 18px;
    box-shadow: 0 -14px 28px rgba(0, 40, 82, .10);
  }
}


/* Raise wizard actions near payment summary */
.wizard-main {
  display: flex;
  flex-direction: column;
}
.wizard-actions {
  order: -1;
  position: sticky;
  top: 18px;
  z-index: 24;
  align-self: flex-end;
  justify-content: flex-end;
  width: fit-content;
  margin: 0 0 24px auto;
  padding: 10px;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 38px rgba(0, 40, 82, .12);
  backdrop-filter: blur(10px);
}
.wizard-actions button {
  min-height: 44px;
  padding-left: 18px;
  padding-right: 18px;
}
@media (max-width: 1020px) {
  .wizard-actions {
    position: sticky;
    top: 8px;
    width: 100%;
    align-self: stretch;
  }
}
@media (max-width: 680px) {
  .wizard-actions {
    top: auto;
    bottom: 0;
    margin: 0 -18px 18px;
    border-left: 0;
    border-right: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 28px rgba(0, 40, 82, .10);
  }
  .wizard-actions button { flex: 1; }
}


/* Sidebar footer actions beside monthly estimate */
.wizard-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}
.wizard-footer .wizard-total {
  margin: 0;
  min-width: 0;
}
.wizard-footer .wizard-actions {
  order: 0;
  position: static;
  top: auto;
  bottom: auto;
  z-index: auto;
  align-self: stretch;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.wizard-footer .wizard-actions button {
  min-height: 42px;
  white-space: nowrap;
  padding-left: 16px;
  padding-right: 16px;
}
.wizard-footer #wizardBack {
  background: #eef5f8;
}
.wizard-footer #wizardNext,
.wizard-footer #wizardSubmit {
  background: #006bb6;
  color: #fff;
  box-shadow: 0 12px 22px rgba(0, 107, 182, .16);
}
@media (max-width: 1180px) {
  .wizard-footer { grid-template-columns: 1fr; }
  .wizard-footer .wizard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wizard-footer #wizardSubmit { grid-column: 1 / -1; }
}
@media (max-width: 1020px) {
  .wizard-footer { grid-template-columns: minmax(0, 1fr) auto; }
  .wizard-footer .wizard-actions { grid-template-columns: 1fr; }
  .wizard-footer #wizardSubmit { grid-column: auto; }
}
@media (max-width: 680px) {
  .wizard-footer { grid-template-columns: 1fr; }
  .wizard-footer .wizard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .wizard-footer #wizardSubmit { grid-column: 1 / -1; }
}


/* Compact steps and visible checkout footer */
.wizard-side .wizard-steps {
  padding: 8px;
  gap: 6px;
}
.wizard-side .wizard-steps li {
  min-height: 38px;
  padding: 8px 10px;
  gap: 8px;
  font-size: 12px;
  line-height: 1.15;
}
.wizard-side .wizard-steps span {
  width: 24px;
  height: 24px;
  font-size: 12px;
}
.wizard-side .wizard-total {
  padding: 13px 14px;
}
.wizard-side .wizard-total strong {
  font-size: 25px;
}
#checkoutForm > .wizard-actions {
  position: sticky;
  bottom: 12px;
  z-index: 35;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: min(100%, 1180px);
  margin: 16px auto 0;
  padding: 12px;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 44px rgba(0, 40, 82, .16);
  backdrop-filter: blur(10px);
}
#checkoutForm > .wizard-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#checkoutForm > .wizard-actions #wizardBack {
  background: #eef5f8;
  color: #132238;
}
#checkoutForm > .wizard-actions .primary {
  background: #006bb6;
  color: #fff;
}
@media (max-width: 680px) {
  #checkoutForm > .wizard-actions {
    bottom: 0;
    margin-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
  }
  #checkoutForm > .wizard-actions button { flex: 1; }
}


/* Customer-facing checkout footer summary */
.checkout-footer {
  position: sticky;
  bottom: 12px;
  z-index: 35;
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(100%, 1180px);
  margin: 16px auto 0;
  padding: 14px;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 44px rgba(0, 40, 82, .16);
  backdrop-filter: blur(10px);
}
.checkout-footer .wizard-total {
  margin: 0;
  min-width: 0;
  border: 1px solid #cfe3ee;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fdff, #edf8fb);
  padding: 12px 14px;
  box-shadow: none;
}
.checkout-footer .wizard-total small {
  display: block;
  margin-bottom: 4px;
  color: #5d6b80;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.checkout-footer .wizard-total strong {
  color: #000a70;
  font-size: 26px;
  line-height: 1;
}
.checkout-footer-copy {
  display: grid;
  gap: 3px;
}
.checkout-footer-copy strong {
  color: #132238;
  font-size: 15px;
}
.checkout-footer-copy small {
  color: #637083;
  line-height: 1.35;
}
.checkout-footer .wizard-actions {
  position: static;
  top: auto;
  bottom: auto;
  order: 0;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.checkout-footer .wizard-actions button {
  min-height: 44px;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .checkout-footer {
    grid-template-columns: 1fr;
    bottom: 0;
    border-radius: 8px 8px 0 0;
  }
  .checkout-footer .wizard-actions { justify-content: stretch; }
  .checkout-footer .wizard-actions button { flex: 1; }
}
@media (max-width: 560px) {
  .checkout-footer .wizard-actions { flex-wrap: wrap; }
  .checkout-footer .wizard-actions button { min-width: calc(50% - 5px); }
  .checkout-footer #wizardSubmit { flex-basis: 100%; }
}


/* Always-visible upfront payment block */
.wizard-side .plan-topbar-copy > .plan-topbar-price {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 24px 0 0 !important;
  border: 1px solid #b9dfea !important;
  border-radius: 8px !important;
  padding: 22px !important;
  background:
    linear-gradient(135deg, rgba(0, 167, 181, .10), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #eef9fc 100%) !important;
  box-shadow: 0 18px 36px rgba(0, 107, 182, .10), inset 0 1px 0 rgba(255,255,255,.85) !important;
}
.wizard-side .plan-topbar-copy > .plan-topbar-price .payment-kicker {
  display: block !important;
  margin: 0 0 9px !important;
  color: #006b9b !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
.wizard-side .plan-topbar-copy > .plan-topbar-price strong {
  display: block !important;
  color: #000a70 !important;
  font-size: 42px !important;
  line-height: 1 !important;
  letter-spacing: -.02em !important;
}
.wizard-side .plan-topbar-copy > .plan-topbar-price p {
  display: block !important;
  margin: 10px 0 0 !important;
  color: #4d5f75 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.38 !important;
}
@media (max-width: 680px) {
  .wizard-side .plan-topbar-copy > .plan-topbar-price {
    padding: 20px !important;
  }
  .wizard-side .plan-topbar-copy > .plan-topbar-price strong {
    font-size: 38px !important;
  }
}


/* Footer upfront payment summary */
.checkout-footer {
  grid-template-columns: minmax(180px, .75fr) minmax(180px, .75fr) minmax(240px, 1fr) auto;
}
.checkout-upfront {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #b9dfea;
  border-radius: 8px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(0, 167, 181, .10), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #eef9fc 100%);
}
.checkout-upfront small {
  color: #006b9b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.checkout-upfront strong {
  color: #000a70;
  font-size: 26px;
  line-height: 1;
}
.checkout-upfront span {
  color: #4f6075;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}
@media (max-width: 1100px) {
  .checkout-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-footer-copy, .checkout-footer .wizard-actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .checkout-footer { grid-template-columns: 1fr; }
  .checkout-footer-copy, .checkout-footer .wizard-actions { grid-column: auto; }
}

/* Checkout footer as the single payment summary */
.wizard-side .plan-topbar-copy > .plan-topbar-price {
  display: none !important;
}
.checkout-footer {
  align-items: stretch;
  grid-template-columns: minmax(190px, .7fr) minmax(190px, .7fr) minmax(220px, 1fr) auto;
}
.checkout-upfront {
  box-shadow: 0 14px 28px rgba(0, 107, 182, .08), inset 0 1px 0 rgba(255,255,255,.85);
}
.checkout-upfront strong {
  font-size: 28px;
  letter-spacing: -.02em;
}
.checkout-footer .wizard-total {
  background: #ffffff;
}
.checkout-footer-copy small {
  color: #5a6b83;
}
@media (max-width: 1100px) {
  .checkout-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .checkout-footer {
    gap: 8px;
    padding: 10px;
  }
  .checkout-upfront strong,
  .checkout-footer .wizard-total strong {
    font-size: 24px;
  }
}

/* Responsible form: denser, readable desktop layout */
.responsible-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
}
.responsible-grid .field-name { grid-column: span 8; }
.responsible-grid .field-birth { grid-column: span 4; }
.responsible-grid .field-cpf,
.responsible-grid .field-rg,
.responsible-grid .field-issuer { grid-column: span 4; }
.responsible-grid .field-mother { grid-column: span 12; }
.responsible-grid .field-email { grid-column: span 5; }
.responsible-grid .field-phone { grid-column: span 4; }
.responsible-grid .field-gender { grid-column: span 3; }
.responsible-grid input,
.responsible-grid select {
  min-width: 0;
  height: 43px;
}
@media (max-width: 860px) {
  .responsible-grid .field-name,
  .responsible-grid .field-mother,
  .responsible-grid .field-email { grid-column: span 12; }
  .responsible-grid .field-birth,
  .responsible-grid .field-cpf,
  .responsible-grid .field-rg,
  .responsible-grid .field-issuer,
  .responsible-grid .field-phone,
  .responsible-grid .field-gender { grid-column: span 6; }
}
@media (max-width: 560px) {
  .responsible-grid { grid-template-columns: 1fr; }
  .responsible-grid .field-name,
  .responsible-grid .field-birth,
  .responsible-grid .field-cpf,
  .responsible-grid .field-rg,
  .responsible-grid .field-issuer,
  .responsible-grid .field-mother,
  .responsible-grid .field-email,
  .responsible-grid .field-phone,
  .responsible-grid .field-gender { grid-column: auto; }
}

/* Live checkout summary */
.checkout-footer-copy {
  min-width: 0;
}
.checkout-footer-copy small {
  display: block;
  line-height: 1.35;
  max-height: 76px;
  overflow: hidden;
}
@media (max-width: 1100px) {
  .checkout-footer-copy small {
    max-height: none;
  }
}

/* PagSeguro payment tracking modal */
.payment-overlay[hidden] { display: none; }
.payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 10, 112, .48);
  backdrop-filter: blur(5px);
}
.payment-shell {
  width: min(1120px, 100%);
  height: min(820px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.42);
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 10, 112, .28);
}
.payment-head,
.payment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #d8e7f0;
}
.payment-head span {
  color: #0073b6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.payment-head h2 {
  margin: 3px 0 0;
  color: #000a70;
  font-size: 20px;
}
#paymentClose {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  padding: 0;
  background: #eef6fb;
  color: #000a70;
}
.payment-status {
  display: grid;
  gap: 3px;
  margin: 12px 18px;
  padding: 12px 14px;
  border: 1px solid #cfe1ec;
  border-radius: 8px;
  background: #f7fbfd;
}
.payment-status strong { color: #000a70; }
.payment-status small { color: #54627a; line-height: 1.4; }
.payment-status.success { border-color: #8fd8b2; background: #f0fff7; }
.payment-status.error { border-color: #f3b2aa; background: #fff5f4; }
.payment-status.pending { border-color: #b9dfea; background: #f2fbfe; }
#paymentFrame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f7fbfd;
}
.payment-actions {
  border-top: 1px solid #d8e7f0;
  border-bottom: 0;
  justify-content: flex-end;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #eef6fb;
  color: #000a70;
  font-weight: 900;
  text-decoration: none;
}
@media (max-width: 720px) {
  .payment-overlay { padding: 0; }
  .payment-shell { height: 100vh; border-radius: 0; }
  .payment-head,
  .payment-actions { padding: 12px; }
  .payment-actions { flex-direction: column; align-items: stretch; }
  .payment-actions .button-link,
  .payment-actions button { width: 100%; }
}

/* PagBank external payment guide */
.payment-shell {
  height: auto;
  min-height: 420px;
  grid-template-rows: auto auto 1fr auto;
}
.payment-guide {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 18px;
  padding: 28px;
  min-height: 210px;
  border: 1px solid #d8e7f0;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 167, 181, .12), transparent 44%),
    linear-gradient(180deg, #ffffff 0%, #f5fbfe 100%);
}
.payment-guide-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #000a70;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}
.payment-guide strong {
  display: block;
  color: #000a70;
  font-size: 22px;
  margin-bottom: 8px;
}
.payment-guide p {
  margin: 0;
  color: #4d5f75;
  line-height: 1.55;
  max-width: 680px;
}
.payment-guide.popup-blocked {
  border-color: #f3b2aa;
  background: #fff8f7;
}
#paymentFrame { display: none !important; }
@media (max-width: 720px) {
  .payment-shell { min-height: 100vh; }
  .payment-guide {
    grid-template-columns: 1fr;
    margin: 12px;
    padding: 22px;
  }
}
