/* ============================================================
   Arabic SAP Academy — Registration System
   Public (trainee) stylesheet. RTL / Arabic-first, mobile-first.
   ============================================================ */

/* Brand tokens taken directly from arabicsap.com (Astra global palette):
   0274be primary · 0d68ae hover · 2f3f50 headings · 3a3a3a text ·
   fafafa/FBFCFF grounds · 003bb1 deep accent · BFD1FF light accent ·
   dddddd borders · f4511e = the academy wizard's own warning accent. */
:root {
  --navy: #2f3f50;
  --navy-2: #003bb1;
  --blue: #0274be;
  --blue-hover: #0d68ae;
  --blue-soft: #f0f6fc;
  --blue-border: #BFD1FF;
  --gold: #f4511e;
  --gold-soft: #fdeee8;
  --ink: #3a3a3a;
  --muted: #6b7683;
  --line: #dddddd;
  --bg: #fafafa;
  --white: #ffffff;
  --green: #2e7d32;
  --green-soft: #eaf4ea;
  --red: #c0392b;
  --red-soft: #fdecea;
  --amber: #c63d12;
  --amber-soft: #fef1ec;
  --radius: 6px;
  --shadow: 0 6px 18px rgba(47, 63, 80, .08);
  --shadow-soft: 0 2px 8px rgba(47, 63, 80, .06);
  --font: "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
small { font-weight: 400; }

.container { width: min(1080px, 100% - 2rem); margin-inline: auto; }

/* ---------------- Header — matches the arabicsap.com header bar
   (white, solid bottom border, logo + dark slate wordmark) ---------------- */
.site-header {
  background: #fff;
  color: var(--navy);
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--navy); }
.brand-logo { width: 58px; height: auto; display: block; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .2px; }
.header-badge {
  color: var(--blue);
  border: 1px solid var(--blue-border);
  background: var(--blue-soft);
  padding: .3rem .9rem;
  border-radius: 2px;
  font-size: .8rem;
  white-space: nowrap;
}

/* (Page loader removed at the academy's request — the animated logo's
   background is not white; the static official logo is used instead.) */

/* ---------------- Persistent IP banner ---------------- */
.ip-banner {
  background: var(--amber-soft);
  border-bottom: 1px solid #f2dfae;
  color: var(--amber);
}
.ip-banner-inner { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem 0; font-size: .88rem; }
.ip-banner-icon { font-size: 1.2rem; line-height: 1.4; }

/* ---------------- Layout ---------------- */
.main-area { flex: 1; padding: 1.6rem 0 3rem; }

.site-footer {
  background: var(--bg);
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 1.1rem 0;
  font-size: .8rem;
}

