/*
 * Registration flow polish + motion.
 *
 * Loaded on top of each registration page's own inline <style> block, which sits in the
 * BODY and therefore wins any same-specificity tie. So every rule here that has to
 * override a base declaration is scoped under `.school-public-register` (the <main>
 * class shared by register.php, register-form.php and register-ebill.php) to outrank it.
 * Purely additive rules (keyframes, new elements) need no such scoping.
 */

.school-public-register {
    --register-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --register-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --register-ring: rgba(15, 108, 191, 0.14);
}

/* ------------------------------------------------------------------ *
 * Page canvas
 * ------------------------------------------------------------------ */

.school-public-register .register-page {
    position: relative;
    /* Contains the decorative blobs below: `isolate` keeps their negative z-index from
       escaping the section, `clip` stops them from adding scrollable overflow. */
    isolation: isolate;
    overflow: clip;
}

/* Two slow-drifting colour washes behind the content. Decorative only. */
.school-public-register .register-page::before,
.school-public-register .register-page::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    pointer-events: none;
}
.school-public-register .register-page::before {
    width: min(46rem, 90vw);
    height: min(46rem, 90vw);
    top: -18rem;
    left: -12rem;
    background: radial-gradient(circle, rgba(15, 108, 191, 0.30), transparent 68%);
    animation: registerDriftA 22s var(--register-ease) infinite alternate;
}
.school-public-register .register-page::after {
    width: min(38rem, 80vw);
    height: min(38rem, 80vw);
    top: 6rem;
    right: -14rem;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.26), transparent 68%);
    animation: registerDriftB 26s var(--register-ease) infinite alternate;
}

@keyframes registerDriftA {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(4rem, 3rem, 0) scale(1.12); }
}
@keyframes registerDriftB {
    from { transform: translate3d(0, 0, 0) scale(1.08); }
    to   { transform: translate3d(-3.5rem, 4rem, 0) scale(0.95); }
}

/* ------------------------------------------------------------------ *
 * Entrance choreography
 *
 * Everything in the shell rises into place once, in reading order.
 * ------------------------------------------------------------------ */

@keyframes registerRise {
    from { opacity: 0; transform: translate3d(0, 18px, 0); }
    to   { opacity: 1; transform: none; }
}
@keyframes registerPop {
    0%   { opacity: 0; transform: scale(0.82); }
    60%  { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.school-public-register .register-shell > * {
    animation: registerRise 0.6s var(--register-ease-out) both;
}
.school-public-register .register-shell > :nth-child(1) { animation-delay: 0.02s; }
.school-public-register .register-shell > :nth-child(2) { animation-delay: 0.10s; }
.school-public-register .register-shell > :nth-child(3) { animation-delay: 0.18s; }
.school-public-register .register-shell > :nth-child(4) { animation-delay: 0.26s; }
.school-public-register .register-shell > :nth-child(5) { animation-delay: 0.34s; }

.school-public-register .register-logo {
    animation: registerPop 0.7s var(--register-ease-out) 0.12s both;
}
.school-public-register .register-logo img,
.school-public-register .register-logo--initials {
    transition: transform 0.4s var(--register-ease-out);
}
.school-public-register .register-header:hover .register-logo img,
.school-public-register .register-header:hover .register-logo--initials {
    transform: scale(1.04) rotate(-1.5deg);
}
.school-public-register .register-logo--initials {
    box-shadow: 0 12px 30px rgba(15, 108, 191, 0.32);
}

/* Back link: the arrow slides toward the direction it points. */
.school-public-register .register-back {
    transition: background 0.2s var(--register-ease), transform 0.2s var(--register-ease);
}
.school-public-register .register-back i {
    transition: transform 0.25s var(--register-ease-out);
}
.school-public-register .register-back:hover i {
    transform: translateX(-4px);
}

/* ------------------------------------------------------------------ *
 * Cards
 * ------------------------------------------------------------------ */

.school-public-register .register-form-card,
.school-public-register .register-policy,
.school-public-register .ebill-card {
    position: relative;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 14px 40px -18px rgba(15, 23, 42, 0.28),
        0 34px 70px -40px rgba(15, 108, 191, 0.30);
}

/* A hairline of school colour along the top edge of each card. */
.school-public-register .register-form-card::before,
.school-public-register .register-policy::before,
.school-public-register .ebill-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    border-radius: 1.25rem 1.25rem 0 0;
    background: linear-gradient(90deg, var(--primary, #0f6cbf), #38bdf8, var(--primary, #0f6cbf));
    background-size: 200% 100%;
    animation: registerSheen 6s linear infinite;
}
@keyframes registerSheen {
    from { background-position: 0% 0; }
    to   { background-position: 200% 0; }
}

/* ------------------------------------------------------------------ *
 * Wizard: progress bar + stepper
 * ------------------------------------------------------------------ */

.register-progress {
    --register-progress: 0;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}
.register-progress__track {
    position: relative;
    flex: 1 1 auto;
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 108, 191, 0.12);
    overflow: hidden;
}
.register-progress__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--register-progress) * 100%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary, #0f6cbf), #38bdf8);
    transition: width 0.55s var(--register-ease-out);
}
/* A light sweep travelling along the filled portion. */
.register-progress__fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: translateX(-100%);
    animation: registerSweep 2.4s var(--register-ease) infinite;
}
@keyframes registerSweep {
    to { transform: translateX(100%); }
}
.register-progress__count {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted, #6a737b);
    font-variant-numeric: tabular-nums;
}

