body.qamar-body {
    --qamar-ink: #17275d;
    --qamar-text: #24324f;
    --qamar-muted: #69748c;
    --qamar-paper: #fffdf8;
    --qamar-soft: #eef8fb;
    --qamar-line: rgba(23, 39, 93, 0.12);
    --qamar-shadow: 0 24px 70px rgba(23, 39, 93, 0.11);
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--qamar-text);
    background:
        linear-gradient(135deg, rgba(217, 243, 251, 0.78), transparent 34%),
        linear-gradient(180deg, #fffdf8 0%, #f7f3ea 100%);
}

.qamar-body a {
    color: inherit;
}

.qamar-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--qamar-line);
    background: rgba(255, 253, 248, 0.9);
    backdrop-filter: blur(18px);
}

.qamar-nav {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.qamar-logo,
.qamar-menu a,
.qamar-footer a {
    text-decoration: none;
}

.qamar-logo {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--school-primary, var(--qamar-ink));
    font-weight: 900;
}

.qamar-brand-logo,
.qamar-footer-logo {
    display: block;
    object-fit: contain;
}

.qamar-brand-logo {
    width: min(12rem, 38vw);
    max-height: 4.2rem;
}

.qamar-footer-logo {
    width: min(10.5rem, 60vw);
    max-height: 4rem;
    margin-bottom: 1rem;
}

.qamar-logo-text {
    max-width: min(42vw, 21rem);
    overflow-wrap: anywhere;
    line-height: 1.08;
}

.qamar-menu {
    gap: 1.45rem;
    color: color-mix(in srgb, var(--school-primary, var(--qamar-ink)) 82%, #223);
    font-size: 0.95rem;
    font-weight: 800;
}

.qamar-menu a {
    position: relative;
    padding-block: 0.35rem;
}

.qamar-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--school-accent, #f2c94c);
    transition: transform 180ms ease;
}

.qamar-menu a:hover::after {
    transform: scaleX(1);
}

.qamar-cta,
.qamar-secondary {
    min-height: 48px;
    border-radius: 999px;
    padding: 0.92rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 900;
    line-height: 1;
}

