/* =====================================================================
   PREPMODE EDUTECH - Free diagnostic test sign-up (docs/FREE-TEST.md). Works with js/freetest.js.
   Light card (Classic) first, then the Glass style. Colours come from the institute's look.
   ===================================================================== */
.ft-box { margin-top: 20px; padding: 16px 18px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent);
  background: color-mix(in srgb, var(--brand) 6%, transparent); display: grid; gap: 4px; }
.ft-box strong { font-size: 14px; }
.ft-box span { font-size: 13.5px; line-height: 1.5; color: var(--slate, #475467); }
.ft-go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; justify-self: start; font-weight: 700; }
.ft-card h1 { margin-bottom: 6px; }
.ft-form { display: grid; gap: 12px; }
.ft-form .lead { margin: 0; }
.ft-badge { justify-self: start; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  background: color-mix(in srgb, var(--accent-fill, var(--brand)) 16%, transparent); color: var(--accent-text, var(--brand)); }
.ft-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.ft-fs legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.ft-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-pill, .ft-segopt { position: relative; margin: 0; cursor: pointer; font-weight: 700; font-size: 14px; }
.ft-pill input, .ft-segopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ft-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--field, #D0D5DD); background: var(--surface, #fff); }
.ft-pill input:checked + span { background: var(--brand-fill, var(--brand)); color: var(--brand-fill-ink, var(--brand-ink, #fff)); border-color: transparent; }
.ft-seg { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--ink, #101828) 7%, transparent); }
.ft-segopt { flex: 1 1 0; }
.ft-segopt span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; }
.ft-segopt input:checked + span { background: var(--surface, #fff); box-shadow: 0 1px 3px rgba(27, 20, 40, .2); }
.ft-pill input:focus-visible + span, .ft-segopt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; }
.ft-pills[aria-invalid=true] .ft-pill span, .ft-form input[aria-invalid=true] { border-color: var(--danger, #b42318); }
.ft-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ft-field { display: grid; gap: 6px; min-width: 0; }
.ft-field label { margin: 0; }
.ft-hint { font-size: 13px; color: var(--slate, #475467); }
.ft-check { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-weight: 400; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.ft-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.ft-robot { min-height: 0; }
.ft-robot[aria-invalid=true] { outline: 2px solid var(--danger, #b42318); outline-offset: 3px; border-radius: 6px; }
.ft-form .btn.block { margin-top: 2px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ft-alt { margin: 0; text-align: center; font-size: 14px; color: var(--slate, #475467); }
.ft-alt .link-btn { min-height: 44px; }
.ft-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.ft-steps { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--slate, #475467); }
.ft-status { min-height: 1.4em; margin: 10px 0 4px; font-size: 14px; }
.ft-card .ft-hint { display: block; margin: 6px 0 10px; }
.ft-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; background: color-mix(in srgb, var(--brand) 8%, transparent); }
.ft-note.ok { background: #E7F4EC; color: #054F31; }
.ft-note.warn { background: #FEF0C7; color: #7A3E06; }
@media (max-width: 560px) { .ft-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Glass ---------- */
.auth[data-style=glass] .auth-card.ft-card { padding: 30px 34px; }
.auth[data-style=glass] .ft-box { border-color: rgba(249, 210, 122, .5); background: rgba(255, 255, 255, .06); }
.auth[data-style=glass] .ft-box strong { color: #fff; }
.auth[data-style=glass] .ft-box span, .auth[data-style=glass] .ft-hint, .auth[data-style=glass] .ft-alt,
.auth[data-style=glass] .ft-steps, .auth[data-style=glass] .ft-check { color: rgba(255, 255, 255, .76); }
.auth[data-style=glass] .ft-card .lead strong, .auth[data-style=glass] .ft-steps strong { color: #fff; }
.auth[data-style=glass] .ft-fs legend { color: rgba(255, 255, 255, .92); }
.auth[data-style=glass] .ft-badge { background: rgba(255, 255, 255, .1); color: var(--gl-link, #f9d27a); }
.auth[data-style=glass] .ft-pill span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .26); color: #fff; }
.auth[data-style=glass] .ft-pill input:checked + span { background: var(--gl-accent); color: var(--gl-accent-ink); }
.auth[data-style=glass] .ft-seg { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.auth[data-style=glass] .ft-segopt span { color: #fff; }
.auth[data-style=glass] .ft-segopt input:checked + span { background: rgba(255, 255, 255, .92); color: #1b1029; }
.auth[data-style=glass] .ft-pill input:focus-visible + span, .auth[data-style=glass] .ft-segopt input:focus-visible + span { outline-color: var(--gl-link); }
.auth[data-style=glass] .ft-check input { accent-color: var(--gl-accent); }
.auth[data-style=glass] .ft-icon { background: rgba(255, 255, 255, .1); color: var(--gl-link, #f9d27a); }
.auth[data-style=glass] .ft-note { background: rgba(255, 255, 255, .1); color: #fff; }
.auth[data-style=glass] .ft-note.ok { background: rgba(46, 160, 98, .22); color: #d6f5e3; }
.auth[data-style=glass] .ft-note.warn { background: rgba(245, 176, 20, .18); color: #fde6b0; }
.auth[data-style=glass] .ft-card input[type=tel] { min-height: 50px; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .24); }
.auth[data-style=glass] .ft-pills[aria-invalid=true] .ft-pill span, .auth[data-style=glass] .ft-form input[aria-invalid=true] { border-color: #FFB4AB; }

/* ---------- Guest pages (part 2a): Free test and My result ---------- */
html[data-ft-guest]:not([data-ft-review]) .layout main.main > :not([data-ft-page]) { display: none !important; }
html[data-ft-guest] .layout .cx-page { display: none !important; }
.side-menu .ft-locked { opacity: .55; cursor: not-allowed; }
.side-menu .ft-lock { margin-left: auto; display: inline-flex; }
.layout.rail .side-menu .ft-lock, .layout.rail .ft-menu-cap { display: none; }
.ft-menu-cap { margin: 18px 12px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--night-ink, #AEB7C4); }
.ftg { display: grid; gap: 22px; }
.ftg-banner { border-radius: 20px; padding: 28px 32px; color: #fff; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  background: radial-gradient(600px 300px at 15% 0%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%), var(--night, #101828); }
.ftg-banner h1 { margin: 0; color: #fff; font-size: 30px; }
.ftg-banner p { margin: 6px 0 0; color: #d9d5e4; font-size: 15px; }
.ftg-banner-r { font-size: 13.5px; color: #d9d5e4; }
.ftg-grid { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.ftg-main, .ftg-maincol { flex: 999 1 460px; min-width: 0; }
.ftg-side, .ftg-sidecol { flex: 1 1 300px; min-width: 0; }
.ftg-maincol, .ftg-sidecol { display: grid; gap: 22px; }
.ftg-card { background: var(--surface, #fff); border: 1px solid var(--rule, #EAECF0); border-radius: 16px; padding: 24px; }
.ftg-main { display: grid; gap: 20px; }
.ftg-card h2 { margin: 0; font-size: 20px; }
.ftg-card h3 { margin: 0 0 10px; font-size: 16px; }
.ftg-cap { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--slate, #475467); }
.ftg-muted { margin: 0; font-size: 14px; color: var(--slate, #475467); }
.ftg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ftg-fact { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--paper, #F8FAFA); }
.ftg-fact span { font-size: 12.5px; font-weight: 600; color: var(--slate, #475467); }
.ftg-fact strong { font-size: 15px; }
.ftg-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2, #1D2939); }
.ftg-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ft-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; text-decoration: none; }
.ftg-col { display: grid; gap: 10px; margin-top: 14px; }
.ftg-col .ft-btn { width: 100%; }
.ftg-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.ftg-steps li { display: flex; gap: 14px; align-items: flex-start; }
.ftg-steps strong { font-size: 15px; }
.ftg-steps p { margin: 3px 0 0; font-size: 14px; line-height: 1.5; color: var(--slate, #475467); }
.ftg-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800;
  background: var(--brand-fill, var(--brand)); color: var(--brand-fill-ink, var(--brand-ink, #fff)); }
.ftg-note { padding: 14px 16px; border-radius: 12px; background: #FEF0C7; color: #7A3E06; font-size: 14.5px; }
.ftg-next { border-color: color-mix(in srgb, var(--brand) 25%, var(--rule, #EAECF0)); box-shadow: 0 12px 30px color-mix(in srgb, var(--brand) 10%, transparent); }
.ftg-next p:not(.ftg-cap) { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2, #1D2939); }
.ftg-lockcard { display: flex; gap: 14px; align-items: flex-start; background: #FBFAFD; border-style: dashed; }
.ftg-lockcard p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--slate, #475467); }
.ftg-lockcard h3 { margin: 0; }
.ftg-lockic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, white); color: var(--brand); }
.ftg-done { justify-items: start; }
.ftg-done p { margin: 0; max-width: 34em; font-size: 16px; line-height: 1.6; color: var(--ink-2, #1D2939); }
.ftg-doneic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, white); color: var(--brand); }
.ftg-score { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.ftg-big { margin: 4px 0 0; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.ftg-secs { flex: 1 1 260px; }
.ftg-est { margin-left: auto; font-size: 12px; }
.ftg-bars { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.ftg-bars li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) 52px 104px; gap: 12px; align-items: center; font-size: 14px; }
.ftg-bars strong { text-align: right; }
.ftg-bar { height: 10px; border-radius: 999px; background: #EEEBF4; overflow: hidden; display: block; }
.ftg-bar-in { display: block; height: 100%; border-radius: 999px; }
.ftg-bar-in.s { background: var(--brand); }
.ftg-bar-in.g { background: color-mix(in srgb, var(--brand) 50%, white); }
.ftg-bar-in.f { background: #D98A00; }
.ftg-band { font-size: 12.5px; font-weight: 700; color: var(--slate, #475467); }
.ftg-band.f { color: #B54708; }
@media (max-width: 700px) {
  .ftg-bars li { grid-template-columns: minmax(0, 1fr) 52px; }
  .ftg-bars .ftg-bar, .ftg-bars .ftg-band { display: none; }
  .ftg-banner { padding: 22px; }
  .ftg-big { font-size: 44px; }
}
