/* =====================================================================
   Student self-registration as a campaign landing page. View:
   Views/Institution/StudentSelfRegistration.cshtml. Layout only (.ssc);
   the fields, pickers, validation and busy overlay come from co-ssr.css
   (.ssr), which is loaded first and shared with the success page.

   One loud thing: the promise, in heavy type with "top 5%" on a tilted
   white tag, on the medium-purple hero. Everything else is quiet.
   ===================================================================== */

.ssc { background: #fff; }
.ssc .ssc-hero { position: relative; overflow: hidden; background: #000; color: #fff; }
.ssc-hero::before {
    /* a fine dot field, fading down */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.2) 1.2px, transparent 1.4px); background-size: 20px 20px;
    -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%);
}
.ssc-hero::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none; right: -200px; top: -260px;
    width: 720px; height: 720px; border-radius: 50%;
    background: radial-gradient(circle, rgba(236,220,255,.3), rgba(236,220,255,0) 65%);
}

/* ---------- top bar ---------- */
.ssc-bar { max-width: 1200px; margin: 0 auto; padding: 24px 32px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ssc-brand img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); }
.ssc .ssc-bar-login { font-size: 14.5px; color: rgba(255,255,255,.85) !important; }
.ssc .ssc-bar-login a { color: #fff !important; font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- stage: pitch + panel ---------- */
.ssc-stage {
    max-width: 1200px; margin: 0 auto; padding: 40px 32px 0;
    display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 56px; align-items: end;
}
.ssc-pitch { align-self: start; padding: 10px 0 64px; }
.ssc-logo {
    display: block; width: 200px; height: 200px; object-fit: contain; background: #fff; padding: 14px; border-radius: 30px;
    box-shadow: 0 0 0 7px rgba(255,255,255,.16), 0 34px 60px -30px rgba(20,10,70,.75);
}
.ssc .ssc-h1 {
    margin-top: 34px !important; color: #fff; font-size: clamp(40px, 4.6vw, 64px); font-weight: 800 !important;
    line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch;
}
.ssc-tag {
    display: inline-block; padding: 0 .2em; margin: 0 .04em; border-radius: .22em;
    background: #fff; color: var(--violet-ink); transform: rotate(-2.5deg);
    box-shadow: 0 14px 30px -14px rgba(20,10,70,.7);
    animation: sscTag .6s .2s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes sscTag { from { transform: rotate(-2.5deg) scale(.85); opacity: 0; } to { transform: rotate(-2.5deg) scale(1); opacity: 1; } }
.ssc .ssc-intro { margin-top: 20px !important; font-size: 17.5px; line-height: 1.6 !important; color: rgba(255,255,255,.9) !important; max-width: 46ch; }
.ssc-stats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 30px 0 0; }
.ssc-stats dt { font-size: 26px; font-weight: 700; line-height: 1.1; color: #fff; letter-spacing: -0.02em; }
.ssc-stats dd { margin: 2px 0 0; font-size: 13.5px; color: rgba(255,255,255,.78); }

/* the panel sits on the hero's floor, so the page reads as one piece */
.ssc-panel {
    background: #fff; color: var(--ink); border-radius: 28px 28px 0 0; padding: 34px 34px 32px;
    box-shadow: 0 -24px 60px -34px rgba(20,10,70,.65);
}
.ssc .ssc-panel-title { font-size: 26px; font-weight: 700 !important; letter-spacing: -0.02em; color: var(--ink); }
.ssc .ssc-panel-sub { margin-top: 4px !important; font-size: 15px; color: var(--muted) !important; }
.ssc-panel .ssr-alert { margin: 18px 0 0; }
.ssc-panel form { margin-top: 22px; }

.ssc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.ssc-fields .is-wide { grid-column: 1 / -1; }
.ssc .ssc-label { display: flex; align-items: baseline; gap: 6px; margin: 0 0 6px; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2) !important; float: none; width: 100%; line-height: 1.3; }
.ssc .ssc-label small { font-weight: 500; color: var(--muted); }
.ssc-label-row { justify-content: space-between; }
.ssc-picked { font-size: 13px; font-weight: 700; color: var(--violet-ink); }
.ssc .ssr-input { height: 48px; }
.ssc .ssr-phone { grid-template-columns: 150px minmax(0, 1fr); }
.ssc .ssr-phone select, .ssc .ssr-phone .ssr-input { height: 45px; }

.ssc-group { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }

/* campus: compact radio tiles */
.ssc-campuses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ssc-campuses.is-single { grid-template-columns: 1fr; }
.ssc-campus { position: relative; margin: 0; cursor: pointer; min-width: 0; }
.ssc-campus input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ssc-campus-card {
    display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 13px;
    border: 1.5px solid var(--line-2); background: #fff; transition: border-color .15s ease, background-color .15s ease;
}
.ssc-campus-card > .bi { flex: none; color: var(--muted); }
.ssc-campus-card > span { min-width: 0; }
.ssc-campus-card b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssc-campus-card small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssc-campus:hover .ssc-campus-card { border-color: #b9b3d3; }
.ssc-campus input:checked + .ssc-campus-card { border-color: var(--violet); background: #faf8ff; box-shadow: 0 0 0 1px var(--violet) inset; }
.ssc-campus input:checked + .ssc-campus-card > .bi { color: var(--violet-ink); }
.ssc-campus input:focus-visible + .ssc-campus-card { box-shadow: 0 0 0 4px rgba(109,74,255,.2); }
.ssc-campuses.has-error .ssc-campus-card { border-color: #eab0b3; }

/* courses: two-up poster tiles (co-ssr.css draws the tile, tick and states) */
.ssc-course-search { max-width: none; margin-bottom: 10px; }
.ssc-courses {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    max-height: 330px; overflow-y: auto; padding: 3px; margin: -3px;
    scrollbar-width: thin; scrollbar-color: #d8d4e8 transparent;
}
.ssc-courses::-webkit-scrollbar { width: 6px; }
.ssc-courses::-webkit-scrollbar-thumb { background: #dcd8ea; border-radius: 6px; }
.ssc .ssc-courses .ssr-course-card { border-radius: 14px; }
.ssc .ssc-courses .ssr-course-name { display: -webkit-box !important; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 2; line-height: 1.35; max-height: calc(2.7em + 8px); box-sizing: border-box; flex: none; font-size: 12.5px; padding: 8px 10px 0; margin-bottom: 10px; }
.ssc .ssc-courses .ssr-course-tick { width: 24px; height: 24px; top: 7px; right: 7px; font-size: 14px; }
.ssc .ssc-hint { margin-top: 8px !important; font-size: 12.5px; color: var(--muted) !important; }

.ssc-finish { margin-top: 20px; }
.ssc .ssr-consent-text { font-size: 14.5px; }
.ssc .ssr-submit { margin-top: 16px; }

/* ---------- what happens next ---------- */
.ssc-next { max-width: 1200px; margin: 0 auto; padding: 40px 32px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ssc-next > div { padding: 22px; border-radius: 20px; background: var(--wash); }
.ssc-next .bi { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--violet-ink); font-size: 19px; box-shadow: 0 8px 18px -12px rgba(79,48,224,.5); }
.ssc-next b { display: block; margin-top: 14px; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.ssc .ssc-next p { margin-top: 4px !important; font-size: 14.5px; color: var(--muted) !important; line-height: 1.55 !important; }

/* ---------- about the institute ---------- */
.ssc-about { max-width: 1200px; margin: 0 auto; padding: 44px 32px 72px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
.ssc .ssc-about-title { font-family: var(--serif) !important; font-weight: 400 !important; font-size: 34px; line-height: 1.1; color: var(--ink); }
.ssc-about-body { margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 68ch; }
.ssc-about-body p { line-height: 1.7 !important; color: inherit !important; margin: 0 0 10px !important; }
.ssc-about-body * { background: transparent !important; font-size: inherit !important; color: inherit !important; }
.ssc-about-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ssc-more { margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 14.5px; font-weight: 700; color: var(--violet-ink); text-decoration: underline; text-underline-offset: 3px; }
.ssc-about-side { display: grid; gap: 12px; align-content: start; padding-top: 6px; }
.ssc-about-side > p { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2) !important; overflow-wrap: anywhere; }
.ssc-about-side > p .bi { color: var(--violet-ink); margin-top: 1px; }
.ssc .ssc-about-side a { color: var(--violet-ink) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.ssc-seal { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 14px; border-radius: 16px; background: var(--wash); }
.ssc-seal img { height: 50px; width: auto; }
.ssc-seal span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ssc-seal b { display: block; font-size: 14px; color: var(--ink); }

/* ---------- narrower ---------- */
@media (max-width: 1100px) {
    .ssc-stage { grid-template-columns: minmax(0, 1fr) 460px; gap: 36px; }
}
@media (max-width: 900px) {
    .ssc-stage { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 26px; }
    .ssc-pitch { padding-bottom: 28px; }
    .ssc .ssc-h1 { max-width: none; }
    .ssc-panel { margin: 0 -32px; padding: 28px 32px 32px; }
    .ssc-next { grid-template-columns: minmax(0, 1fr); }
    .ssc-about { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 575px) {
    .ssc-bar { padding: 18px 18px 0; }
    .ssc-bar-login { font-size: 13.5px; }
    .ssc-stage { padding: 20px 18px 0; }
    .ssc-logo { width: 200px; height: 200px; border-radius: 26px; }
    .ssc .ssc-h1 { margin-top: 24px !important; font-size: 38px; }
    .ssc .ssc-intro { font-size: 16px; }
    .ssc-stats { gap: 12px 22px; }
    .ssc-stats dt { font-size: 21px; }
    .ssc-panel { margin: 0 -18px; padding: 24px 18px 28px; border-radius: 24px 24px 0 0; }
    .ssc-fields { grid-template-columns: minmax(0, 1fr); }
    .ssc .ssr-phone { grid-template-columns: 124px minmax(0, 1fr); }
    .ssc-campuses { grid-template-columns: minmax(0, 1fr); }
    .ssc-next { padding: 28px 18px 0; gap: 12px; }
    .ssc-about { padding: 32px 18px 56px; }
}
@media (prefers-reduced-motion: reduce) { .ssc-tag { animation: none; } }