/* ---------------- Cards ---------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem;
}

.fade-up { animation: fadeUp .45s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
}

/* ---------------- Progress bar ---------------- */
.progress-bar {
  display: flex;
  justify-content: space-between;
  gap: .3rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: .3rem;
}
.progress-step {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  flex: 1; min-width: 74px; position: relative; text-align: center;
}
.progress-step:not(:last-child)::after {
  content: ""; position: absolute; top: 17px; inset-inline-start: calc(50% + 22px);
  width: calc(100% - 44px); height: 2px; background: var(--line);
}
.progress-step.is-done:not(:last-child)::after { background: var(--green); }
.progress-dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--line);
  color: var(--muted); font-weight: 700; font-size: .9rem; z-index: 1;
  transition: all .25s ease;
}
.progress-step.is-current .progress-dot {
  border-color: var(--blue); color: var(--blue);
  box-shadow: 0 0 0 5px var(--blue-soft);
}
.progress-step.is-done .progress-dot { background: var(--green); border-color: var(--green); color: #fff; }
.progress-label { font-size: .74rem; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; line-height: 1.25; }
.progress-label small { font-size: .62rem; font-weight: 400; opacity: .7; }
.progress-step.is-current .progress-label { color: var(--navy); }

/* ---------------- Headings ---------------- */
.page-head { margin-bottom: 1.2rem; }
.page-head h1, .card-head h1 { font-size: 1.45rem; font-weight: 800; color: var(--navy); }
.page-head p, .card-head p { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.card-head { margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }

/* ---------------- Notices & alerts ---------------- */
.notice { border-radius: 10px; padding: .9rem 1.1rem; font-size: .88rem; margin-bottom: 1.2rem; }
.notice-info { background: var(--blue-soft); border: 1px solid var(--blue-border); color: var(--navy-2); }
.notice-warning { background: var(--amber-soft); border: 1px solid var(--amber); color: var(--amber); }
.notice-warning code { background: rgba(0,0,0,.06); padding: .1rem .35rem; border-radius: 4px; }
.alert { border-radius: 10px; padding: .8rem 1.1rem; font-size: .9rem; margin-bottom: 1.1rem; }
.alert-error { background: var(--red-soft); border: 1px solid #f5c6c0; color: var(--red); }
.alert-success { background: var(--green-soft); border: 1px solid #bfe8d4; color: var(--green); }

/* ---------------- Forms ---------------- */
.form-card { max-width: 780px; margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; color: var(--navy); }
.field label small { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; }
.req { color: var(--red); font-weight: 800; }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field input[type="date"], .field input[type="file"],
.field select, .ss-trigger {
  font-family: var(--font);
  width: 100%;
  padding: .68rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  min-height: 46px;
}
.field input:focus, .field select:focus, .ss-trigger:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.field.has-error input, .field.has-error select, .field.has-error .ss-trigger { border-color: var(--red); }
.field-error { color: var(--red); font-size: .78rem; font-weight: 700; }
.field-hint { color: var(--muted); font-size: .76rem; }
.uploaded-hint { color: var(--green); font-weight: 700; }

.phone-row { display: flex; gap: .5rem; }
.phone-row input { flex: 1; }
.dial-compact { width: 120px; flex-shrink: 0; }
.dial-compact .ss-trigger { direction: ltr; justify-content: center; font-weight: 600; }
.dial-compact .ss-panel { width: 300px; inset-inline-end: auto; inset-inline-start: 0; }
@media (max-width: 640px) { .dial-compact .ss-panel { width: min(300px, 86vw); } }

/* Step-saved progress strip (shown after each successfully saved step) */
.step-saved {
  background: var(--green-soft);
  border-bottom: 1px solid #cfe5cf;
  color: var(--green);
}
.step-saved-inner { display: flex; gap: .6rem; align-items: flex-start; padding: .65rem 0; font-size: .88rem; }
.step-saved-inner span { font-weight: 800; }

/* Data-accuracy acknowledgement */
.data-ack {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; font-size: .88rem; line-height: 1.8; cursor: pointer; font-weight: 400;
}
.data-ack input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex-shrink: 0; }

.footer-admin { margin-top: .3rem; }
.footer-admin a { color: var(--muted); font-size: .76rem; }
.footer-admin a:hover { color: var(--blue); }

.form-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-top: 1.6rem;
}
.autosave-note { text-align: center; color: var(--green); font-size: .76rem; min-height: 1.2rem; margin-top: .5rem; }

/* ---------------- Buttons ---------------- */
/* Buttons follow the Astra defaults used on arabicsap.com:
   solid primary, 2px radius, no gradients or glow shadows. */
.btn {
  font-family: var(--font);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: none; cursor: pointer; border-radius: 2px;
  padding: .65rem 1.4rem; font-size: .95rem; font-weight: 600;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-hover); }
.btn-lg { padding: .85rem 2.1rem; font-size: 1.02rem; }
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--line); }
.btn-ghost:hover { color: var(--navy); border-color: var(--muted); }
.btn-cta { margin-top: 1.4rem; }
.btn-arrow { font-size: 1.1rem; }

