/* Cairo FACE — registration flow: stepper, badge cards, details recap,
   payment and confirmation. Loads after edit.css. 4px spacing, 8/12/16 radii. */

/* ---------- stepper ---------- */
.flowbar { padding: 24px 0 0; }
.flowstep { width: 100%; }
.flowstep__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: s; }
.flowstep__item { position: relative; min-width: 0; }
.flowstep__item::before { content: ""; position: absolute; top: 16px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; background: var(--hairline-light); }
.flowstep__item:first-child::before { display: none; }
.flowstep__item.is-done::before, .flowstep__item.is-now::before { background: var(--accent-strong); }
.flowstep__item a, .flowstep__in { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: inherit; }
.flowstep__dot { width: 32px; height: 32px; border-radius: 9999px; display: grid; place-items: center; font-size: 14px; font-weight: 600; border: 2px solid var(--hairline-light); background: #fff; color: var(--muted-light); position: relative; z-index: 1; }
.flowstep__t { font-size: 13px; line-height: 1.3; color: var(--muted-light); }
.flowstep__item.is-done .flowstep__dot { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.flowstep__item.is-done .flowstep__t { color: var(--ink); }
.flowstep__item.is-now .flowstep__dot { border-color: var(--accent-strong); color: var(--accent-strong); box-shadow: 0 0 0 4px rgba(82,136,176,.18); }
.flowstep__item.is-now .flowstep__t { color: var(--ink); font-weight: 600; }
.flowstep__item a:hover .flowstep__t { text-decoration: underline; }

.flowstep--dark .flowstep__dot { background: transparent; border-color: rgba(255,255,255,.32); color: rgba(255,255,255,.72); }
.flowstep--dark .flowstep__t { color: rgba(255,255,255,.64); }
.flowstep--dark .flowstep__item::before { background: rgba(255,255,255,.24); }
.flowstep--dark .flowstep__item.is-done::before, .flowstep--dark .flowstep__item.is-now::before { background: #7FB0D4; }
.flowstep--dark .flowstep__item.is-done .flowstep__dot { background: #7FB0D4; border-color: #7FB0D4; color: #0A1A28; }
.flowstep--dark .flowstep__item.is-now .flowstep__dot { border-color: #fff; color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.16); }
.flowstep--dark .flowstep__item.is-now .flowstep__t, .flowstep--dark .flowstep__item.is-done .flowstep__t { color: #fff; }
.authcard .flowstep { margin: 0 0 24px; }

@media (max-width: 720px) {
  .flowstep__list { gap: 4px; }
  .flowstep__t { display: none; }
  .flowstep__item.is-now .flowstep__t { display: block; position: absolute; top: 40px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .flowstep__item.is-now:first-child .flowstep__t { left: 0; transform: none; }
  .flowstep__item.is-now:last-child .flowstep__t { left: auto; right: 0; transform: none; }
  .flowbar { padding-bottom: 24px; }
  .authcard .flowstep { margin-bottom: 32px; }
}

/* ---------- badges ---------- */
.flowhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.flowhead h2 { margin: 0; }
.flowhead__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.badgetoggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 9999px; background: rgba(74,123,166,.1); }
.badgetoggle button { padding: 8px 16px; border-radius: 9999px; border: 0; background: none; font: inherit; font-size: 14px; cursor: pointer; color: var(--muted-light); }
.badgetoggle button.is-on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 2px 8px rgba(10,26,40,.12); }

.ebclock { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px; border-radius: 12px; background: var(--ink); color: #fff; }
.ebclock__l { font-size: 13px; font-weight: 500; }
.ebclock__t { display: flex; gap: 8px; font-variant-numeric: tabular-nums; }
.ebclock__t span { display: flex; flex-direction: column; align-items: center; min-width: 32px; font-size: 16px; font-weight: 600; line-height: 1.1; }
.ebclock__t small { font-size: 10px; font-weight: 400; color: rgba(255,255,255,.64); text-transform: uppercase; letter-spacing: .04em; }

.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.badge { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 16px; border: 1px solid var(--hairline-light); background: #fff; }
.badge--featured { background: #E8F0FA; border-color: var(--accent); box-shadow: 0 12px 32px rgba(10,26,40,.08); }
.badge__tag { align-self: flex-start; padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 500; background: rgba(74,123,166,.12); color: var(--accent-strong); }
.badge--featured .badge__tag { background: var(--accent-strong); color: #fff; }
.badge__name { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.badge__dates { margin: -8px 0 0; font-size: 14px; color: var(--muted-light); }
.badge__price { display: flex; flex-direction: column; gap: 4px; min-height: 76px; justify-content: flex-end; }
.badge__was { font-size: 14px; color: #C0392B; text-decoration: line-through; min-height: 20px; }
.badge__now { font-size: 32px; line-height: 1.1; font-weight: 500; color: var(--ink); }
.badge__after { font-size: 13px; color: var(--accent-strong); min-height: 20px; }
.badge__cta { align-self: flex-start; }
.badge__lists { display: grid; gap: 16px; margin-top: 8px; }
.badge__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.4; }
.badge__list li { position: relative; padding-left: 24px; }
.badge__list--yes li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 5px; height: 10px; border: solid #1E9E63; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.badge__list--no { color: var(--muted-light); }
.badge__list--no li::before, .badge__list--no li::after { content: ""; position: absolute; left: 3px; top: 9px; width: 12px; height: 2px; background: #D64545; border-radius: 2px; }
.badge__list--no li::before { transform: rotate(45deg); }
.badge__list--no li::after { transform: rotate(-45deg); }
.badge__more { margin-top: auto; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.badgenote { margin: 24px 0 0; font-size: 14px; color: var(--muted-light); max-width: 720px; }

@media (max-width: 1024px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .badges { grid-template-columns: 1fr; gap: 16px; }
  .badge { padding: 20px 16px; }
  .badge__price { min-height: 0; }
  .badge__cta { align-self: stretch; justify-content: center; }
  .ebclock { width: 100%; justify-content: space-between; }
}

/* ---------- details + payment layout ---------- */
.flowgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.flowcard { padding: 24px; border-radius: 16px; border: 1px solid var(--hairline-light); background: #fff; display: grid; gap: 16px; }
.flowcard + .flowcard { margin-top: 24px; }
.flowcard__h { margin: 0; font-size: 20px; line-height: 1.3; display: flex; align-items: center; gap: 12px; }
.flowside { position: sticky; top: 108px; display: grid; gap: 16px; padding: 24px; border-radius: 16px; border: 1px solid var(--hairline-light); background: #fff; box-shadow: 0 12px 32px rgba(10,26,40,.08); }
.flowside__h { margin: 0; font-size: 18px; }
.sumrow { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.sumrow span:first-child { color: var(--muted-light); }
.sumrow b { font-weight: 500; text-align: right; }
.sumrow--total { padding-top: 16px; border-top: 1px solid var(--hairline-light); font-size: 18px; }
.sumrow--total span:first-child { color: var(--ink); font-weight: 600; }
.sumrow--total b { font-size: 24px; font-weight: 600; }
.sumtag { display: inline-block; padding: 4px 12px; border-radius: 9999px; font-size: 12px; background: rgba(74,123,166,.12); color: var(--accent-strong); }
.planrecap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-radius: 12px; background: #E8F0FA; border: 1px solid var(--accent); }
.planrecap__n { margin: 0; font-size: 18px; font-weight: 600; }
.planrecap__m { margin: 4px 0 0; font-size: 14px; color: var(--muted-light); }
.planrecap a.u { font-size: 14px; }
.testbanner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: #FFF6E0; border: 1px solid #F0D58A; font-size: 14px; line-height: 1.5; color: #5B4300; }
.testbanner b { font-weight: 600; }
.paygrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.paygrid .field--wide { grid-column: 1 / -1; }
.cardlock { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-light); }
.paybtn { width: 100%; justify-content: center; }
.paybtn[disabled] { opacity: .7; cursor: progress; }
.paybtn__spin { width: 16px; height: 16px; border-radius: 9999px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: cfspin .8s linear infinite; }
@keyframes cfspin { to { transform: rotate(360deg); } }
.fillcard { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }

@media (max-width: 960px) {
  .flowgrid { grid-template-columns: 1fr; }
  .flowside { position: static; order: -1; }
}
@media (max-width: 560px) {
  .paygrid { grid-template-columns: 1fr; }
  .flowcard, .flowside { padding: 20px 16px; }
  .planrecap { padding: 16px; }
}

/* ---------- confirmation ---------- */
.done { max-width: 720px; margin: 0 auto; display: grid; gap: 24px; justify-items: center; text-align: center; }
.done__tick { width: 72px; height: 72px; border-radius: 9999px; display: grid; place-items: center; background: #E3F5EC; }
.done__tick i { width: 16px; height: 32px; border: solid #1E9E63; border-width: 0 4px 4px 0; transform: rotate(45deg) translate(-2px, -2px); }
.done__ref { display: inline-flex; flex-direction: column; gap: 4px; padding: 12px 24px; border-radius: 12px; border: 1px dashed var(--accent); background: #E8F0FA; }
.done__ref small { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-light); }
.done__ref b { font-size: 24px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.done .flowcard { width: 100%; text-align: left; }
.donesteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.donesteps li { display: flex; gap: 12px; align-items: flex-start; }
.donesteps li span { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 9999px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--accent-strong); color: #fff; }
.done__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

#orderBox, #regSumList, #doneBox { display: grid; gap: 12px; }

/* sign-in card: room between the tabs and the stepper */
.authcard .authcard__top { margin-bottom: 32px; }
.authcard .flowstep { padding-top: 8px; }

/* ---------- Before you register: readable, scannable ---------- */
.brfacts { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.brfacts li { display: grid; gap: 4px; padding: 16px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--hairline-light); }
.brfacts b { font: 600 17px/1.3 "Outfit", system-ui, sans-serif; color: var(--ink); }
.brfacts span { font-size: 14px; color: #3a4a5a; }

html body .brcard { padding: 28px; gap: 20px; }
html body .brcard__head { flex-wrap: wrap; align-items: flex-start; gap: 16px; }
html body .brcard__ttl { flex: 1 1 280px; min-width: 0; }
html body .brcard__head h2 { font: 600 24px/1.25 "Outfit", system-ui, sans-serif; letter-spacing: -.005em; color: var(--ink); gap: 8px 12px; }
html body .brcard__when { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: #3a4a5a; }
html body .brcard__lede { font-size: 16px; line-height: 1.6; color: #2c3b4a; }
html body .brcard__note { font-size: 14px; line-height: 1.5; color: #3a4a5a; }
html body .brcost { margin-left: auto; align-self: flex-start; padding: 8px 16px; border-radius: 9999px; background: #E8F0FA; color: #1b4a73; font: 600 14px/1.2 "Outfit", system-ui, sans-serif; white-space: nowrap; }
html body .brtag { font-size: 12px; font-weight: 600; padding: 4px 12px; background: #eef3f8; color: #1b4a73; }
html body .brlist { gap: 0; }
html body .brlist li { padding: 12px 0 12px 32px; font-size: 16px; line-height: 1.55; color: #1d2b3a; border-top: 1px solid rgba(10,26,40,.08); }
html body .brlist li:first-child { border-top: 0; }
html body .brlist li::before { left: 6px; top: 17px; width: 7px; height: 12px; border-color: #1E9E63; border-width: 0 2.5px 2.5px 0; }
html body .brhotel b { font-size: 16px; } html body .brhotel__price { font-size: 24px; font-weight: 600; }
html body .brside__card { padding: 28px; }
html body .brside__card .label { font-size: 13px; color: #2f6693; letter-spacing: .06em; }
html body .donesteps { gap: 16px; font-size: 16px; line-height: 1.5; color: #1d2b3a; }
html body .brside__help { font-size: 14px; color: #3a4a5a; line-height: 1.6; }
@media (max-width: 960px) { .brfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .brfacts { grid-template-columns: 1fr; gap: 12px; } html body .brcard { padding: 20px 16px; } html body .brcost { margin-left: 0; } }

/* the badge a visitor picked on the Registration page */
.badge--picked { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(82,136,176,.28), 0 12px 32px rgba(10,26,40,.08); }
.badge--picked .badge__tag { background: var(--accent-strong); color: #fff; }

/* the course flow has three steps, not five */
.flowstep__list:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
