/* =====================================================================
   Student self-registration  (/institution/{name}/student-self-registration)
   and its success page. Views: Views/Institution/StudentSelfRegistration
   and StudentSelfRegistrationSuccess. Everything is scoped under .ssr.

   The idea: registering with an institute is being issued a student pass.
   The institute's side of the page carries a pass that fills in as the
   student types (name, campus, courses), gets a "Ready" stamp when the
   form is complete, and comes back issued on the success page. That is
   the one bold thing; the form itself stays quiet, single-column, with
   top-aligned labels and validation when a field is left.

   Same system as the rest of coursematter: medium-purple surface, violet
   actions, ink text, Inter, Sora for the
   institute's name.
   ===================================================================== */

.ssr {
    --ink: #14121f;
    --ink-2: #3d3a4d;
    --muted: #6c6980;
    --line: #e4e2ee;
    --line-2: #d4d0e4;
    --wash: #f6f5fb;
    --violet: #6d4aff;
    --violet-ink: #4f30e0;
    --violet-soft: #ece8ff;
    --mint: #0f8f6f;
    --mint-soft: #e2f5ee;
    --gold: #f6c453;
    --red: #c9343a;
    --red-soft: #fdecec;
    --plum: linear-gradient(135deg, #5b3fc4 0%, #7a58d6 48%, #9370db 100%);
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --serif: "Sora", "Inter", system-ui, sans-serif;

    font-family: var(--sans) !important;
    color: var(--ink);
    background: #fff;
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.5;
}
.ssr * { font-family: inherit !important; }
.ssr .ssr-serif { font-family: var(--serif) !important; font-weight: 400; }
/* headings in the display face (Sora); the wrapper forces Inter with !important, so these must too */
.ssr h1, .ssr h2, .ssr h3, .ssr .ssr-h1 { font-family: var(--serif) !important; }
.ssr p { line-height: 1.55; color: inherit; margin: 0; }
.ssr h1, .ssr h2, .ssr h3 { color: var(--ink); }
.ssr a { color: var(--violet-ink); }
.ssr ::selection { background: var(--violet); color: #fff; }

/* =====================================================================
   Page frame: institute side (sticky) + form side
   ===================================================================== */
.ssr-frame { display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; min-height: 100vh; }

.ssr-side {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--plum); color: #fff;
}
.ssr-side::before {
    /* a faint drafting grid, as on the dashboards */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 70%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 30% 70%, #000 20%, transparent 75%);
}
.ssr-side::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 640px; height: 640px; right: -260px; top: -240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(236,220,255,.34), rgba(236,220,255,0) 65%);
}
.ssr-side-in > * { flex: none; }
.ssr-side-in {
    position: sticky; top: 0; min-height: 100vh; max-height: 100vh; overflow-y: auto;
    display: flex; flex-direction: column; gap: 28px;
    padding: 30px clamp(28px, 3.4vw, 56px) 34px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent;
}
.ssr-side-in::-webkit-scrollbar { width: 6px; }
.ssr-side-in::-webkit-scrollbar-track { background: transparent; }
.ssr-side-in::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 6px; }

.ssr-brand img { height: 30px; width: auto; display: block; }