/* ---------------- Searchable select ---------------- */
.searchable-select { position: relative; }
.ss-trigger {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; text-align: start; gap: .5rem;
}
.ss-trigger .ss-placeholder { color: #9aa7b4; }
.ss-caret { font-size: .7rem; color: var(--muted); }
.ss-panel {
  position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.ss-search {
  width: 100%; border: none; border-bottom: 1px solid var(--line);
  padding: .7rem 1rem; font-family: var(--font); font-size: .9rem;
}
.ss-search:focus { outline: none; background: var(--blue-soft); }
.ss-list { max-height: 250px; overflow-y: auto; }
.ss-option {
  display: flex; justify-content: space-between; gap: .6rem;
  padding: .55rem 1rem; cursor: pointer; font-size: .9rem;
}
.ss-option:hover, .ss-option.is-active { background: var(--blue-soft); }
.ss-option .ss-en { color: var(--muted); font-size: .74rem; direction: ltr; }
.ss-empty { padding: .8rem 1rem; color: var(--muted); font-size: .85rem; }

/* ---------------- Welcome ---------------- */
.welcome-hero { max-width: 640px; margin: 1.5rem auto; text-align: center; padding: 2.6rem 2rem; }
.welcome-emblem { margin-bottom: 1rem; }
.welcome-logo { width: 90px; height: auto; }
.welcome-hero h1 { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.welcome-sub { color: var(--blue); font-size: .9rem; letter-spacing: .4px; margin-bottom: 1rem; }
.welcome-text { color: var(--muted); max-width: 460px; margin: 0 auto 1.4rem; }
.welcome-points {
  list-style: none; display: flex; flex-direction: column; gap: .55rem;
  max-width: 400px; margin: 0 auto 1rem; text-align: start; font-size: .88rem; color: var(--ink);
}
.welcome-points span { margin-inline-end: .45rem; }
.resume-box {
  background: var(--blue-soft); border: 1px solid var(--blue-border);
  border-radius: 12px; padding: 1.2rem; margin-top: 1.2rem;
  display: flex; flex-direction: column; gap: .8rem; align-items: center;
}
.resume-box p { font-size: .9rem; color: var(--navy-2); }

/* ---------------- SAP location ---------------- */
.region-preview { margin-top: 1.2rem; }
.region-box {
  display: flex; gap: .9rem; align-items: center;
  border-radius: 12px; padding: 1rem 1.2rem;
  background: var(--gold-soft); border: 1px solid #f0dcb4;
  animation: fadeUp .3s ease both;
}
.region-box[data-region="EGYPT"] { background: var(--green-soft); border-color: #bfe8d4; }
.region-flag { font-size: 1.6rem; }
.region-box strong { color: var(--navy); }
.region-box p { font-size: .82rem; color: var(--muted); }

/* ---------------- Warning interstitial ---------------- */
.warning-card { max-width: 660px; margin-inline: auto; text-align: center; padding: 2.4rem 2rem; border-top: 5px solid var(--gold); }
.warning-icon { font-size: 2.6rem; color: var(--gold); margin-bottom: .6rem; }
.warning-card h1 { color: var(--navy); font-size: 1.5rem; }
.warning-sub { color: var(--muted); font-size: .85rem; margin-bottom: 1.2rem; }
.warning-body { text-align: start; display: flex; flex-direction: column; gap: .8rem; font-size: .93rem; }
.warning-note { color: var(--muted); font-size: .84rem; }
.warning-actions { justify-content: center; flex-wrap: wrap; }

/* ---------------- Courses ---------------- */
.courses-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.4rem; align-items: start; }
.courses-list { display: flex; flex-direction: column; gap: 1rem; }

.course-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.course-card.is-selected { border-color: var(--blue); box-shadow: 0 3px 10px rgba(2, 116, 190, .12); }
.course-card.is-unavailable { opacity: .55; }
.course-main {
  display: grid; grid-template-columns: auto auto 1fr auto; gap: 1rem;
  padding: 1.2rem; cursor: pointer; align-items: center;
}
.course-check { width: 20px; height: 20px; accent-color: var(--blue); cursor: pointer; }
.course-icon {
  width: 54px; height: 54px; border-radius: 4px;
  display: grid; place-items: center;
  font-weight: 700; font-size: .95rem; color: #fff;
  background: var(--blue);
  letter-spacing: .5px;
}
.course-icon-mm { background: var(--navy); }
.course-icon-sd { background: var(--navy-2); }
.course-icon-hcm { background: var(--blue-hover); }
.course-icon-abap { background: #3a3a3a; }
.course-info { display: flex; flex-direction: column; gap: .15rem; }
.course-title { color: var(--navy); font-size: 1.02rem; }
.course-subtitle { color: var(--blue); font-size: .74rem; text-align: start; }
.course-desc { color: var(--muted); font-size: .82rem; }
.course-duration { color: var(--muted); font-size: .76rem; }
.course-price { text-align: center; display: flex; flex-direction: column; gap: .2rem; min-width: 110px; }
.course-price b { color: var(--navy); font-size: 1.05rem; white-space: nowrap; }
.course-price small { color: var(--muted); font-size: .7rem; }

.course-rounds { border-top: 1px dashed var(--line); padding: 1rem 1.2rem 1.2rem; background: #fafcff; }
.rounds-title { font-size: .84rem; font-weight: 700; color: var(--navy); margin-bottom: .7rem; }
.rounds-grid { display: flex; flex-wrap: wrap; gap: .7rem; }
.round-option input { position: absolute; opacity: 0; }
.round-box {
  display: flex; flex-direction: column; gap: .1rem;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: .6rem .9rem; cursor: pointer; background: #fff;
  font-size: .8rem; color: var(--muted); min-width: 130px;
  transition: all .2s ease;
}
.round-box b { color: var(--navy); font-size: .85rem; }
.round-option input:checked + .round-box {
  border-color: var(--blue); background: var(--blue-soft);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.round-option input:focus-visible + .round-box { outline: 2px solid var(--blue); }

/* ---------------- Summary panel ---------------- */
.summary-panel { position: sticky; top: 1rem; }
.summary-card h2 { font-size: 1.05rem; color: var(--navy); margin-bottom: .9rem; }
.summary-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1rem; }
.summary-list li { display: flex; justify-content: space-between; gap: .6rem; font-size: .86rem; }
.summary-list .s-name { color: var(--ink); }
.summary-list .s-round { color: var(--muted); font-size: .72rem; display: block; direction: ltr; text-align: end; }
.summary-list .s-price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.summary-empty { color: var(--muted); font-size: .84rem; }
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 2px solid var(--line); padding-top: .8rem; font-size: .95rem;
}
.summary-total b { color: var(--navy); font-size: 1.15rem; }
.summary-note { color: var(--muted); font-size: .72rem; margin-top: .5rem; }
.summary-actions { margin-top: 1rem; flex-direction: column-reverse; }
.summary-actions .btn { width: 100%; }

/* ---------------- Payment ---------------- */
.payment-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.4rem; align-items: start; }
.order-card h2, .payment-options h2 { font-size: 1.05rem; color: var(--navy); margin-bottom: .9rem; }
.order-list { list-style: none; display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1rem; }
.order-list li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; font-size: .9rem; }
.order-list small { display: block; color: var(--muted); font-size: .74rem; }
.order-list b { white-space: nowrap; color: var(--navy); }
.order-edit { font-size: .8rem; display: inline-block; margin-top: .8rem; }

.discount-box { border-top: 1px solid var(--line); margin: 1rem 0; padding-top: 1rem; }
.discount-box label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.discount-input-row { display: flex; gap: .5rem; }
.discount-input-row input { flex: 1; text-transform: uppercase; }
.discount-message { margin-top: .4rem; font-size: .78rem; min-height: 1.1em; }
.discount-message.is-ok { color: var(--green); }
.discount-message.is-bad { color: var(--red); }
.summary-total.discount-row b { color: var(--green); }
.summary-total.summary-final { border-top: 2px solid var(--navy); margin-top: .4rem; }

.payment-options { display: flex; flex-direction: column; gap: .9rem; }
.pay-option input { position: absolute; opacity: 0; }
.pay-box {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; cursor: pointer; transition: all .2s ease;
  box-shadow: var(--shadow-soft);
}
.pay-option input:checked + .pay-box {
  border-color: var(--blue); background: var(--blue-soft);
  box-shadow: 0 3px 10px rgba(2, 116, 190, .12);
}
.pay-option input:focus-visible + .pay-box { outline: 2px solid var(--blue); }
.pay-icon { font-size: 1.5rem; }
.pay-info { display: flex; flex-direction: column; gap: .15rem; }
.pay-info strong { color: var(--navy); }
.pay-info small { color: var(--muted); font-size: .8rem; }
.pay-req { color: var(--amber); font-weight: 700; }

/* ---------------- Confirmation ---------------- */
.confirm-hero { text-align: center; padding: 2.4rem 1.6rem; border-top: 5px solid var(--green); margin-bottom: 1.4rem; }
.confirm-check {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-size: 1.9rem; font-weight: 800;
}
.confirm-hero h1 { color: var(--navy); font-size: 1.5rem; }
.ref-code {
  background: var(--navy); color: #fff; padding: .2rem .8rem;
  border-radius: 8px; letter-spacing: 1px; font-size: 1rem;
}
.confirm-next { margin-top: .9rem; color: var(--muted); font-size: .92rem; max-width: 520px; margin-inline: auto; }
.confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 1.4rem; }
.confirm-grid h2 { font-size: 1.02rem; color: var(--navy); margin-bottom: .9rem; }
.data-list { display: flex; flex-direction: column; gap: .55rem; }
.data-list > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.data-list dt { color: var(--muted); }
.data-list dd { font-weight: 700; color: var(--ink); text-align: end; }
.confirm-footer { text-align: center; color: var(--muted); font-size: .86rem; }

/* ---------------- Phase 2: verification / OTP / payment ---------------- */
.verify-card { max-width: 480px; margin: 2.5rem auto; text-align: center; padding: 2.4rem 2rem; }
.verify-icon { font-size: 2.6rem; margin-bottom: .6rem; }
.verify-card h1 { color: var(--navy); font-size: 1.35rem; margin-bottom: .6rem; }
.verify-sub { color: var(--muted); font-size: .92rem; margin-bottom: 1.4rem; line-height: 1.8; }
.otp-field { max-width: 260px; margin: 0 auto 1.2rem; }
.otp-input {
  text-align: center; font-size: 1.6rem; letter-spacing: .6rem;
  font-weight: 800; direction: ltr; font-variant-numeric: tabular-nums;
}
.verify-card .btn-primary { min-width: 220px; }
.resend-form { margin-top: 1rem; }
.resume-link { margin-top: 1.1rem; font-size: .85rem; color: var(--muted); }

.due-box {
  background: var(--blue-soft); border: 1px solid var(--blue-border);
  border-radius: 12px; padding: 1.1rem 1.2rem; margin-bottom: 1rem;
}
.due-box-center { text-align: center; display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1.4rem; }
.due-amount { color: var(--navy); font-size: 1.5rem; display: block; }
.due-box small { color: var(--muted); }
.accounts-list { display: flex; flex-direction: column; gap: .7rem; margin-top: .5rem; }

.spinner {
  width: 48px; height: 48px; margin: 0 auto 1.2rem;
  border: 4px solid var(--blue-soft); border-top-color: var(--blue);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }

/* ---------------- Phase 4: unified journey bar (7 steps) ---------------- */
.journey-bar .progress-step { min-width: 60px; }
.journey-bar .progress-label { font-size: .68rem; }
.journey-bar .progress-label small { display: none; }
.journey-done { text-align: center; color: var(--green); font-weight: 800; margin: -0.6rem 0 1.2rem; }
@media (max-width: 640px) {
  .journey-bar { gap: .1rem; }
  .journey-bar .progress-step { min-width: 40px; }
  .journey-bar .progress-dot { width: 28px; height: 28px; font-size: .75rem; }
  .journey-bar .progress-step:not(:last-child)::after { top: 14px; inset-inline-start: calc(50% + 18px); width: calc(100% - 36px); }
  .journey-bar .progress-label { display: none; }
  .journey-bar .progress-step.is-current .progress-label { display: flex; }
}

/* ---------------- Phase 4: account setup ---------------- */
.uname-status.is-ok { color: var(--green); font-weight: 700; }
.uname-status.is-bad { color: var(--red); font-weight: 700; }
.pw-meter { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: .35rem; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--red); transition: width .25s, background .25s; }
.pw-meter span.s1 { width: 33%; background: var(--red); }
.pw-meter span.s2 { width: 66%; background: var(--gold); }
.pw-meter span.s3 { width: 100%; background: var(--green); }

