/* Legacy Partners — guided Onboarding & Quickstart (this page only) */

/* Step shells */
.gs-step { position: relative; transition: opacity .25s, filter .25s, box-shadow .25s, border-color .25s, transform .2s; }
.gs-card { display: flex; flex-direction: column; background: var(--soft); border-radius: 20px; }
.gs-card > .s { flex: 1; background: transparent; padding-bottom: 18px; }
.gs-card > .s:hover { transform: none; box-shadow: none; }
.gs-card:not(.gs-locked):hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,39,76,.16); }
.gs-card > .gs-check, .gs-card > .gs-lock { margin: 0 28px 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.gs-row > .gs-check, .gs-row > .gs-lock { flex: 1 1 100%; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }

/* Locked: visible, not usable */
.gs-locked { opacity: .45; filter: grayscale(.7); cursor: not-allowed; user-select: none; }
.gs-locked .gs-check { display: none; }
.gs-step:not(.gs-locked) > .gs-lock { display: none; }
.gs-lock { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.gs-lock svg { flex: none; }

/* Current step: lit up */
.gs-card.gs-current { background: var(--white); box-shadow: 0 0 0 3px var(--gold), 0 18px 40px rgba(0,39,76,.14); }
.gs-row.gs-current { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 14px 34px rgba(0,39,76,.10); background: var(--white); }

/* Tag: "You're here" / "Done" */
.gs-tag { display: none; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; line-height: 1.2; }
.gs-card > .gs-tag { position: absolute; top: 18px; right: 18px; z-index: 1; }
.gs-row .copy > .gs-tag { margin: 0 0 10px; }
.gs-current .gs-tag { display: inline-flex; background: var(--gold); color: var(--navy); }
.gs-done .gs-tag { display: inline-flex; background: var(--soft-2); color: var(--blue); }
.gs-card.gs-done .gs-tag { background: var(--white); }
.gs-tag svg { width: 12px; height: 12px; }

/* Checkbox */
.gs-check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--navy); user-select: none; }
.gs-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.gs-box { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--navy); background: var(--white); display: grid; place-items: center; color: var(--white); transition: background .15s, border-color .15s, box-shadow .2s; }
.gs-box svg { opacity: 0; transform: scale(.5); transition: opacity .15s, transform .2s; }
.gs-check:hover .gs-box { box-shadow: 0 0 0 4px rgba(47,101,167,.15); }
.gs-current .gs-box { box-shadow: 0 0 0 5px rgba(255,215,0,.45); }
.gs-check input:checked + .gs-box { background: var(--blue); border-color: var(--blue); box-shadow: none; }
.gs-check input:checked + .gs-box svg { opacity: 1; transform: scale(1); }
.gs-check input:focus-visible + .gs-box { outline: 3px solid var(--gold); outline-offset: 3px; }
.gs-done .gs-check { cursor: default; color: var(--blue); }

/* Arrival pulse */
.gs-pulse .gs-box, .bonus.gs-pulse { animation: gs-pulse 1.6s ease-out 1; }
@keyframes gs-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,215,0,.85); } 70% { box-shadow: 0 0 0 16px rgba(255,215,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0); } }