.qamar-cta {
    color: #fff;
    background: linear-gradient(135deg, var(--school-primary, var(--qamar-ink)), color-mix(in srgb, var(--school-primary, var(--qamar-ink)) 62%, var(--school-accent, #f2c94c)));
    box-shadow: 0 16px 38px color-mix(in srgb, var(--school-primary, var(--qamar-ink)) 24%, transparent);
}

.qamar-secondary {
    color: var(--school-primary, var(--qamar-ink));
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--qamar-line);
}

.qamar-nav-cta {
    white-space: nowrap;
}

.qamar-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4.5rem;
}

.qamar-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.38;
    pointer-events: none;
    background-image:
        linear-gradient(60deg, rgba(23, 39, 93, 0.05) 25%, transparent 25%),
        linear-gradient(120deg, rgba(23, 39, 93, 0.05) 25%, transparent 25%);
    background-size: 74px 128px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.qamar-hero-grid,
.qamar-split {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.qamar-eyebrow,
.qamar-kicker {
    color: var(--school-primary, var(--qamar-ink));
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.qamar-display,
.qamar-section-head h2,
.qamar-about-copy h2,
.qamar-program-card h3,
.qamar-level-card h3,
.qamar-class-card h3,
.qamar-price-card h3,
.qamar-steps-panel h2,
.qamar-cta-panel h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--school-primary, var(--qamar-ink));
}

.qamar-display {
    max-width: 12ch;
    margin: 0.8rem 0 1.1rem;
    font-size: clamp(3.25rem, 8vw, 6.8rem);
    line-height: 0.92;
}

.qamar-lead {
    max-width: 42rem;
    color: color-mix(in srgb, var(--school-primary, var(--qamar-ink)) 70%, #fff);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.72;
}

.qamar-hero-actions,
.qamar-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.qamar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.qamar-tags span,
.qamar-class-meta small {
    border: 1px solid var(--qamar-line);
    border-radius: 999px;
    padding: 0.48rem 0.75rem;
    color: var(--school-primary, var(--qamar-ink));
    background: rgba(255, 255, 255, 0.78);
    font-weight: 800;
    font-size: 0.84rem;
}

.qamar-hero-visual {
    position: relative;
    min-height: 520px;
    border: 1px solid var(--qamar-line);
    border-radius: 40px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 251, 0.88)),
        color-mix(in srgb, var(--school-secondary, #d9f3fb) 28%, #fff);
    box-shadow: var(--qamar-shadow);
}

.qamar-hero-image {
    width: 100%;
    height: 380px;
    display: block;
    padding: 1rem;
    object-fit: contain;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.74), color-mix(in srgb, var(--school-secondary, #d9f3fb) 34%, #fff));
}

.qamar-arch-scene {
    min-height: 380px;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.qamar-arch-window {
    position: relative;
    width: min(280px, 72%);
    aspect-ratio: 0.72;
    border: 2px solid color-mix(in srgb, var(--school-primary, var(--qamar-ink)) 26%, #fff);
    border-bottom-width: 10px;
    border-radius: 160px 160px 26px 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(217, 243, 251, 0.72)),
        linear-gradient(145deg, color-mix(in srgb, var(--school-accent, #f2c94c) 20%, transparent), transparent);
}

.qamar-arch-moon {
    position: absolute;
    top: 19%;
    left: 50%;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: -18px 0 0 var(--school-accent, #f2c94c);
}

.qamar-arch-line,
.qamar-arch-book {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--school-primary, var(--qamar-ink));
    opacity: 0.8;
}

.qamar-arch-line {
    top: 52%;
    width: 42%;
    height: 3px;
}

.qamar-arch-book {
    bottom: 18%;
    width: 45%;
    height: 18px;
    background: var(--school-accent, #f2c94c);
}

.qamar-hero-panel {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 28px;
    padding: 1.45rem;
    background: rgba(255, 255, 255, 0.91);
    backdrop-filter: blur(14px);
}

.qamar-hero-panel span,
.qamar-price-card span,
.qamar-contact-card span {
    display: block;
    color: var(--school-primary, var(--qamar-ink));
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.qamar-hero-panel strong {
    display: block;
    margin: 0.35rem 0;
    color: var(--school-primary, var(--qamar-ink));
    font-weight: 900;
}

.qamar-hero-panel p {
    margin: 0;
    color: var(--qamar-muted);
    line-height: 1.55;
}

.qamar-section {
    padding-block: clamp(3.4rem, 7vw, 5.75rem);
}

.qamar-section-head {
    max-width: 790px;
    margin: 0 auto 2rem;
    text-align: center;
}

.qamar-section-head-narrow {
    max-width: 660px;
}

.qamar-section-head h2,
.qamar-about-copy h2,
.qamar-steps-panel h2,
.qamar-cta-panel h2 {
    margin: 0.45rem 0 0.9rem;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 1.02;
}

.qamar-section-head p,
.qamar-about-copy p,
.qamar-cta-panel p {
    color: var(--qamar-muted);
    line-height: 1.75;
}

.qamar-soft-note {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--qamar-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--school-primary, var(--qamar-ink));
    font-weight: 800;
}

.qamar-soft-note i {
    color: var(--school-accent, #f2c94c);
}

.qamar-gallery {
    min-height: 430px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.qamar-gallery-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    border: 1px solid var(--qamar-line);
    border-radius: 34px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--school-primary, var(--qamar-ink));
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), color-mix(in srgb, var(--school-secondary, #d9f3fb) 48%, #fff)),
        #fff;
    box-shadow: 0 18px 45px rgba(23, 39, 93, 0.08);
}

.qamar-gallery-card-large {
    grid-row: span 2;
    border-radius: 160px 160px 34px 34px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--school-primary, var(--qamar-ink)) 84%, #fff), color-mix(in srgb, var(--school-primary, var(--qamar-ink)) 58%, var(--school-accent, #f2c94c))),
        var(--school-primary, var(--qamar-ink));
    color: #fff;
}

.qamar-gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qamar-gallery-image + * {
    position: relative;
}

.qamar-gallery-icon {
    width: 58px;
    height: 58px;
    border-radius: 19px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    color: inherit;
    background: rgba(255, 255, 255, 0.24);
    font-size: 1.8rem;
    font-family: "Cormorant Garamond", serif;
}

.qamar-card-grid,
.qamar-level-grid,
.qamar-price-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.qamar-contact-grid,
.qamar-stats {
    display: grid;
    gap: 1rem;
}

.qamar-program-card,
.qamar-price-card {
    flex: 1 1 280px;
    max-width: 420px;
}

.qamar-level-card {
    flex: 1 1 280px;
    max-width: 380px;
}

.qamar-program-card,
.qamar-level-card,
.qamar-class-card,
.qamar-price-card,
.qamar-stat-card,
.qamar-contact-card,
.qamar-empty-state {
    border: 1px solid var(--qamar-line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 52px rgba(23, 39, 93, 0.075);
}

.qamar-program-card,
.qamar-level-card,
.qamar-price-card,
.qamar-contact-card,
.qamar-empty-state {
    padding: 1.55rem;
}

.qamar-program-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
}

.qamar-program-card::after {
    content: "";
    position: absolute;
    right: -32px;
    top: -32px;
    width: 116px;
    height: 116px;
    border: 1px solid color-mix(in srgb, var(--school-accent, #f2c94c) 55%, transparent);
    border-radius: 50%;
}

.qamar-card-number {
    color: color-mix(in srgb, var(--school-primary, var(--qamar-ink)) 24%, transparent);
    font-family: "Cormorant Garamond", serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
}

.qamar-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0.85rem 0 1.1rem;
    color: var(--school-primary, var(--qamar-ink));
    background: color-mix(in srgb, var(--school-primary, var(--qamar-ink)) 10%, #fff);
}

.qamar-program-card h3,
.qamar-level-card h3,
.qamar-class-card h3,
.qamar-price-card h3 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    line-height: 1.07;
}

.qamar-program-card p,
.qamar-level-card p,
.qamar-class-card p {
    margin: 0;
    color: var(--qamar-muted);
    line-height: 1.62;
}

.qamar-level-card {
    min-height: 220px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), color-mix(in srgb, var(--school-secondary, #d9f3fb) 18%, #fff));
}

.qamar-level-card span,
.qamar-class-card > span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 1rem;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    color: var(--school-primary, var(--qamar-ink));
    background: color-mix(in srgb, var(--school-primary, var(--qamar-ink)) 9%, #fff);
    font-size: 0.8rem;
    font-weight: 900;
}

.qamar-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 380px));
    justify-content: center;
    gap: 1rem;
}

.qamar-class-card {
    min-height: 240px;
    padding: 1.45rem;
    display: grid;
    align-content: start;
    gap: 0.6rem;
}

.qamar-class-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.qamar-class-card strong {
    align-self: end;
    color: var(--school-accent, #f2c94c);
    font-size: 1.18rem;
    font-weight: 900;
}

.qamar-empty-state {
    text-align: center;
}

.qamar-empty-state i {
    color: var(--school-accent, #f2c94c);
    font-size: 2rem;
}

.qamar-empty-state strong {
    display: block;
    margin: 0.7rem 0 0.3rem;
    color: var(--school-primary, var(--qamar-ink));
}

.qamar-pricing-band {
    padding-block: clamp(3.4rem, 7vw, 5.75rem);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--school-primary, var(--qamar-ink)) 8%, transparent), transparent),
        rgba(255, 255, 255, 0.42);
}

.qamar-price-card {
    position: relative;
    overflow: hidden;
}

.qamar-price-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--school-primary, var(--qamar-ink)), var(--school-accent, #f2c94c));
}

.qamar-price-card strong {
    display: block;
    color: var(--school-primary, var(--qamar-ink));
    font-size: clamp(1.5rem, 3vw, 2.05rem);
    font-weight: 900;
}

.qamar-steps-panel {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
    align-items: start;
    border: 1px solid var(--qamar-line);
    border-radius: 34px;
    padding: clamp(1.4rem, 4vw, 2.4rem);
    background: #fff;
    box-shadow: var(--qamar-shadow);
}

.qamar-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.qamar-steps article {
    min-height: 190px;
    border: 1px solid var(--qamar-line);
    border-radius: 24px;
    padding: 1.2rem;
    background: color-mix(in srgb, var(--school-secondary, #d9f3fb) 16%, #fff);
}

.qamar-steps span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    color: #fff;
    background: var(--school-primary, var(--qamar-ink));
    font-weight: 900;
}

.qamar-steps strong {
    display: block;
    color: var(--school-primary, var(--qamar-ink));
}

.qamar-steps p {
    margin: 0.45rem 0 0;
    color: var(--qamar-muted);
}

.qamar-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qamar-stat-card {
    padding: 1.35rem;
    text-align: center;
}

.qamar-stat-card strong {
    display: block;
    color: var(--school-primary, var(--qamar-ink));
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: 900;
}

.qamar-stat-card span {
    color: var(--qamar-muted);
    font-weight: 700;
}

.qamar-cta-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    border-radius: 34px;
    padding: clamp(1.6rem, 5vw, 3rem);
    color: #fff;
    background:
        linear-gradient(135deg, var(--school-primary, var(--qamar-ink)), color-mix(in srgb, var(--school-primary, var(--qamar-ink)) 72%, #0b5f85));
}

.qamar-cta-panel::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.qamar-cta-panel .qamar-kicker,
.qamar-cta-panel h2,
.qamar-cta-panel p {
    position: relative;
    color: #fff;
}

.qamar-cta-panel p {
    margin: 0;
    opacity: 0.86;
}

.qamar-cta-actions {
    position: relative;
    margin-top: 0;
}

.qamar-cta-light {
    color: var(--school-primary, var(--qamar-ink)) !important;
    background: #fff;
    box-shadow: none;
    min-width: 170px;
    white-space: normal;
}

.qamar-secondary-dark {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    min-width: 170px;
    white-space: normal;
}

.qamar-contact-section {
    padding-top: 2rem;
}

.qamar-contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qamar-contact-card strong {
    display: block;
    margin-top: 0.45rem;
    color: var(--school-primary, var(--qamar-ink));
    overflow-wrap: anywhere;
}

.qamar-footer {
    color: rgba(255, 255, 255, 0.78);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--school-primary, var(--qamar-ink)) 94%, #07152e), #07152e);
    padding: 3.2rem 0 1.4rem;
}

.qamar-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.9fr;
    gap: 2rem;
}

.qamar-footer-brand,
.qamar-footer-title {
    color: #fff;
    font-weight: 900;
}

.qamar-footer-brand {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.qamar-footer-main p,
.qamar-footer-list {
    margin: 0;
}

.qamar-footer-list {
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.qamar-footer a {
    color: rgba(255, 255, 255, 0.82);
}

.qamar-footer-bottom {
    margin-top: 2rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
}

@media (max-width: 1199.98px) {
    .qamar-menu {
        gap: 1rem;
    }

    .qamar-hero-grid,
    .qamar-split {
        grid-template-columns: 1fr;
    }

    .qamar-hero-visual {
        min-height: 460px;
    }
}

@media (max-width: 991.98px) {
    .qamar-nav {
        min-height: 74px;
    }

    .qamar-brand-logo {
        width: min(8.5rem, 32vw);
    }

    .qamar-nav-cta {
        padding-inline: 1rem;
    }

    .qamar-hero {
        padding: 3.2rem 0 3.5rem;
    }

    .qamar-card-grid,
    .qamar-level-grid,
    .qamar-price-grid,
    .qamar-class-grid,
    .qamar-contact-grid,
    .qamar-stats,
    .qamar-steps,
    .qamar-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qamar-steps-panel,
    .qamar-cta-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .qamar-logo {
        gap: 0.6rem;
    }

    .qamar-logo-text {
        max-width: 46vw;
        font-size: 0.9rem;
    }

    .qamar-nav-cta {
        min-height: 42px;
        padding: 0.78rem 0.9rem;
        font-size: 0.86rem;
    }

    .qamar-display {
        font-size: clamp(3rem, 18vw, 4.4rem);
    }

    .qamar-card-grid,
    .qamar-level-grid,
    .qamar-price-grid,
    .qamar-class-grid,
    .qamar-contact-grid,
    .qamar-stats,
    .qamar-steps,
    .qamar-footer-grid,
    .qamar-gallery {
        grid-template-columns: 1fr;
    }

    .qamar-gallery-card-large {
        grid-row: auto;
        min-height: 260px;
    }

    .qamar-hero-visual {
        min-height: 430px;
        border-radius: 28px;
    }

    .qamar-hero-image,
    .qamar-arch-scene {
        height: 300px;
        min-height: 300px;
    }

    .qamar-hero-panel {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        padding: 1.1rem;
    }

    .qamar-section {
        padding-block: 3rem;
    }
}

.public-register-hero {
    padding: 7rem 0 4rem;
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--school-secondary) 42%, transparent), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), #fbf8f2);
}

.public-register-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 2rem;
    align-items: center;
}

.public-register-kicker {
    color: var(--school-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.public-register-hero h1,
.public-register-confirm h1 {
    color: var(--school-primary);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 1rem;
}

.public-register-hero p {
    color: #5f6f8a;
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 720px;
}

.public-register-year {
    color: var(--school-primary) !important;
    font-weight: 800;
}

.public-register-section {
    padding: 4rem 0 5rem;
    background: #fffdfa;
}

.public-register-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(91, 58, 112, 0.12);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(38, 28, 56, 0.10);
    padding: clamp(1.4rem, 3vw, 2.5rem);
}

.public-register-card-soft span,
.public-register-reference span {
    color: var(--school-accent);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.public-register-card-soft strong,
.public-register-reference strong {
    color: var(--school-primary);
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    line-height: 1;
    margin: 0.5rem 0;
}

.public-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
}

.public-form-span {
    grid-column: 1 / -1;
}

.public-register-form label {
    color: var(--school-primary);
    font-weight: 800;
}

.public-register-form .form-control,
.public-register-form .form-select {
    border-color: rgba(91, 58, 112, 0.16);
    border-radius: 18px;
    min-height: 48px;
}

.public-old-student-search {
    background: color-mix(in srgb, var(--school-secondary) 18%, #fff);
    border: 1px solid rgba(91, 58, 112, 0.10);
    border-radius: 20px;
    padding: 1rem;
}

.public-old-student-results {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.public-old-student-item {
    background: #fff;
    border: 1px solid rgba(91, 58, 112, 0.12);
    border-radius: 14px;
    color: var(--school-primary);
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem 0.9rem;
    text-align: left;
}

.public-old-student-item span {
    color: #6a7285;
    font-size: 0.9rem;
}

.public-register-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.8rem;
}

.public-register-submit,
.public-register-link {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    padding: 0.9rem 1.4rem;
    text-decoration: none;
}

.public-register-submit {
    background: var(--school-primary);
    border: 0;
    color: #fff;
}

.public-register-link {
    color: var(--school-primary);
}

.public-register-confirm {
    min-height: 70vh;
}

.public-register-confirm-box {
    max-width: 760px;
    text-align: center;
}

.public-register-reference {
    background: #fff;
    border: 1px solid rgba(91, 58, 112, 0.12);
    border-radius: 24px;
    margin: 1.5rem auto 0;
    max-width: 420px;
    padding: 1.4rem;
}

.public-register-reference-light {
    background: color-mix(in srgb, var(--school-secondary) 30%, #fff);
}

.public-register-actions-center {
    justify-content: center;
}

@media (max-width: 767.98px) {
    .public-register-hero-grid,
    .public-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Phase UX inscription publique */
.public-choice-panel,
.public-form-shell,
.public-old-flow {
    margin-bottom: 1.35rem;
}
.public-choice-panel {
    padding: clamp(1.4rem, 3vw, 2.4rem);
    border: 1px solid rgba(91, 58, 112, .14);
    border-radius: 32px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 20px 60px rgba(91, 58, 112, .08);
}
.public-choice-intro h2,
.public-form-section-heading h2 {
    margin: .25rem 0 .45rem;
    color: var(--school-primary);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
}
.public-choice-intro p,
.public-form-section-heading p { color: #6a7285; max-width: 48rem; }
.public-choice-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}
.public-choice-card {
    text-align: left;
    border: 1px solid rgba(91, 58, 112, .16);
    border-radius: 24px;
    padding: 1.35rem;
    background: linear-gradient(135deg, #fff, rgba(233,199,216,.22));
    color: var(--school-primary);
    box-shadow: 0 16px 38px rgba(91, 58, 112, .07);
    cursor: pointer;
}
.public-choice-card span {
    width: 2.2rem; height: 2.2rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; background: color-mix(in srgb, var(--school-secondary) 55%, #fff); font-weight: 900;
}
.public-choice-card strong { display: block; margin-top: .8rem; font-size: 1.2rem; }
.public-choice-card small { display: block; margin-top: .35rem; color: #6a7285; }
.public-choice-card.is-selected { border-color: var(--school-primary); box-shadow: 0 20px 48px rgba(91, 58, 112, .16); }
.public-form-section-heading { margin-bottom: 1.15rem; }
.public-form-section-heading span { color: var(--school-primary); text-transform: uppercase; font-weight: 900; font-size: .78rem; }
.public-form-section-spacing { margin-top: 2rem; }
.public-form-choice-hidden { display: none; }
.public-form-grid-soft { padding: 1rem; border-radius: 24px; background: color-mix(in srgb, var(--school-secondary) 12%, #fff); border: 1px solid rgba(91,58,112,.08); }
.public-old-student-empty,
.public-old-student-selected {
    padding: .8rem 1rem; border-radius: 16px; background: rgba(255,255,255,.78); color: var(--school-primary); font-weight: 800;
}
.public-register-form input[readonly] { opacity: .88; cursor: not-allowed; }
@media (max-width: 860px) { .public-choice-cards { grid-template-columns: 1fr; } }