.school-public-register .register-step-dot__num {
    transition:
        background 0.3s var(--register-ease),
        border-color 0.3s var(--register-ease),
        color 0.3s var(--register-ease),
        box-shadow 0.3s var(--register-ease),
        transform 0.3s var(--register-ease-out);
}
.school-public-register .register-step-dot.is-active .register-step-dot__num {
    transform: scale(1.12);
    animation: registerDotPulse 2.4s var(--register-ease) infinite;
}
@keyframes registerDotPulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--register-ring); }
    50%      { box-shadow: 0 0 0 9px rgba(15, 108, 191, 0.05); }
}
.school-public-register .register-step-dot.is-complete .register-step-dot__num {
    /* The number is swapped for a tick once the step is behind you. */
    font-size: 0;
}
.school-public-register .register-step-dot.is-complete .register-step-dot__num::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    animation: registerPop 0.35s var(--register-ease-out) both;
}
.school-public-register .register-step-dot:not(.is-active):hover .register-step-dot__num {
    border-color: var(--primary, #0f6cbf);
}
.school-public-register .register-step-dot__label {
    transition: color 0.3s var(--register-ease);
}

.school-public-register .register-step-line {
    background-color: var(--border, #e2e6ea);
    background-image: linear-gradient(90deg, var(--primary, #0f6cbf), #38bdf8);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.45s var(--register-ease-out);
}
.school-public-register .register-step-line.is-complete {
    background-color: var(--border, #e2e6ea);
    background-size: 100% 100%;
}

/* ------------------------------------------------------------------ *
 * Wizard: step transitions
 *
 * `goToStep` tags the step it reveals with a direction, so going back
 * animates the opposite way from going forward.
 * ------------------------------------------------------------------ */

.register-step[data-enter="forward"] {
    animation: registerStepInForward 0.42s var(--register-ease-out) both;
}
.register-step[data-enter="back"] {
    animation: registerStepInBack 0.42s var(--register-ease-out) both;
}
@keyframes registerStepInForward {
    from { opacity: 0; transform: translate3d(26px, 0, 0); }
    to   { opacity: 1; transform: none; }
}
@keyframes registerStepInBack {
    from { opacity: 0; transform: translate3d(-26px, 0, 0); }
    to   { opacity: 1; transform: none; }
}

/* Fields inside an entering step cascade in just behind the panel itself. */
.register-step[data-enter] .form-group,
.register-step[data-enter] .register-field,
.register-step[data-enter] .academic-choice__option,
.register-step[data-enter] .academic-level-chip {
    animation: registerRise 0.44s var(--register-ease-out) both;
}
.register-step[data-enter] .form-group:nth-child(1),
.register-step[data-enter] .register-field:nth-child(1) { animation-delay: 0.06s; }
.register-step[data-enter] .form-group:nth-child(2),
.register-step[data-enter] .register-field:nth-child(2) { animation-delay: 0.10s; }
.register-step[data-enter] .form-group:nth-child(3),
.register-step[data-enter] .register-field:nth-child(3) { animation-delay: 0.14s; }
.register-step[data-enter] .form-group:nth-child(4),
.register-step[data-enter] .register-field:nth-child(4) { animation-delay: 0.18s; }
.register-step[data-enter] .form-group:nth-child(n + 5) { animation-delay: 0.22s; }

.register-step[data-enter] .register-step-header__icon {
    animation: registerPop 0.5s var(--register-ease-out) both;
}

/* ------------------------------------------------------------------ *
 * Fields
 * ------------------------------------------------------------------ */

.school-public-register .register-field input,
.school-public-register .user-profile-form .form-control {
    border-radius: 0.75rem;
    transition:
        border-color 0.2s var(--register-ease),
        box-shadow 0.2s var(--register-ease),
        background 0.2s var(--register-ease),
        transform 0.2s var(--register-ease-out);
}
.school-public-register .register-field input:hover:not(:focus),
.school-public-register .user-profile-form .form-control:hover:not(:focus) {
    border-color: rgba(15, 108, 191, 0.45);
}
.school-public-register .register-field input:focus,
.school-public-register .user-profile-form .form-control:focus {
    border-color: var(--primary, #0f6cbf);
    box-shadow: 0 0 0 4px var(--register-ring);
    transform: translateY(-1px);
}
.school-public-register .register-field label,
.school-public-register .user-profile-form label {
    transition: color 0.2s var(--register-ease);
}
.school-public-register .register-field:focus-within label {
    color: var(--primary, #0f6cbf);
}

/* Fields the visitor has actually left in an invalid state get a red ring,
   instead of only the browser's transient validation bubble. */
.school-public-register .register-field input:user-invalid,
.school-public-register .user-profile-form .form-control:user-invalid {
    border-color: #e11d48;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */

.school-public-register .register-btn {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.18s var(--register-ease-out),
        box-shadow 0.25s var(--register-ease),
        background 0.25s var(--register-ease),
        opacity 0.2s var(--register-ease);
}
/* Diagonal shine that crosses the button on hover. */
.school-public-register .register-btn--primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 45%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s var(--register-ease-out);
    pointer-events: none;
}
.school-public-register .register-btn--primary:hover:not(:disabled)::after {
    left: 130%;
}
.school-public-register .register-btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(15, 108, 191, 0.48);
}
.school-public-register .register-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.985);
}
.school-public-register .register-btn i {
    transition: transform 0.25s var(--register-ease-out);
}
.school-public-register .register-btn:hover:not(:disabled) .fa-arrow-right {
    transform: translateX(4px);
}
.school-public-register .register-btn:hover:not(:disabled) .fa-arrow-left {
    transform: translateX(-4px);
}
.school-public-register .register-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--register-ring);
}

/* The wizard's Back button slides in rather than popping the row wider. */
.register-wizard-actions [data-register-back]:not([hidden]) {
    animation: registerBackIn 0.35s var(--register-ease-out) both;
}
@keyframes registerBackIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: none; }
}