/* Section notices */
.gs-gate { margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 18px 22px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.gs-gate[hidden] { display: none; }
.gs-gate-txt { margin: 0; flex: 999 1 320px; display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.gs-gate-txt svg { flex: none; color: var(--muted); }
.gs-gate .btn { flex: none; }
.gs-gate-ok { background: var(--soft-2); border-color: transparent; }
.gs-gate-ok .gs-gate-txt svg { color: var(--blue); width: 20px; height: 20px; }
.gs-chip { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--blue); }
.gs-gate:has(.gs-chip) { padding: 10px 18px; background: transparent; border-style: dashed; display: inline-flex; }
.tint .gs-gate { background: var(--white); }
.gs-gate-bonus { margin: 40px 0 14px; }
.bonus.gs-locked { cursor: not-allowed; }

/* Hero progress */
.gs-hero { margin-top: 30px; max-width: 680px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px 22px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }
.gs-hero .gs-meta { flex: 1 1 280px; min-width: 0; }
.gs-hero .gs-k { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.gs-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; }
.gs-bar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 99px; transition: width .5s ease; }
.gs-hero .gs-txt { margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: #DCE6F2; }
.gs-hero .gs-hero-btn { flex: none; }
@media (max-width: 600px) { .gs-hero .gs-hero-btn, .gs-gate .btn { width: 100%; justify-content: center; } }

/* Pop-ups reuse the walk-through card */
.gs-modal .tour-nav { flex-wrap: wrap; row-gap: 10px; }
.gs-modal .tour-text { font-size: 15px; }
@media (max-width: 420px) { .gs-modal .tour-nav .tour-sp { display: none; } .gs-modal .tour-nav button { flex: 1 1 100%; } .gs-modal .gs-pri { order: -1; } }

/* Test banner reset button */
.gs-reset { margin-left: 10px; font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { .gs-step, .gs-box, .gs-box svg, .gs-bar i { transition: none; } .gs-pulse .gs-box, .bonus.gs-pulse { animation: none; } }
#onboarding .gs-gate, #accreditation .gs-gate { margin-bottom: 28px; }

/* Completion certificate pop-ups */
.lpc { position: fixed; inset: 0; z-index: 2200; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Poppins', sans-serif; }
.lpc-shade { position: absolute; inset: 0; background: rgba(0,20,40,.7); }
.lpc-box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; background: var(--white); color: var(--navy); border-radius: 20px; padding: 28px 28px 24px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.lpc-cert .lpc-box { max-width: 920px; padding: 26px 28px 20px; }
.lpc-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.lpc-x:hover { background: var(--soft); color: var(--navy); }
.lpc-k { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); }
.lpc-h { margin: 0 36px 10px 0; font-size: 24px; line-height: 1.25; font-weight: 800; }
.lpc-p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.lpc-form { display: flex; flex-direction: column; }
.lpc-l { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.lpc-in { font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 16px; color: var(--navy); background: var(--white); }
.lpc-in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,101,167,.15); }
.lpc-in.bad { border-color: #B42318; box-shadow: 0 0 0 4px rgba(180,35,24,.12); }
.lpc-err { margin: -6px 0 14px; min-height: 1px; font-size: 14px; font-weight: 600; color: #B42318; }
.lpc-err:empty { margin: 0; }
.lpc-go { align-self: stretch; justify-content: center; }
.lpc-frame { margin: 8px 0 18px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,39,76,.12); background: var(--soft); aspect-ratio: 1056 / 816; display: grid; place-items: center; }
.lpc-img { width: 100%; height: 100%; display: block; }
.lpc-wait { margin: 0; font-size: 15px; color: var(--muted); }
.lpc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lpc-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.lpc-msg { margin: 12px 0 0; min-height: 1.5em; font-size: 14px; font-weight: 600; color: var(--blue); }
.lpc-fix { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.lpc-edit { font: inherit; font-weight: 600; color: var(--blue); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 600px) { .lpc-box { padding: 22px 18px 18px; } .lpc-h { font-size: 20px; } .lpc-actions .btn { flex: 1 1 100%; justify-content: center; } }
.gs-hero .gs-cert-btn { flex: none; }
@media (max-width: 600px) { .gs-hero .gs-cert-btn { width: 100%; justify-content: center; } }

/* Bonus as the final step */
.bonus.gs-current { box-shadow: 0 0 0 4px var(--gold), 0 0 0 10px rgba(255,215,0,.22), 0 20px 44px rgba(0,39,76,.28); }
.bonus .gs-tag { margin: 0 0 4px; align-self: flex-start; }
.bonus.gs-done .gs-tag { background: rgba(255,255,255,.14); color: var(--white); }
.bonus .gs-bonus-check { flex: 1 1 100%; margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); color: var(--white); }
.bonus .gs-bonus-check .gs-box { border-color: var(--white); background: transparent; }
.bonus .gs-bonus-check input:checked + .gs-box { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.bonus.gs-current .gs-bonus-check .gs-box { box-shadow: 0 0 0 5px rgba(255,215,0,.45); }
.bonus.gs-done .gs-bonus-check { color: #DCE6F2; }

/* Quickstart step 1: pick your training day (pop-up + saved choice on the step) */
.lpt .lpc-p a { color: var(--blue); font-weight: 600; }
.lpt-opts { border: 0; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.lpt-opts legend { padding: 0; margin-bottom: 8px; }
.lpt-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.lpt-opt:hover { border-color: var(--blue); }
.lpt-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lpt-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #9AAABD; background: #fff; display: grid; place-items: center; transition: border-color .15s; }
.lpt-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); transform: scale(0); transition: transform .15s; }
.lpt-txt { display: flex; flex-direction: column; line-height: 1.3; }
.lpt-txt strong { font-size: 17px; font-weight: 700; }
.lpt-txt span { font-size: 14.5px; color: var(--muted); }
.lpt-opt:has(input:checked) { border-color: var(--navy); background: #FFFBE6; box-shadow: 0 0 0 3px rgba(255,215,0,.45); }
.lpt-opt input:checked + .lpt-dot { border-color: var(--navy); }
.lpt-opt input:checked + .lpt-dot::after { transform: scale(1); }
.lpt-opt input:focus-visible + .lpt-dot { box-shadow: 0 0 0 4px rgba(47,101,167,.3); }
.lpt-when { margin: 0 0 6px; padding: 16px; border-radius: 14px; background: var(--soft); }
.lpt-when[hidden] { display: none; }
.lpt-k { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.lpt-date { margin: 4px 0 2px; font-size: 18px; font-weight: 700; }
.lpt-local { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); }
.lpt-local[hidden] { display: none; }
.lpt-when .lpc-actions { margin-top: 12px; }
.lpt-tip { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.lpt .lpc-msg { margin: 6px 0 8px; }
.lpt-done:disabled { opacity: .5; cursor: not-allowed; }
.lpt-chosen { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; color: var(--navy); }
.lpt-chosen[hidden] { display: none; }
.lpt-chosen svg { flex: none; color: var(--blue); }
[data-training-day] { white-space: nowrap; }
.lpt-rep { display: inline-flex; flex-wrap: wrap; margin: 12px 0 0; padding: 4px; gap: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.lpt-rep label { position: relative; cursor: pointer; }
.lpt-rep input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lpt-rep span { display: block; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.lpt-rep input:checked + span { background: var(--navy); color: var(--white); }
.lpt-rep input:focus-visible + span { box-shadow: 0 0 0 3px rgba(47,101,167,.35); }
.lpt-save-note { margin: 10px 2px 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
/* Certificate form: same controls as the Recognition certificate pop-ups */
.lpc-rk .lpc-box { max-width: 520px; }
.lpc .rk-help { margin: -10px 0 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.lpc .rk-from, .lpc .rk-ranks { border: 0; margin: 4px 0 14px; padding: 0; display: grid; gap: 8px; }
.lpc .rk-from legend, .lpc .rk-ranks legend { padding: 0; margin-bottom: 6px; }
.lpc .rk-radio { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1.5px solid var(--line, #D5DDE8); border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 500; transition: border-color .15s, background .15s; }
.lpc .rk-radio:hover { border-color: #2F65A7; }
.lpc .rk-radio input, .lpc .rk-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lpc .rk-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #9AAABD; display: grid; place-items: center; background: #fff; }
.lpc .rk-dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #00274C; transform: scale(0); transition: transform .15s; }
.lpc .rk-radio:has(input:checked) { border-color: #00274C; background: #FFFBE6; }
.lpc .rk-radio input:checked + .rk-dot { border-color: #00274C; }
.lpc .rk-radio input:checked + .rk-dot::after { transform: scale(1); }
.lpc .rk-radio input:focus-visible + .rk-dot { box-shadow: 0 0 0 4px rgba(47,101,167,.3); }
.lpc .rk-other { margin: 0 0 4px; padding: 16px 16px 2px; border-radius: 14px; background: #F3F6FA; }
.lpc .rk-other[hidden] { display: none; }
.lpc .rk-other:not([hidden]) { display: flex; flex-direction: column; }
.lpc .rk-other .lpc-in { background: #fff; }
.lpc .rk-ranks { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.lpc .rk-chip { position: relative; cursor: pointer; }
.lpc .rk-chip span { display: block; text-align: center; padding: 9px 8px; border: 1.5px solid var(--line, #D5DDE8); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; transition: border-color .15s, background .15s, color .15s; }
.lpc .rk-chip:hover span { border-color: #2F65A7; }
.lpc .rk-chip input:checked + span { background: #00274C; border-color: #00274C; color: #fff; }
.lpc .rk-chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(47,101,167,.3); }
