/* ============================================================
   PRIMORABRIDGE — Checkout / Lead-intake funnel
   Reuses tokens from styles.css (white · vivid indigo · Space Grotesk)
   ============================================================ */

body.checkout-body { background: var(--char-800); }

/* Lightweight top bar */
.co-top {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border-bottom: 1px solid var(--glass-border);
}
.co-secure { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ivory-500); font-weight: 500; }
.co-secure svg { width: 16px; height: 16px; color: var(--gold); }

/* Layout: form + summary rail */
.co-main { padding: clamp(28px, 5vw, 56px) 0 clamp(64px, 9vw, 110px); position: relative; z-index: 1; }
.co-grid { display: grid; grid-template-columns: 1fr 372px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 940px){ .co-grid { grid-template-columns: 1fr; } }

.co-head { margin-bottom: 30px; }
.co-head h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.04; margin: 14px 0 10px; }
.co-head p { color: var(--ivory-500); max-width: 52ch; }

/* ---- Progress indicator ---- */
.co-progress { margin-bottom: 34px; }
.co-progress__bar { height: 4px; border-radius: 100px; background: var(--char-500); overflow: hidden; }
.co-progress__fill { height: 100%; width: 16%; border-radius: 100px; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); transition: width .55s var(--ease); }
.co-progress__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.co-progress__step { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.co-progress__label { font-size: 13.5px; color: var(--ivory-500); }

/* ---- Step card ---- */
.co-card {
  background: var(--char-700); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 44px);
  box-shadow: var(--shadow-md);
}
.co-steps { position: relative; }
.co-step { display: none; }
.co-step.is-active { display: block; }
@keyframes coIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.co-step.is-active.co-anim { animation: coIn .5s var(--ease) backwards; }
.co-step.anim-done { animation: none !important; }
.co-step__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.co-step__title { font-size: clamp(23px, 2.8vw, 32px); margin: 12px 0 6px; line-height: 1.08; }
.co-step__sub { color: var(--ivory-500); font-size: 15px; margin-bottom: 26px; max-width: 50ch; }

/* ---- Selectable option (radio/checkbox card) ---- */
.opt-list { display: grid; gap: 12px; }
.opt-list--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px){ .opt-list--2 { grid-template-columns: 1fr; } }
.opt {
  position: relative; display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--glass-border); background: var(--char-800);
  transition: border-color .35s var(--ease), background .35s, transform .35s var(--ease), box-shadow .35s;
}
.opt:hover { border-color: var(--gold-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__mark {
  width: 22px; height: 22px; border-radius: 50%; flex: none; margin-top: 1px;
  border: 1.5px solid var(--char-500); display: grid; place-items: center;
  transition: border-color .3s, background .3s;
}
.opt__mark svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .3s var(--ease); }
.opt--check .opt__mark { border-radius: 7px; }
.opt__body { flex: 1; }
.opt__title { font-weight: 600; color: var(--ivory-50); font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.opt__price { font-family: var(--font-mono); font-size: 13px; color: var(--gold-deep); }
.opt__desc { font-size: 13.5px; color: var(--ivory-500); margin-top: 4px; line-height: 1.5; }
.opt__ico { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 1px; }
.opt__ico svg { width: 100%; height: 100%; }
.opt.is-selected { border-color: var(--gold); background: linear-gradient(180deg, rgba(106,60,255,0.05), var(--char-800)); box-shadow: 0 0 0 1px var(--gold) inset; }
.opt.is-selected .opt__mark { border-color: var(--gold); background: var(--gold); }
.opt.is-selected .opt__mark svg { opacity: 1; transform: scale(1); }
.opt__badge { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--gold); padding: 3px 9px; border-radius: 100px; }

/* ---- Fields ---- */
.co-fields { display: grid; gap: 18px; }
.co-fields--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px){ .co-fields--2 { grid-template-columns: 1fr; } }
.co-field { display: flex; flex-direction: column; gap: 8px; }
.co-field label { font-size: 13.5px; font-weight: 600; color: var(--ivory-100); }
.co-field label .opt-tag { font-weight: 400; color: var(--ivory-500); font-size: 12.5px; }
.co-field input, .co-field textarea {
  font-family: var(--font-body); font-size: 15.5px; color: var(--ivory-50);
  background: var(--char-800); border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 15px 16px; transition: border-color .3s, box-shadow .3s, background .3s;
  width: 100%;
}
.co-field input::placeholder, .co-field textarea::placeholder { color: var(--ivory-700); }
.co-field input:focus, .co-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.co-field.has-error input { border-color: #e0455e; box-shadow: 0 0 0 3px rgba(224,69,94,0.14); }
.co-field__err { font-size: 12.5px; color: #e0455e; display: none; }
.co-field.has-error .co-field__err { display: block; }
.co-field__pre { position: relative; }
.co-field__pre .pre { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ivory-700); font-size: 15px; pointer-events: none; }
.co-field__pre input { padding-left: 52px; }

/* ---- Step nav buttons ---- */
.co-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; }
.co-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ivory-500); font-weight: 600; padding: 10px 4px; transition: color .3s; }
.co-back:hover { color: var(--gold); }
.co-back[hidden] { visibility: hidden; }
.co-next { margin-left: auto; }