/* ---------------- Phase 4: embedded Wizard (faithful to the original) ---------------- */
.wizard-shell { max-width: 850px; margin-inline: auto; }
.wizard-head { text-align: center; margin-bottom: 1.2rem; }
.wizard-head h1 { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin-bottom: .8rem; }
.wz-bar { max-width: 560px; margin: 0 auto .5rem; background: var(--line); border-radius: 10px; height: 10px; overflow: hidden; }
.wz-bar span { display: block; height: 100%; background: var(--blue); transition: width .4s ease; }
.wz-indicator { font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: .6rem; }
.wz-dots { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.wz-dot-form { display: inline; }
.wz-dot {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line);
  background: #fff; color: var(--muted); font-weight: 700; font-size: .78rem;
  display: inline-grid; place-items: center; cursor: default; font-family: var(--font);
}
button.wz-dot { cursor: pointer; }
button.wz-dot:hover { border-color: var(--blue); color: var(--blue); }
.wz-dot.is-done { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.wz-dot.is-current { background: var(--blue); border-color: var(--blue); color: #fff; }

.wz-card { padding: 2rem; }
.wz-card h2 {
  color: var(--navy); font-size: 1.25rem; font-weight: 800;
  border-bottom: 2px solid var(--line); padding-bottom: .8rem; margin-bottom: 1.2rem;
}
.wz-body { line-height: 1.9; color: #4a4a6a; }
.wz-body p { margin-bottom: .9rem; text-align: justify; }
.wz-body ul { margin: 0 1.4rem 1rem 0; }
.wz-body li { margin-bottom: .5rem; }
.wz-highlight {
  background: var(--blue-soft); border-inline-start: 5px solid var(--blue);
  padding: 1rem 1.2rem; border-radius: 6px; margin: 1.2rem 0;
}
.wz-danger {
  background: var(--red-soft); border-inline-start: 5px solid var(--gold);
  padding: 1rem 1.2rem; border-radius: 6px; margin: 1.2rem 0;
}
.wz-danger h3 { color: #b4741a; margin-bottom: .6rem; font-size: 1.02rem; }
.wz-img {
  display: block; max-width: 100%; height: auto; border: 1px solid var(--line);
  border-radius: 8px; margin: 1rem auto 1.6rem; box-shadow: var(--shadow-soft);
}
.wz-links { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.2rem 0; }
.wz-links a {
  flex: 1 1 200px; text-align: center; background: var(--bg); color: var(--navy-2);
  padding: .8rem 1.1rem; border-radius: 8px; font-weight: 700; font-size: .88rem;
  border: 1px solid var(--line); transition: all .25s;
}
.wz-links a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.wz-video {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 10px; margin-bottom: 1.4rem; background: #000; box-shadow: var(--shadow);
}
.wz-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wz-faq { border: 1px solid var(--line); border-radius: 8px; margin-bottom: .8rem; overflow: hidden; }
.wz-faq summary {
  background: var(--bg); padding: .9rem 1rem; font-weight: 700; cursor: pointer;
  font-size: .92rem; list-style: none; display: flex; justify-content: space-between; gap: .6rem;
}
.wz-faq summary::after { content: '➕'; font-size: .7rem; color: var(--blue); flex-shrink: 0; }
.wz-faq[open] summary::after { content: '➖'; }
.wz-faq summary:hover { background: #eaeeff; }
.wz-faq p { padding: 1rem; border-top: 1px solid var(--line); margin: 0; }
.wz-ack {
  display: flex; gap: .7rem; align-items: flex-start; margin: 1.2rem 0;
  font-weight: 700; cursor: pointer; line-height: 1.7; font-size: .92rem;
}
.wz-ack input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex-shrink: 0; }
.wz-nav { border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: 1.2rem; }
.wz-buttons { display: flex; justify-content: space-between; gap: 1rem; }
.wz-buttons .btn { min-width: 130px; }
.wz-final { justify-content: center; }
.wz-center { text-align: center; }
.wz-launch {
  display: inline-block; background: #2e7d32; color: #fff !important; font-size: 1.05rem;
  font-weight: 800; padding: 1rem 2.4rem; border-radius: 8px; width: 100%; text-align: center;
  box-shadow: 0 4px 12px rgba(46, 125, 50, .3); transition: background .3s; margin-top: .8rem;
}
.wz-launch:hover { background: #1b5e20; }
@media (max-width: 640px) {
  .wz-card { padding: 1.2rem; }
  .wz-buttons .btn { min-width: 0; flex: 1; }
}

/* ---------------- Misc ---------------- */
.empty-card { text-align: center; color: var(--muted); }
.error-card { max-width: 480px; margin: 3rem auto; text-align: center; padding: 2.5rem; }
.error-card h1 { font-size: 3rem; color: var(--blue); }
.error-card p { color: var(--muted); margin: .6rem 0 1.4rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .courses-layout, .payment-layout, .confirm-grid { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .course-main { grid-template-columns: auto 1fr; grid-template-areas: "check info" "icon info" "price price"; }
  .course-main { display: flex; flex-wrap: wrap; }
  .course-price { flex-direction: row; gap: .5rem; align-items: center; min-width: 0; width: 100%; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: .7rem; }
  .header-badge { display: none; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .warning-actions form { width: 100%; }
  .warning-actions .btn { width: 100%; }
  .brand-text strong { font-size: .92rem; }
}
