.payment-demo-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 24%, rgba(22, 139, 141, 0.12), transparent 27%),
    linear-gradient(180deg, #f7fbfc 0%, #edf5f8 100%);
}

.demo-checkout-shell {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.demo-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 11px 18px;
  color: #744f08;
  background: #fff5d7;
  border: 1px solid #efcf73;
  border-radius: 12px;
  font-size: 0.92rem;
}

.demo-notice strong {
  padding: 4px 9px;
  color: #fff;
  background: #9a6c10;
  border-radius: 999px;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin: 0 auto 34px;
  padding: 0;
  list-style: none;
}

.checkout-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #718096;
}

.checkout-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset-inline-start: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: #cddce6;
}

.checkout-steps span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #607286;
  background: #fff;
  border: 2px solid #cddce6;
  border-radius: 50%;
  font-weight: 1000;
}

.checkout-steps .is-complete,
.checkout-steps .is-active { color: var(--blue); }
.checkout-steps .is-complete span { color: #fff; background: #168b8d; border-color: #168b8d; }
.checkout-steps .is-active span { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 6px rgba(8, 60, 124, 0.1); }

.demo-checkout-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.demo-checkout-heading h1 {
  margin: 4px 0 9px;
  color: var(--blue-dark);
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.demo-checkout-heading > div:first-child > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.checkout-security {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 310px;
  padding: 14px 16px;
  color: #0a5c59;
  background: #e1f4f1;
  border: 1px solid #b3dfd9;
  border-radius: 14px;
}

.checkout-security > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #168b8d;
  border-radius: 50%;
  font-weight: 1000;
}

.checkout-security div { display: grid; gap: 2px; }
.checkout-security small { color: #527572; }

.demo-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.checkout-payment-card,
.checkout-order-card,
.demo-payment-success {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(8, 60, 124, 0.13);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(8, 43, 87, 0.11);
}

.checkout-payment-card { padding: clamp(24px, 4vw, 42px); }
.checkout-order-card { position: sticky; top: 24px; padding: 26px; }

.checkout-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.checkout-card-heading h2 { margin: 3px 0 0; color: var(--blue-dark); font-size: 2rem; }
.secure-chip { padding: 7px 11px; color: #0a5c59; background: #e1f4f1; border-radius: 999px; font-weight: 900; }

.demo-card-form { display: grid; gap: 18px; padding-top: 24px; }
.demo-card-form label { display: grid; gap: 7px; color: var(--blue-dark); font-weight: 900; }
.demo-card-form input[type="text"] {
  width: 100%;
  padding: 15px 16px;
  color: #233b55;
  background: #f9fbfc;
  border: 1px solid #cbd9e3;
  border-radius: 10px;
  font: inherit;
  direction: rtl;
}

.card-number-field { position: relative; }
.card-number-field input { direction: ltr !important; padding-inline-end: 74px !important; text-align: left; letter-spacing: 0.08em; }
.card-number-field span { position: absolute; inset-inline-end: 15px; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 0.82rem; font-weight: 1000; }
.card-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-consent { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 10px !important; color: var(--muted) !important; font-size: 0.9rem; }
.checkout-consent input { width: 18px; height: 18px; accent-color: var(--blue); }
.demo-pay-button { display: flex; justify-content: space-between; width: 100%; min-height: 56px; padding-inline: 24px; font-size: 1.03rem; }
.demo-card-footnote { margin: -5px 0 0; color: var(--muted); text-align: center; font-size: 0.82rem; line-height: 1.55; }

.checkout-course-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; margin: 22px 0; }
.checkout-course-mark { display: grid; place-items: center; width: 56px; height: 56px; color: #fff; background: linear-gradient(135deg, var(--blue), #168b8d); border-radius: 15px; font-family: Georgia, serif; font-size: 1.8rem; }
.checkout-course-row small { color: #168b8d; font-weight: 900; }
.checkout-course-row h2 { margin: 2px 0 4px; color: var(--blue-dark); font-size: 1.42rem; }
.checkout-course-row p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.checkout-plan-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 20px 0; }
.checkout-plan-picker button {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  color: var(--blue-dark);
  text-align: start;
  background: #fff;
  border: 1px solid #cbd9e3;
  border-radius: 11px;
  font: inherit;
  cursor: pointer;
}
.checkout-plan-picker button:hover { border-color: #168b8d; }
.checkout-plan-picker button.is-selected { color: #fff; background: linear-gradient(135deg, var(--blue), #168b8d); border-color: transparent; box-shadow: 0 13px 28px rgba(8, 60, 124, 0.2); }
.checkout-plan-picker span { font-weight: 900; }
.checkout-plan-picker strong { font-size: 1.15rem; }
.checkout-plan-picker em { position: absolute; inset-block-start: -10px; inset-inline-end: 8px; padding: 3px 7px; color: #075e5b; background: #cceee8; border-radius: 999px; font-size: 0.67rem; font-style: normal; font-weight: 1000; }

.checkout-totals { display: grid; gap: 12px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.checkout-totals div { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.checkout-totals dd { margin: 0; color: var(--blue-dark); font-weight: 1000; }
.checkout-total-row { align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.checkout-total-row dt { color: var(--blue-dark); font-weight: 1000; }
.checkout-total-row dd { font-size: 2rem; }
.checkout-cancel-note { margin: 18px 0 0; padding: 12px; color: #52677d; background: #f0f5f8; border-radius: 10px; font-size: 0.83rem; line-height: 1.55; }

.demo-payment-success { max-width: 760px; margin: 70px auto; padding: clamp(34px, 7vw, 70px); text-align: center; }
.success-mark { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; color: #fff; background: #168b8d; border-radius: 50%; font-size: 2.6rem; font-weight: 1000; box-shadow: 0 16px 35px rgba(22, 139, 141, 0.28); }
.demo-payment-success h2 { margin: 8px 0 12px; color: var(--blue-dark); font-size: clamp(2rem, 5vw, 3.6rem); }
.demo-payment-success > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.demo-payment-success > div:last-child { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }

@media (max-width: 900px) {
  .demo-checkout-heading { align-items: stretch; flex-direction: column; }
  .checkout-security { min-width: 0; }
  .demo-checkout-layout { grid-template-columns: 1fr; }
  .checkout-order-card { position: static; grid-row: 1; }
}

@media (max-width: 620px) {
  .demo-checkout-shell { width: min(100% - 24px, 1320px); padding-top: 16px; }
  .demo-notice { align-items: flex-start; flex-direction: column; }
  .checkout-steps b { display: none; }
  .checkout-steps li { justify-content: center; }
  .demo-checkout-heading h1 { font-size: 2.55rem; }
  .checkout-payment-card, .checkout-order-card { padding: 20px; border-radius: 15px; }
  .card-form-row { grid-template-columns: 1fr; }
  .demo-payment-success > div:last-child { flex-direction: column; }
}