/* ---------- the institute ---------- */
.ssr-inst { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: start; }
/* the institute's logo is the first thing a student should recognise, so it gets real size */
.ssr-inst-logo {
    width: 200px; height: 200px; border-radius: 28px; object-fit: contain; background: #fff; padding: 14px;
    box-shadow: 0 30px 50px -26px rgba(20,10,70,.7), 0 0 0 6px rgba(255,255,255,.14);
}
.ssr .ssr-inst-name { color: #fff; font-size: clamp(34px, 3.2vw, 46px); line-height: 1; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ssr-inst-tag { margin-top: 8px !important; font-size: 15.5px; color: rgba(255,255,255,.86); }

.ssr-about { font-size: 15px; color: rgba(255,255,255,.86); max-width: 46ch; }
.ssr-about-body { line-height: 1.6; }
.ssr-about-body p { line-height: 1.6 !important; color: inherit !important; margin: 0 0 8px !important; }
.ssr-about-body p:last-child { margin-bottom: 0 !important; }
.ssr-about-body * { background: transparent !important; color: inherit !important; font-size: inherit !important; }
.ssr-about-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ssr-more {
    margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer;
    color: #fff; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.ssr-more:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

.ssr-facts { display: grid; gap: 8px; font-size: 14.5px; color: rgba(255,255,255,.9); }
.ssr-facts div { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.ssr-facts .bi { opacity: .8; margin-top: 1px; }
.ssr .ssr-facts a { color: #fff !important; overflow-wrap: anywhere; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.45) !important; }

/* ---------- partner seal row ---------- */
.ssr-partner {
    margin-top: auto; display: flex; align-items: center; gap: 14px;
    padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2);
}
.ssr-partner-imgs { display: flex; align-items: center; gap: 8px; flex: none; }
.ssr-partner-imgs img { height: 58px; width: auto; filter: drop-shadow(0 6px 10px rgba(20,10,70,.35)); }
.ssr-partner p { font-size: 13.5px; color: rgba(255,255,255,.86); line-height: 1.45; }
.ssr-partner b { color: #fff; font-weight: 600; display: block; font-size: 14.5px; }

/* =====================================================================
   The student pass (desktop only; it mirrors the form)
   ===================================================================== */
.ssr-pass {
    position: relative; width: 100%; max-width: 400px;
    background: #fff; color: var(--ink); border-radius: 20px;
    box-shadow: 0 40px 70px -40px rgba(20,10,70,.75), 0 0 0 1px rgba(255,255,255,.4);
    transform: rotate(-1.6deg);
    overflow: hidden;
}
.ssr-pass-top {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; background: var(--ink); color: #fff;
}
.ssr-pass-top span { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.ssr-pass-top img { height: 26px; width: 26px; border-radius: 7px; object-fit: contain; background: #fff; padding: 2px; }
/* the lanyard slot */
.ssr-pass-top::before {
    content: ""; position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
    width: 44px; height: 7px; border-radius: 7px; background: rgba(255,255,255,.18);
}
.ssr-pass-body { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; padding: 18px 18px 6px; }
.ssr-pass-photo {
    width: 70px; height: 84px; border-radius: 12px; display: grid; place-items: center;
    background: var(--violet-soft); color: var(--violet-ink); font-size: 26px; font-weight: 700;
    border: 1.5px dashed #c8bcff; transition: background-color .25s ease, border-color .25s ease;
}
.ssr-pass-photo.is-set { background: var(--violet); color: #fff; border: 1.5px solid var(--violet); }
.ssr-pass-name { font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ssr-pass-sub { margin-top: 3px !important; font-size: 13px; color: var(--muted) !important; overflow-wrap: anywhere; }
.ssr-pass-rows { display: grid; gap: 0; padding: 8px 18px 4px; }
.ssr-pass-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 13.5px; }
.ssr-pass-row dt { color: var(--muted); font-weight: 500; }
.ssr-pass-row dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ssr-pass-row dd.is-empty { color: #aaa6bb; font-weight: 500; }
.ssr-pass-foot { display: flex; align-items: center; gap: 12px; padding: 12px 18px 16px; }
.ssr-pass-meter { flex: 1; height: 6px; border-radius: 6px; background: var(--wash); overflow: hidden; }
.ssr-pass-meter i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--violet); transition: width .35s cubic-bezier(.2,.8,.2,1), background-color .25s ease; }
.ssr-pass-count { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ssr-pass.is-ready .ssr-pass-meter i { background: var(--mint); }

/* the stamp: the page's single orchestrated moment */
.ssr-stamp {
    position: absolute; right: 16px; top: 64px;
    padding: 6px 12px 5px; border: 2.5px solid var(--mint); border-radius: 10px;
    color: var(--mint); font-size: 15px; font-weight: 700; letter-spacing: .02em;
    transform: rotate(8deg) scale(1.6); opacity: 0; pointer-events: none;
    background: transparent; mix-blend-mode: multiply;
}
.ssr-pass.is-ready .ssr-stamp { animation: ssrStamp .45s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes ssrStamp { to { transform: rotate(8deg) scale(1); opacity: 1; } }

/* =====================================================================
   Form side
   ===================================================================== */
.ssr-main { display: flex; justify-content: center; padding: 56px clamp(22px, 5vw, 80px) 64px; }
.ssr-form-wrap { width: 100%; max-width: 640px; }

.ssr-promise {
    /* the page's promise: an ink plate with a gold "Top 5%" mark, the one loud thing on the form side */
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center;
    padding: 22px 26px 22px 22px; border-radius: 22px; background: var(--ink); color: #fff;
    box-shadow: 0 30px 50px -30px rgba(20,18,31,.8);
}
.ssr-promise::before {
    /* warm glow behind the mark, and a fine gold rule along the top */
    content: ""; position: absolute; z-index: -1; left: -60px; top: -80px; width: 320px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(246,196,83,.32), rgba(246,196,83,0) 65%);
}
.ssr-promise::after {
    content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #f6c453 30%, #ffe3a0 50%, #f6c453 70%, transparent);
}
.ssr-promise-mark {
    display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; flex: none;
    background: radial-gradient(circle at 35% 30%, #fff1c7, #f6c453 55%, #d99a1e);
    box-shadow: 0 0 0 5px rgba(246,196,83,.18), 0 14px 30px -12px rgba(246,196,83,.7), inset 0 -4px 10px rgba(122,79,0,.25);
    color: #2a1f00; text-align: center; line-height: 1;
}
.ssr-promise-mark small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; margin-bottom: 2px; }
.ssr .ssr-promise-mark b { display: block; font-family: var(--serif) !important; font-weight: 400; font-size: 46px; letter-spacing: -0.02em; }
.ssr .ssr-promise-text { font-size: clamp(20px, 2vw, 25px); line-height: 1.25 !important; font-weight: 700; letter-spacing: -0.015em; color: #fff; }
.ssr .ssr-promise-sub { margin-top: 6px !important; font-size: 14px; color: rgba(255,255,255,.7) !important; font-weight: 500; }
/* one sweep of light across the plate when the page opens */
.ssr-promise-shine {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 65%);
    transform: translateX(-100%); animation: ssrShine 1.4s .4s ease-out forwards;
}
@keyframes ssrShine { to { transform: translateX(100%); } }
@media (max-width: 575px) {
    .ssr-promise { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 18px; }
    .ssr-promise-mark { width: 76px; height: 76px; }
    .ssr-promise-mark small { font-size: 10px; }
    .ssr .ssr-promise-mark b { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) { .ssr-promise-shine { display: none; } }

.ssr-head { margin: 34px 0 30px; }
.ssr .ssr-h1 { font-size: clamp(30px, 3vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; }
.ssr-lede { margin-top: 10px !important; font-size: 17px; color: var(--muted) !important; max-width: 52ch; }

/* ---------- server-side alerts ---------- */
.ssr-alert {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; margin-bottom: 22px; border-radius: 14px;
    background: var(--red-soft); border: 1px solid #f4c7c9; color: #7c1d22; font-size: 15px;
}
.ssr-alert .bi { font-size: 18px; color: var(--red); margin-top: 1px; }
.ssr-alert b { display: block; color: #5e1418; }
.ssr-alert-links { margin-top: 6px; display: flex; gap: 16px; flex-wrap: wrap; }
.ssr .ssr-alert-links a { color: var(--red) !important; font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; }
.ssr-alert .validation-summary-errors ul { margin: 0; padding: 0; list-style: none; }

/* ---------- sections (a real sequence, so they are numbered) ---------- */
.ssr-sec { border: 0; margin: 0; padding: 0; min-width: 0; }
/* a fieldset's rendered legend sits on its top border, so the divider and spacing go on the legend */
.ssr-sec + .ssr-sec { margin-top: 36px; }
.ssr-sec + .ssr-sec > .ssr-sec-head { padding-top: 32px; border-top: 1px solid var(--line); }
.ssr-sec-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; float: none; width: 100%; padding: 0; }
.ssr-step {
    flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--violet-soft); color: var(--violet-ink); font-size: 14px; font-weight: 700;
    transition: background-color .2s ease, color .2s ease;
}
.ssr-step .bi { display: none; font-size: 16px; }
.ssr-sec.is-done .ssr-step { background: var(--mint); color: #fff; }
.ssr-sec.is-done .ssr-step span { display: none; }
.ssr-sec.is-done .ssr-step .bi { display: inline; }
.ssr-sec-title { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.ssr-sec-title small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.ssr-sec-note { margin-top: 2px !important; font-size: 14.5px; color: var(--muted) !important; }

/* ---------- fields ---------- */
.ssr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.ssr-field { min-width: 0; }
.ssr-field.is-wide { grid-column: 1 / -1; }
.ssr .ssr-label { display: block; margin-bottom: 7px; font-size: 14.5px; font-weight: 600; color: var(--ink-2) !important; }

.ssr-input-wrap { position: relative; }
.ssr .ssr-input {
    display: block; width: 100%; height: 50px; padding: 0 44px 0 15px !important;
    border: 1.5px solid var(--line-2) !important; border-radius: 13px !important; background: #fff !important;
    color: var(--ink) !important; font-size: 16px !important; font-weight: 500;
    box-shadow: none !important; outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none; appearance: none;
}
.ssr .ssr-input::placeholder { color: #a7a3b8; font-weight: 400; }
.ssr .ssr-input:hover { border-color: #b9b3d3 !important; }
.ssr .ssr-input:focus { border-color: var(--violet) !important; box-shadow: 0 0 0 4px rgba(109,74,255,.14) !important; }
.ssr .ssr-input.input-validation-error { border-color: var(--red) !important; background: #fffafa !important; }
.ssr .ssr-input.input-validation-error:focus { box-shadow: 0 0 0 4px rgba(201,52,58,.14) !important; }

/* the tick that appears once a field is filled in correctly */
.ssr-ok {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%) scale(.6);
    width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
    background: var(--mint); color: #fff; font-size: 12px; opacity: 0; pointer-events: none;
    transition: opacity .15s ease, transform .2s ease;
}
.ssr-input-wrap.is-ok .ssr-ok { opacity: 1; transform: translateY(-50%) scale(1); }

.ssr .field-validation-error, .ssr .ssr-err {
    display: flex; gap: 6px; align-items: flex-start; margin-top: 7px;
    font-size: 14px; font-weight: 500; color: var(--red) !important; line-height: 1.35;
}
.ssr .field-validation-error::before, .ssr .ssr-err:not(:empty)::before {
    content: "\F33A"; font-family: bootstrap-icons !important; font-size: 13px; line-height: 1.4;
}
.ssr .field-validation-valid, .ssr .ssr-err:empty { display: none; }

/* ---------- phone: country + number as one control ---------- */
.ssr-phone {
    display: grid; grid-template-columns: 200px minmax(0, 1fr);
    border: 1.5px solid var(--line-2); border-radius: 13px; background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ssr-phone:hover { border-color: #b9b3d3; }
.ssr-phone:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109,74,255,.14); }
.ssr-phone.has-error { border-color: var(--red); }
.ssr-phone-cc { position: relative; display: flex; align-items: center; border-right: 1.5px solid var(--line); }
.ssr-phone-cc img { position: absolute; left: 14px; width: 22px; height: 16px; border-radius: 3px; object-fit: cover; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.ssr-phone-cc::after { content: "\F282"; font-family: bootstrap-icons !important; position: absolute; right: 12px; font-size: 12px; color: var(--muted); pointer-events: none; }
.ssr .ssr-phone select {
    width: 100%; height: 47px; padding: 0 30px 0 46px !important; border: 0 !important; border-radius: 12px 0 0 12px !important;
    background: transparent !important; color: var(--ink) !important; font-size: 15px !important; font-weight: 500;
    -webkit-appearance: none; appearance: none; box-shadow: none !important; outline: none; cursor: pointer;
    text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.ssr .ssr-phone .ssr-input { height: 47px; border: 0 !important; border-radius: 0 12px 12px 0 !important; box-shadow: none !important; background: transparent !important; }
.ssr .ssr-phone .ssr-input.input-validation-error { background: transparent !important; }
.ssr .ssr-phone select:focus-visible { box-shadow: inset 0 0 0 2px rgba(109,74,255,.35) !important; }

/* ---------- campus: radio cards ---------- */
.ssr-campuses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ssr-campuses.is-single { grid-template-columns: minmax(0, 1fr); }
.ssr-campus { position: relative; display: block; margin: 0; cursor: pointer; }
.ssr-campus input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ssr-campus-card {
    display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; height: 100%;
    padding: 14px 14px 14px 14px; border-radius: 16px; border: 1.5px solid var(--line-2); background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ssr-campus:hover .ssr-campus-card { border-color: #b9b3d3; }
.ssr-campus input:focus-visible + .ssr-campus-card { box-shadow: 0 0 0 4px rgba(109,74,255,.2); border-color: var(--violet); }
.ssr-campus input:checked + .ssr-campus-card { border-color: var(--violet); background: #faf8ff; box-shadow: 0 0 0 1px var(--violet) inset; }
.ssr-campus-ico {
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
    background: var(--wash); color: var(--violet-ink); font-size: 16px; transition: background-color .15s ease, color .15s ease;
}
.ssr-campus input:checked + .ssr-campus-card .ssr-campus-ico { background: var(--violet); color: #fff; }
.ssr-campus-name { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.3; padding-right: 24px; }
.ssr-campus-addr { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.ssr-campus-tel { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.ssr-campus-radio {
    position: absolute; right: 14px; top: 16px; width: 20px; height: 20px; border-radius: 50%;
    border: 1.5px solid var(--line-2); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.ssr-campus input:checked + .ssr-campus-card .ssr-campus-radio { border-color: var(--violet); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--violet); }
.ssr-campuses.has-error .ssr-campus-card { border-color: #eab0b3; }

/* ---------- courses: checkable tiles ---------- */
.ssr-course-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ssr-course-search { position: relative; flex: 1 1 220px; max-width: 320px; }
.ssr-course-search .bi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.ssr .ssr-course-search .ssr-input { height: 42px; padding-left: 38px !important; font-size: 15px !important; border-radius: 11px !important; }
.ssr-course-count { font-size: 14px; font-weight: 600; color: var(--muted); }
.ssr-course-count.has-picks { color: var(--violet-ink); }

.ssr-courses {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px;
    max-height: 520px; overflow-y: auto; padding: 4px; margin: -4px;
    scrollbar-width: thin; scrollbar-color: #d8d4e8 transparent;
}
.ssr-courses::-webkit-scrollbar { width: 8px; }
.ssr-courses::-webkit-scrollbar-track { background: transparent; }
.ssr-courses::-webkit-scrollbar-thumb { background: #dcd8ea; border-radius: 8px; }
.ssr-course { position: relative; display: block; margin: 0; cursor: pointer; }
.ssr-course[hidden] { display: none; }
.ssr-course input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ssr-course-card {
    display: flex; flex-direction: column; height: 100%;
    border-radius: 16px; border: 1.5px solid var(--line-2); background: #fff; overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ssr-course:hover .ssr-course-card { border-color: #b9b3d3; }
.ssr-course input:focus-visible + .ssr-course-card { box-shadow: 0 0 0 4px rgba(109,74,255,.2); border-color: var(--violet); }
.ssr-course input:checked + .ssr-course-card { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet) inset; }
.ssr-course-thumb { display: block; width: 100%; object-fit: cover; background: var(--wash); }
.ssr-course-name {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    padding: 10px 12px 12px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink);
}
.ssr-course-tick {
    position: absolute; top: 9px; right: 9px; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; font-size: 15px;
    background: rgba(255,255,255,.92); color: transparent; box-shadow: 0 2px 8px rgba(20,10,70,.25), inset 0 0 0 1.5px var(--line-2);
    transition: background-color .15s ease, color .15s ease;
}
/* the tick sits after the card in the markup, so it is reached with ~ (a + ... descendant selector never matched it) */
.ssr-course input:checked ~ .ssr-course-tick { background: var(--violet); color: #fff; box-shadow: 0 4px 10px rgba(109,74,255,.45); }
.ssr-course-none { grid-column: 1 / -1; padding: 22px; text-align: center; border-radius: 14px; background: var(--wash); color: var(--muted); font-size: 14.5px; }

/* ---------- consent + submit ---------- */
.ssr-finish { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.ssr-consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 0; }
.ssr-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ssr-box {
    flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; display: grid; place-items: center;
    border: 1.5px solid var(--line-2); background: #fff; color: transparent; font-size: 14px;
    transition: background-color .15s ease, border-color .15s ease;
}
.ssr-consent input:checked + .ssr-box { background: var(--violet); border-color: var(--violet); color: #fff; }
.ssr-consent input:focus-visible + .ssr-box { box-shadow: 0 0 0 4px rgba(109,74,255,.2); }
.ssr-consent.has-error .ssr-box { border-color: var(--red); }
.ssr .ssr-consent-text { font-size: 15px; color: var(--ink-2) !important; font-weight: 400; line-height: 1.5; }
.ssr .ssr-consent-text a { font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; }

.ssr-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 56px; margin-top: 22px; padding: 0 24px; border: 0; border-radius: 15px;
    background: var(--violet); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer;
    box-shadow: 0 18px 30px -18px rgba(109,74,255,.95);
    transition: background-color .15s ease, transform .15s ease;
}
.ssr-submit:hover { background: var(--violet-ink); transform: translateY(-1px); }
.ssr-submit:focus-visible { outline: 3px solid rgba(109,74,255,.4); outline-offset: 3px; }
.ssr-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.ssr-next { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px !important; font-size: 14px; color: var(--muted) !important; }
.ssr-next .bi { color: var(--violet-ink); margin-top: 1px; }
.ssr-login { margin-top: 26px !important; font-size: 15px; color: var(--ink-2) !important; }
.ssr .ssr-login a { font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; }

.ssr-honey { position: absolute; left: -9999px; top: -9999px; width: 0; height: 0; overflow: hidden; }

/* ---------- "creating your account" ---------- */
.ssr-busy {
    position: fixed; inset: 0; z-index: 20000; display: none; place-items: center;
    background: rgba(74,51,153,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ssr-busy.is-on { display: grid; }
.ssr-busy-card { width: min(92vw, 340px); padding: 28px 26px 24px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 40px 80px -30px rgba(20,10,70,.55); }
.ssr-spin { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid var(--violet-soft, #ece8ff); border-top-color: #6d4aff; animation: ssrSpin .8s linear infinite; }
@keyframes ssrSpin { to { transform: rotate(360deg); } }
.ssr-busy-card b { display: block; font-size: 17px; color: #14121f; }
.ssr-busy-card span { display: block; margin-top: 4px; font-size: 14px; color: #6c6980; }

/* =====================================================================
   Success page
   ===================================================================== */
.ssr-done-main { display: flex; flex-direction: column; justify-content: center; }
.ssr-done-check {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--mint); color: #fff; font-size: 26px; box-shadow: 0 12px 24px -12px rgba(15,143,111,.8);
}
.ssr-done .ssr-pass { transform: rotate(-1.6deg); }
.ssr-done .ssr-stamp { opacity: 1; transform: rotate(8deg) scale(1); animation: none; }
.ssr-steps { list-style: none; margin: 28px 0 0 !important; padding: 0 !important; display: grid; gap: 0; counter-reset: s; }
.ssr-steps li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 0 0 22px; }
.ssr-steps li::before {
    counter-increment: s; content: counter(s);
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--violet-soft); color: var(--violet-ink); font-weight: 700; font-size: 15px;
}
.ssr-steps li::after { content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 4px; width: 1.5px; background: var(--line); }
.ssr-steps li:last-child { padding-bottom: 0; }
.ssr-steps li:last-child::after { display: none; }
.ssr-steps b { display: block; font-weight: 700; font-size: 16.5px; color: var(--ink); padding-top: 5px; }
.ssr-steps span { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.ssr-tip { display: flex; gap: 10px; margin-top: 26px !important; padding: 12px 14px; border-radius: 12px; background: var(--wash); font-size: 14.5px; color: var(--ink-2) !important; }
.ssr-tip .bi { color: var(--violet-ink); }
.ssr-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px;
    height: 54px; padding: 0 30px; border-radius: 15px; background: var(--violet); color: #fff !important;
    font-size: 16.5px; font-weight: 600; box-shadow: 0 18px 30px -18px rgba(109,74,255,.95);
    transition: background-color .15s ease;
}
.ssr-cta:hover { background: var(--violet-ink); }
.ssr-cta:focus-visible { outline: 3px solid rgba(109,74,255,.4); outline-offset: 3px; }
.ssr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ssr-chip { padding: 2px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); font-size: 12.5px; font-weight: 600; }

/* =====================================================================
   Narrower screens
   ===================================================================== */
@media (max-width: 1180px) {
    .ssr-frame { grid-template-columns: minmax(320px, 4fr) 6fr; }
    .ssr-campuses { grid-template-columns: minmax(0, 1fr); }
}

/* below this the institute becomes a header and the pass goes (the form is the whole job) */
@media (max-width: 991px) {
    .ssr-frame { grid-template-columns: minmax(0, 1fr); }
    .ssr-side-in { position: static; min-height: 0; max-height: none; padding: 22px 22px 26px; gap: 20px; }
    .ssr-side .ssr-pass { display: none; }
    .ssr-partner { margin-top: 0; padding-top: 18px; }
    .ssr-main { padding: 34px 22px 48px; }
    .ssr-inst { gap: 16px; }
    .ssr-inst-logo { width: 200px; height: 200px; border-radius: 24px; }
    .ssr-done .ssr-side .ssr-pass { display: block; margin-top: 4px; }
}
@media (max-width: 575px) {
    .ssr-grid { grid-template-columns: minmax(0, 1fr); }
    /* no room for the flag here: the dial code and country name matter more */
    .ssr-phone { grid-template-columns: 136px minmax(0, 1fr); }
    .ssr-phone-cc img { display: none; }
    .ssr .ssr-phone select { font-size: 14.5px !important; padding: 0 26px 0 13px !important; }
    .ssr-phone-cc::after { right: 9px; }
    /* keep the institute header short so the form starts near the top */
    .ssr-about-body.is-clamped { -webkit-line-clamp: 2; }
    .ssr-side-in { gap: 16px; }
    .ssr-partner { padding-top: 14px; }
    .ssr-partner p { font-size: 12.5px; }
    .ssr-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ssr-course-name { font-size: 13.5px; padding: 8px 10px 10px; }
    .ssr .ssr-inst-name { font-size: 32px; }
    .ssr-partner-imgs img { height: 46px; }
    .ssr-head { margin: 22px 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .ssr *, .ssr *::before, .ssr *::after { transition: none !important; }
    .ssr-pass.is-ready .ssr-stamp { animation: none; opacity: 1; transform: rotate(8deg) scale(1); }
    .ssr-spin { animation-duration: 2s; }
}