/* ---- Summary rail ---- */
.co-summary { position: sticky; top: 92px; display: grid; gap: 16px; }
.co-sumcard { background: var(--char-700); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.co-sumcard__head { padding: 22px 24px; border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: space-between; }
.co-sumcard__head h3 { font-size: 17px; }
.co-sumcard__body { padding: 22px 24px; display: grid; gap: 14px; }
.co-sumrow { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 14px; }
.co-sumrow .k { color: var(--ivory-500); flex: none; }
.co-sumrow .v { color: var(--ivory-100); font-weight: 600; text-align: right; line-height: 1.35; }
.co-sumrow .v.muted-v { color: var(--ivory-700); font-weight: 400; font-style: italic; }
.co-sumtotal { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 24px; border-top: 1px solid var(--glass-border); background: var(--char-600); }
.co-sumtotal .k { font-size: 14px; color: var(--ivory-300); }
.co-sumtotal .v { font-family: var(--font-display); font-size: 30px; color: var(--ivory-50); }

.co-trust { background: var(--char-700); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px 24px; }
.co-trust h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-500); margin-bottom: 16px; font-weight: 400; }
.co-trust ul { list-style: none; display: grid; gap: 13px; }
.co-trust li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--ivory-300); }
.co-trust .ti { width: 20px; height: 20px; color: var(--gold); margin-top: 1px; }
.co-trust .ti svg { width: 100%; height: 100%; }

/* ---- Review (step 6) ---- */
.co-review { display: grid; gap: 12px; }
.co-revrow { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--glass-border); }
.co-revrow:last-child { border-bottom: none; }
.co-revrow .rk { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-500); }
.co-revrow .rv { color: var(--ivory-100); font-size: 15px; }
.co-revrow .redit { font-size: 12.5px; color: var(--gold-deep); font-weight: 600; }
.co-revrow .redit:hover { text-decoration: underline; }
@media (max-width: 560px){ .co-revrow { grid-template-columns: 1fr auto; } .co-revrow .rk { grid-column: 1 / -1; } }

.co-nextsteps { margin-top: 26px; display: grid; gap: 16px; }
.co-nextsteps h3 { font-size: 17px; margin-bottom: 2px; }
.co-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px){ .co-flow { grid-template-columns: 1fr; } }
.co-flowstep { padding: 18px; border: 1px solid var(--glass-border); border-radius: var(--radius); background: var(--char-800); }
.co-flowstep .n { font-family: var(--font-mono); font-size: 11px; color: var(--gold); letter-spacing: .14em; }
.co-flowstep b { display: block; color: var(--ivory-50); font-size: 14.5px; margin: 8px 0 4px; }
.co-flowstep span { font-size: 13px; color: var(--ivory-500); }

.co-final-cta { margin-top: 28px; display: grid; gap: 14px; }
.co-final-cta .btn { width: 100%; }
.co-consent { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; color: var(--ivory-500); }
.co-consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.co-consent a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Success state ---- */
.co-success { display: none; text-align: center; padding: clamp(40px, 6vw, 72px) 20px; }
.co-success.is-on { display: block; }
.co-success.is-on.co-anim { animation: coIn .5s var(--ease) backwards; }
.co-success.anim-done { animation: none !important; }
.co-success__ring { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 26px; display: grid; place-items: center; background: var(--gold-glow); color: var(--gold); }
.co-success__ring svg { width: 36px; height: 36px; }
.co-success h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.co-success p { color: var(--ivory-500); max-width: 48ch; margin: 0 auto 8px; }
.co-success .co-final-cta { max-width: 360px; margin: 30px auto 0; }

/* error helper */
.co-grouperr { font-size: 13px; color: #e0455e; margin-top: 14px; display: none; }
.co-grouperr.show { display: block; }

/* ---- Selected service banner (single-step order) ---- */
.co-selected {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid var(--gold); background: linear-gradient(180deg, rgba(106,60,255,0.05), var(--char-800));
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.co-selected__label { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.co-selected__name { font-family: var(--font-display); font-size: 21px; color: var(--ivory-50); line-height: 1.1; }
.co-selected__price { text-align: right; flex: none; }
.co-selected__amt { display: block; font-family: var(--font-display); font-size: 26px; color: var(--ivory-50); line-height: 1; margin-bottom: 4px; }
.co-selected__change { font-size: 12.5px; color: var(--gold-deep); font-weight: 600; }
.co-selected__change:hover { text-decoration: underline; }
@media (max-width: 420px){ .co-selected { flex-direction: column; align-items: flex-start; } .co-selected__price { text-align: left; } }

/* ---- Payment notice ---- */
.co-notice {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start;
  margin-top: 24px; padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--glass-border); background: var(--char-800);
}
.co-notice__ico { width: 22px; height: 22px; color: var(--gold); margin-top: 1px; }
.co-notice__ico svg { width: 100%; height: 100%; }
.co-notice p { font-size: 13.5px; line-height: 1.6; color: var(--ivory-500); }

/* ---- Agreement text ---- */
.co-agree { font-size: 13px; line-height: 1.6; color: var(--ivory-500); margin: 22px 0 22px; }
.co-agree a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.co-agree a:hover { color: var(--gold); }