.school-public-register .register-quick-fill-btn {
    transition: background 0.2s var(--register-ease), transform 0.2s var(--register-ease-out);
}
.school-public-register .register-quick-fill-btn:hover {
    transform: translateY(-1px);
}

/* ------------------------------------------------------------------ *
 * Errors
 * ------------------------------------------------------------------ */

.school-public-register .register-errors {
    animation: registerShake 0.5s var(--register-ease) both;
}
@keyframes registerShake {
    0%   { opacity: 0; transform: translateX(0); }
    20%  { opacity: 1; transform: translateX(-8px); }
    40%  { transform: translateX(7px); }
    60%  { transform: translateX(-4px); }
    80%  { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

/* ------------------------------------------------------------------ *
 * Policy page
 * ------------------------------------------------------------------ */

.school-public-register .register-attachment {
    transition:
        border-color 0.2s var(--register-ease),
        background 0.2s var(--register-ease),
        transform 0.2s var(--register-ease-out),
        box-shadow 0.25s var(--register-ease);
}
.school-public-register .register-attachment:hover {
    transform: translateX(4px);
    border-color: var(--primary, #0f6cbf);
    box-shadow: 0 10px 24px -14px rgba(15, 108, 191, 0.55);
}
.school-public-register .register-attachment__icon {
    transition: transform 0.25s var(--register-ease-out);
}
.school-public-register .register-attachment:hover .register-attachment__icon {
    transform: translateY(2px);
}
.school-public-register .register-attachment--done .register-attachment__status {
    animation: registerPop 0.4s var(--register-ease-out) both;
}

.school-public-register .register-ack {
    transition:
        border-color 0.2s var(--register-ease),
        background 0.2s var(--register-ease),
        transform 0.2s var(--register-ease-out);
}
.school-public-register .register-ack:hover {
    transform: translateY(-1px);
}
.school-public-register .register-ack input[type="checkbox"] {
    transition: transform 0.2s var(--register-ease-out);
}
.school-public-register .register-ack input[type="checkbox"]:checked {
    animation: registerPop 0.32s var(--register-ease-out) both;
}

/* Once every requirement is met, the continue button announces itself. */
.school-public-register #register-submit:not(:disabled) {
    animation: registerReady 0.5s var(--register-ease-out) both;
}
@keyframes registerReady {
    0%   { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(15, 108, 191, 0.45); }
    60%  { transform: scale(1.015); box-shadow: 0 0 0 12px rgba(15, 108, 191, 0); }
    100% { transform: scale(1); box-shadow: 0 8px 22px rgba(15, 108, 191, 0.28); }
}

/* ------------------------------------------------------------------ *
 * E-bill page
 * ------------------------------------------------------------------ */

.school-public-register .ebill-status {
    animation: registerPop 0.55s var(--register-ease-out) 0.25s both;
}
.school-public-register .ebill-qr {
    animation: registerPop 0.6s var(--register-ease-out) 0.32s both;
}
.school-public-register .ebill-ref {
    animation: registerRise 0.5s var(--register-ease-out) 0.4s both;
}
.school-public-register .ebill-fee {
    animation: registerRise 0.5s var(--register-ease-out) 0.46s both;
}
.school-public-register .pay-online-channel {
    transition:
        transform 0.2s var(--register-ease-out),
        border-color 0.2s var(--register-ease),
        box-shadow 0.25s var(--register-ease);
}
.school-public-register .pay-online-channel:hover {
    transform: translateY(-3px);
    border-color: var(--primary, #0f6cbf);
    box-shadow: 0 12px 26px -14px rgba(15, 108, 191, 0.55);
}
.school-public-register .ebill-declined {
    animation: registerShake 0.5s var(--register-ease) both;
}

/* ------------------------------------------------------------------ *
 * Institute picker (register-form.php, shown before the form itself when
 * a school has more than one institute/department with programs)
 *
 * This page renders and exits BEFORE register-form.php's inline <style>
 * block, so it never receives any of the shared page/shell/header/card
 * layout the rest of the registration flow relies on. These rules restore
 * exactly that layout, scoped to .register-page--picker so the main form
 * page (which does get the inline block) is completely unaffected.
 * ------------------------------------------------------------------ */

.register-page--picker {
    --register-radius: 1rem;
    --register-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    min-height: calc(100vh - var(--navbar-height, 60px));
    width: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(15, 108, 191, 0.14), transparent 60%),
        linear-gradient(135deg, #eef4fb 0%, #f7faff 50%, #eef2f7 100%);
    padding: clamp(1.25rem, 3vw, 2.5rem) clamp(0.75rem, 3vw, 2rem) clamp(2rem, 5vw, 3.5rem);
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-x: clip;
}
.register-page--picker .register-shell {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}
.register-page--picker .register-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary, #0f6cbf);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    align-self: flex-start;
}
.register-page--picker .register-back:hover {
    background: rgba(15, 108, 191, 0.08);
    text-decoration: none;
}
.register-page--picker .register-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}
.register-page--picker .register-header-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.register-page--picker .register-title {
    margin: 0;
    font-size: clamp(1.65rem, 3.2vw, 2.15rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--text, #1d2125);
    max-width: 22ch;
}
.register-page--picker .register-subtitle {
    margin: 0;
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    color: var(--text-muted, #6a737b);
    line-height: 1.5;
    max-width: 52ch;
}
.register-page--picker .register-form-card {
    background: #fff;
    border: 1px solid var(--border, #e2e6ea);
    border-radius: var(--register-radius);
    box-shadow: var(--register-shadow-sm);
    padding: 1.75rem;
}
@media (max-width: 480px) {
    .register-page--picker .register-form-card { padding: 1.25rem; }
}

.register-form-card--picker {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.institute-picker-category { display: flex; flex-direction: column; gap: 0.9rem; }
.institute-picker-category__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
/* --pick-accent / --pick-accent-soft are set per category inline by register-form.php, so
   each group carries its own colour instead of every row reading as the same blue. */
.institute-picker-category {
    --pick-accent: var(--primary, #0f6cbf);
    --pick-accent-soft: #e7f0fa;
    padding-left: 0.9rem;
    border-left: 3px solid var(--pick-accent);
}
.institute-picker-category__icon {
    width: 2.1rem;
    height: 2.1rem;
    flex-shrink: 0;
    border-radius: 0.65rem;
    background: var(--pick-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.institute-picker-category__title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text, #1d2125);
    margin: 0;
    flex: 1 1 auto;
}
.institute-picker-category__count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pick-accent);
    background: var(--pick-accent-soft);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    flex-shrink: 0;
}
.institute-picker-grid {
    display: grid;
    /* min() keeps a single card from overflowing on narrow phones, where 240px
       would exceed the available track width. */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 0.9rem;
    align-items: stretch;
}
.institute-picker-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.15rem 1.25rem;
    border: 1.5px solid var(--border, #e2e6ea);
    border-radius: 1rem;
    background: #fff;
    text-decoration: none;
    color: var(--text, #1d2125);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.institute-picker-card:hover {
    border-color: var(--pick-accent);
    box-shadow: 0 8px 18px -6px rgba(15, 23, 42, 0.22);
    transform: translateY(-2px);
    text-decoration: none;
    background: var(--pick-accent-soft);
}
.institute-picker-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.8rem;
    background: var(--pick-accent-soft);
    color: var(--pick-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease;
}
.institute-picker-card:hover .institute-picker-card__icon {
    background: var(--pick-accent);
    color: #fff;
}
.institute-picker-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1 1 auto;
    min-width: 0;
}
.institute-picker-card__name {
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.25;
}
.institute-picker-card__meta {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted, #6a737b);
}
.institute-picker-card__go {
    flex-shrink: 0;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6a737b);
    background: var(--surface-2, #f4f6f8);
    font-size: 0.75rem;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.institute-picker-card:hover .institute-picker-card__go {
    background: var(--pick-accent);
    color: #fff;
    transform: translateX(2px);
}

/* Photo variant: a cover strip built from the institute's own programs' cover photos (up to
   2, side by side), with the institute's icon as a badge overlapping the bottom edge — an
   applicant sees the actual programs on offer before they click in, instead of a flat icon. */
.institute-picker-card--photo {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    /* Not overflow:hidden on the card itself — the badge below deliberately overhangs the
       cover's bottom edge, so only the cover clips its images to the card's rounded top. */
    position: relative;
}
.institute-picker-card__cover {
    position: relative;
    display: flex;
    height: 6.5rem;
    background: var(--pick-accent-soft);
    border-radius: calc(1rem - 1.5px) calc(1rem - 1.5px) 0 0;
    overflow: hidden;
}
.institute-picker-card__cover-img {
    flex: 1 1 0;
    background-size: cover;
    background-position: center;
}
.institute-picker-card__cover--2up .institute-picker-card__cover-img + .institute-picker-card__cover-img {
    border-left: 2px solid #fff;
}
.institute-picker-card__cover-fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
}
.institute-picker-card__badge {
    position: absolute;
    left: 0.9rem;
    bottom: -1.15rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px -3px rgba(15, 23, 42, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pick-accent);
    font-size: 1.05rem;
    overflow: hidden;
}
.institute-picker-card__badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.3rem;
}
.institute-picker-card__body--photo {
    padding: 1.65rem 3.6rem 0.9rem 0.9rem;
    gap: 0.15rem;
}
.institute-picker-card__go--photo {
    position: absolute;
    right: 0.9rem;
    bottom: 0.85rem;
}
.institute-picker-card--photo:hover {
    background: #fff;
}
.institute-picker-card--photo:hover .institute-picker-card__cover-img {
    transform: scale(1.04);
}
.institute-picker-card__cover-img {
    transition: transform 0.25s ease;
}

/* ------------------------------------------------------------------ *
 * Motion preferences
 *
 * Everything above is decoration, so it is switched off rather than
 * merely shortened when the visitor asks for reduced motion.
 * ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .school-public-register *,
    .school-public-register *::before,
    .school-public-register *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
