/**
 * ==========================================================
 * S'gelaHub — Teacher Onboarding Experience
 * ==========================================================
 *
 * File:
 * assets/css/teacher-onboarding.css
 *
 * Purpose:
 * Public teacher-originated school onboarding request page.
 *
 * Important:
 * This is NOT an independent teacher registration screen.
 * It starts the school onboarding journey.
 * ==========================================================
 */

.sgh-teacher-onboarding {
    --sgh-teacher-blue: #2563eb;
    --sgh-teacher-blue-dark: #1d4ed8;
    --sgh-teacher-blue-soft: #eff6ff;

    --sgh-teacher-navy: #0f172a;
    --sgh-teacher-slate: #475569;
    --sgh-teacher-muted: #64748b;

    --sgh-teacher-success: #10b981;
    --sgh-teacher-danger: #dc2626;

    --sgh-teacher-white: #ffffff;
    --sgh-teacher-bg: #f8fafc;
    --sgh-teacher-border: #e2e8f0;

    --sgh-teacher-radius: 22px;
    --sgh-teacher-radius-lg: 32px;

    color: var(--sgh-teacher-navy);
    background: #fff;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

.sgh-teacher-onboarding *,
.sgh-teacher-onboarding *::before,
.sgh-teacher-onboarding *::after {
    box-sizing: border-box;
}

.sgh-teacher-onboarding a {
    text-decoration: none;
}

/* ==========================================================
   SHARED
========================================================== */

.sgh-teacher-eyebrow {
    display: inline-block;
    margin-bottom: 15px;

    color: var(--sgh-teacher-blue);

    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.15em;
    line-height: 1.3;
}

.sgh-teacher-section {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;

    padding: 100px 0;
}

.sgh-teacher-section__heading {
    max-width: 780px;
    margin: 0 auto 52px;

    text-align: center;
}

.sgh-teacher-section__heading h2 {
    margin: 0;

    color: var(--sgh-teacher-navy);

    font-size: clamp(34px, 5vw, 53px);
    font-weight: 850;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.sgh-teacher-section__heading p {
    margin: 20px auto 0;

    color: var(--sgh-teacher-slate);

    font-size: 16px;
    line-height: 1.8;
}

/* ==========================================================
   HERO
========================================================== */

.sgh-teacher-onboarding__hero {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.85fr);

    gap: 70px;
    align-items: center;

    min-height: 690px;

    padding:
        100px
        max(25px, calc((100vw - 1180px) / 2));

    overflow: hidden;

    color: #fff;

    background:
        radial-gradient(
            circle at 78% 20%,
            rgba(37, 99, 235, 0.24),
            transparent 30%
        ),
        radial-gradient(
            circle at 15% 75%,
            rgba(16, 185, 129, 0.10),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #020617 0%,
            #0f172a 55%,
            #172554 100%
        );
}

.sgh-teacher-onboarding__hero::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;

    height: 78px;

    background:
        linear-gradient(
            to bottom right,
            transparent 49%,
            #fff 50%
        );
}

.sgh-teacher-onboarding__hero-content {
    position: relative;
    z-index: 2;

    max-width: 700px;
}

.sgh-teacher-onboarding__hero .sgh-teacher-eyebrow {
    color: #93c5fd;
}

.sgh-teacher-onboarding__hero h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(48px, 6vw, 76px);
    font-weight: 850;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.sgh-teacher-onboarding__hero h1 span {
    display: block;

    color: #60a5fa;
}

.sgh-teacher-onboarding__hero-content > p {
    max-width: 630px;
    margin: 30px 0 0;

    color: #cbd5e1;

    font-size: 18px;
    line-height: 1.75;
}

.sgh-teacher-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;

    margin-top: 36px;
}

.sgh-teacher-hero-points span {
    display: grid;
    gap: 4px;

    color: #94a3b8;

    font-size: 11px;
}

.sgh-teacher-hero-points strong {
    color: #93c5fd;

    font-size: 11px;
    letter-spacing: 0.05em;
}

/* ==========================================================
   HERO VISUAL
========================================================== */

.sgh-teacher-onboarding__hero-visual {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 430px;
}

.sgh-teacher-journey-card {
    width: min(440px, 100%);
    padding: 32px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 29px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.045)
        );

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.32);

    backdrop-filter: blur(18px);

    transform: rotate(2deg);
}

.sgh-teacher-journey-card__header {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    color: #94a3b8;

    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.11em;
}

.sgh-teacher-journey-card__header span:last-child {
    color: #93c5fd;
}

.sgh-teacher-journey {
    display: flex;
    align-items: center;

    margin-top: 50px;
}

.sgh-teacher-journey__step {
    display: grid;
    justify-items: center;
    gap: 9px;

    color: #cbd5e1;

    font-size: 10px;
    text-align: center;
}

.sgh-teacher-journey__step span {
    display: grid;
    place-items: center;

    width: 49px;
    height: 49px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    font-size: 20px;
}

.sgh-teacher-journey__step.is-active span {
    border: 1px solid rgba(96, 165, 250, 0.45);

    background: rgba(37, 99, 235, 0.18);

    box-shadow:
        0 0 0 7px rgba(37, 99, 235, 0.08);
}

.sgh-teacher-journey__line {
    flex: 1;

    height: 2px;
    margin:
        0
        7px
        23px;

    background:
        linear-gradient(
            90deg,
            #60a5fa,
            #34d399
        );
}

/* ==========================================================
   MESSAGES
========================================================== */

.sgh-teacher-message {
    width: min(calc(100% - 40px), 1000px);

    position: relative;
    z-index: 5;

    display: flex;
    align-items: flex-start;
    gap: 15px;

    margin: -25px auto 0;
    padding: 19px 21px;

    border-radius: 17px;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08);
}

.sgh-teacher-message--success {
    border: 1px solid #a7f3d0;

    color: #065f46;
    background: #ecfdf5;
}

.sgh-teacher-message--error {
    border: 1px solid #fecaca;

    color: #991b1b;
    background: #fef2f2;
}

.sgh-teacher-message__icon {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 36px;
    height: 36px;

    border-radius: 10px;

    color: #fff;
    background: currentColor;

    font-size: 14px;
    font-weight: 850;
}

.sgh-teacher-message strong {
    font-size: 14px;
}

.sgh-teacher-message p {
    margin: 5px 0 0;

    color: inherit;

    font-size: 13px;
    line-height: 1.6;
}

/* ==========================================================
   BENEFITS
========================================================== */

.sgh-teacher-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.sgh-teacher-benefit {
    padding: 29px;

    border: 1px solid var(--sgh-teacher-border);
    border-radius: var(--sgh-teacher-radius);

    background: #fff;

    box-shadow:
        0 7px 24px rgba(15, 23, 42, 0.04);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.sgh-teacher-benefit:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.09);
}

.sgh-teacher-benefit > span {
    display: grid;
    place-items: center;

    width: 53px;
    height: 53px;
    margin-bottom: 22px;

    border-radius: 15px;

    background: var(--sgh-teacher-blue-soft);

    font-size: 22px;
}

.sgh-teacher-benefit h3 {
    margin: 0;

    font-size: 20px;
    letter-spacing: -0.025em;
}

.sgh-teacher-benefit p {
    margin: 12px 0 0;

    color: var(--sgh-teacher-slate);

    font-size: 13px;
    line-height: 1.75;
}

/* ==========================================================
   HOW IT WORKS
========================================================== */

.sgh-teacher-how {
    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );
}

.sgh-teacher-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 0;
}

.sgh-teacher-process__item {
    position: relative;

    padding: 30px;
}

.sgh-teacher-process__item + .sgh-teacher-process__item {
    border-left: 1px solid var(--sgh-teacher-border);
}

.sgh-teacher-process__item > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 37px;
    height: 37px;
    margin-bottom: 22px;

    border-radius: 11px;

    color: #1d4ed8;
    background: #dbeafe;

    font-size: 11px;
    font-weight: 850;
}

.sgh-teacher-process__item h3 {
    margin: 0;

    font-size: 19px;
    letter-spacing: -0.025em;
}

.sgh-teacher-process__item p {
    margin: 11px 0 0;

    color: var(--sgh-teacher-slate);

    font-size: 13px;
    line-height: 1.7;
}

/* ==========================================================
   FORM AREA
========================================================== */

.sgh-teacher-form-section {
    width: 100%;

    padding:
        100px
        max(14px, calc((100vw - 1180px) / 2));

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eef6ff
        );
}

.sgh-teacher-form-panel {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;

    overflow: hidden;

    border: 1px solid var(--sgh-teacher-border);
    border-radius: 34px;

    background: #fff;

    box-shadow:
        0 30px 85px rgba(15, 23, 42, 0.1);
}

.sgh-teacher-form-intro {
    padding: 56px 40px;

    color: #fff;

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(59, 130, 246, 0.2),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #020617,
            #172554
        );
}

.sgh-teacher-form-intro .sgh-teacher-eyebrow {
    color: #93c5fd;
}

.sgh-teacher-form-intro h2 {
    margin: 0;

    color: #fff;

    font-size: clamp(34px, 4vw, 49px);
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.sgh-teacher-form-intro > p {
    margin: 20px 0 0;

    color: #cbd5e1;

    font-size: 14px;
    line-height: 1.75;
}

.sgh-teacher-form-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 36px;
    padding: 17px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.05);
}

.sgh-teacher-form-note > span {
    flex: 0 0 auto;

    font-size: 19px;
}

.sgh-teacher-form-note p {
    margin: 0;

    color: #cbd5e1;

    font-size: 11px;
    line-height: 1.7;
}

.sgh-teacher-form-shell {
    padding: 48px;
}

.sgh-teacher-form {
    margin: 0;
}

.sgh-teacher-form-section {
    position: relative;

    padding-left: 46px;
    padding-bottom: 35px;
}

.sgh-teacher-form-section + .sgh-teacher-form-section {
    padding-top: 35px;

    border-top: 1px solid var(--sgh-teacher-border);
}

.sgh-teacher-form-number {
    position: absolute;
    top: 0;
    left: 0;

    display: grid;
    place-items: center;

    width: 31px;
    height: 31px;

    border-radius: 10px;

    color: #1d4ed8;
    background: var(--sgh-teacher-blue-soft);

    font-size: 10px;
    font-weight: 850;
}

.sgh-teacher-form-section h3 {
    margin: 0;

    font-size: 20px;
    letter-spacing: -0.025em;
}

.sgh-teacher-form-section > div > p {
    margin: 5px 0 0;

    color: var(--sgh-teacher-muted);

    font-size: 12px;
}

.sgh-teacher-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;

    margin-top: 22px;
}

.sgh-teacher-field {
    display: grid;
    gap: 8px;
}

.sgh-teacher-field--full {
    grid-column: 1 / -1;
}

.sgh-teacher-field label {
    color: var(--sgh-teacher-navy);

    font-size: 12px;
    font-weight: 750;
}

.sgh-teacher-field input,
.sgh-teacher-field select,
.sgh-teacher-field textarea {
    width: 100%;

    min-height: 50px;
    padding: 13px 14px;

    border: 1px solid #cbd5e1;
    border-radius: 13px;

    color: var(--sgh-teacher-navy);
    background: #fff;

    font: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.sgh-teacher-field textarea {
    min-height: 125px;

    resize: vertical;
}

.sgh-teacher-field input::placeholder,
.sgh-teacher-field textarea::placeholder {
    color: #94a3b8;
}

.sgh-teacher-field input:focus,
.sgh-teacher-field select:focus,
.sgh-teacher-field textarea:focus {
    border-color: var(--sgh-teacher-blue);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* ==========================================================
   RADIO / CHOICE CARDS
========================================================== */

.sgh-teacher-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;

    margin-top: 22px;
}

.sgh-teacher-choice {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 11px;

    padding: 16px;

    border: 1px solid var(--sgh-teacher-border);
    border-radius: 15px;

    cursor: pointer;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.sgh-teacher-choice:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.sgh-teacher-choice input {
    margin-top: 2px;
    accent-color: var(--sgh-teacher-blue);
}

.sgh-teacher-choice span {
    display: grid;
    gap: 5px;
}

.sgh-teacher-choice strong {
    font-size: 13px;
}

.sgh-teacher-choice small {
    color: var(--sgh-teacher-muted);

    font-size: 10px;
    line-height: 1.5;
}

.sgh-teacher-choice:has(input:checked) {
    border-color: #93c5fd;

    background: var(--sgh-teacher-blue-soft);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.06);
}

/* ==========================================================
   FORM ACTIONS
========================================================== */

.sgh-teacher-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-top: 30px;

    border-top: 1px solid var(--sgh-teacher-border);
}

/*
 * S'gelaHub action spacing standard.
 */
.sgh-teacher-form-actions,
.sgh-teacher-form-actions > * + * {
    gap: 12px;
}

.sgh-teacher-security-note {
    display: flex;
    align-items: center;
    gap: 9px;

    max-width: 285px;
}

.sgh-teacher-security-note p {
    margin: 0;

    color: var(--sgh-teacher-muted);

    font-size: 10px;
    line-height: 1.55;
}

.sgh-teacher-submit,
.sgh-teacher-presentation-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 55px;
    padding: 15px 23px;

    border-radius: 15px;

    font: inherit;
    font-size: 14px;
    font-weight: 800;

    transition:
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.sgh-teacher-submit {
    border: 0;

    color: #fff;
    background: var(--sgh-teacher-blue);

    cursor: pointer;

    box-shadow:
        0 12px 28px rgba(37, 99, 235, 0.25);
}

.sgh-teacher-submit:hover,
.sgh-teacher-presentation-link:hover {
    transform: translateY(-2px);

    background: var(--sgh-teacher-blue-dark);

    box-shadow:
        0 17px 35px rgba(37, 99, 235, 0.3);
}

.sgh-teacher-submit:focus-visible,
.sgh-teacher-presentation-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 4px;
}

/* ==========================================================
   PRESENTATION CTA
========================================================== */

.sgh-teacher-presentation-cta {
    padding:
        105px
        25px;

    text-align: center;

    color: #fff;

    background:
        radial-gradient(
            circle at 50% 0,
            rgba(37, 99, 235, 0.22),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #020617,
            #172554
        );
}

.sgh-teacher-presentation-cta .sgh-teacher-eyebrow {
    color: #93c5fd;
}

.sgh-teacher-presentation-cta h2 {
    max-width: 850px;
    margin: 0 auto;

    color: #fff;

    font-size: clamp(35px, 5vw, 56px);
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.sgh-teacher-presentation-cta p {
    max-width: 700px;
    margin: 20px auto 0;

    color: #cbd5e1;

    font-size: 15px;
    line-height: 1.75;
}

.sgh-teacher-presentation-link {
    margin-top: 29px;

    color: var(--sgh-teacher-navy);
    background: #fff;

    box-shadow:
        0 15px 38px rgba(0, 0, 0, 0.2);
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 1050px) {

    .sgh-teacher-onboarding__hero {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .sgh-teacher-onboarding__hero-content {
        max-width: 760px;
        margin-inline: auto;
    }

    .sgh-teacher-onboarding__hero-content > p {
        margin-inline: auto;
    }

    .sgh-teacher-hero-points {
        justify-content: center;
    }

    .sgh-teacher-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .sgh-teacher-process {
        grid-template-columns: repeat(2, 1fr);
    }

    .sgh-teacher-process__item:nth-child(odd) {
        border-left: 0;
    }

    .sgh-teacher-process__item:nth-child(n + 3) {
        border-top: 1px solid var(--sgh-teacher-border);
    }

    .sgh-teacher-form-panel {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .sgh-teacher-section {
        width: min(calc(100% - 28px), 1180px);

        padding: 75px 0;
    }

    .sgh-teacher-onboarding__hero {
        padding:
            65px
            18px
            105px;
    }

    .sgh-teacher-onboarding__hero h1 {
        font-size: clamp(43px, 13vw, 62px);
    }

    .sgh-teacher-onboarding__hero-content > p {
        font-size: 16px;
    }

    .sgh-teacher-hero-points {
        display: grid;
        grid-template-columns: 1fr;

        text-align: left;
    }

    .sgh-teacher-onboarding__hero-visual {
        min-height: 350px;
    }

    .sgh-teacher-journey-card {
        width: min(340px, 100%);
        padding: 24px;
    }

    .sgh-teacher-benefits,
    .sgh-teacher-process {
        grid-template-columns: 1fr;
    }

    .sgh-teacher-process__item + .sgh-teacher-process__item {
        border-top: 1px solid var(--sgh-teacher-border);
        border-left: 0;
    }

    .sgh-teacher-form-section {
        padding:
            70px
            14px;
    }

    .sgh-teacher-form-intro,
    .sgh-teacher-form-shell {
        padding: 32px 22px;
    }

    .sgh-teacher-form-section {
        padding-left: 43px;
    }

    .sgh-teacher-fields,
    .sgh-teacher-choice-grid {
        grid-template-columns: 1fr;
    }

    .sgh-teacher-field--full {
        grid-column: auto;
    }

    .sgh-teacher-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sgh-teacher-security-note {
        max-width: none;
    }

    .sgh-teacher-submit {
        width: 100%;
    }

    .sgh-teacher-message {
        width: min(calc(100% - 28px), 1000px);
    }

}

@media (prefers-reduced-motion: reduce) {

    .sgh-teacher-onboarding *,
    .sgh-teacher-onboarding *::before,
    .sgh-teacher-onboarding *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

}

/* ==========================================================
   KARABO / SCHOOL CONVERSATION CALLOUT
========================================================== */
.sgh-teacher-karabo-callout{
    width:min(calc(100% - 30px),1180px);
    margin:0 auto 25px;
    display:grid;
    grid-template-columns:130px 1fr;
    gap:26px;
    align-items:center;
    padding:30px;
    border:1px solid rgba(37,99,235,.14);
    border-radius:24px;
    background:linear-gradient(135deg,#eff7ff,#ffffff 70%);
    box-shadow:0 18px 42px rgba(14,65,120,.08);
}
.sgh-teacher-karabo-callout__avatar img{
    display:block;
    width:130px;
    height:130px;
    object-fit:cover;
    border-radius:50%;
    box-shadow:0 12px 28px rgba(18,63,117,.18);
}
.sgh-teacher-karabo-callout h2{margin:0;font-size:clamp(27px,3vw,42px);letter-spacing:-.04em;line-height:1.08}
.sgh-teacher-karabo-callout p{max-width:780px;margin:13px 0 18px;color:var(--sgh-teacher-muted);line-height:1.7}
@media(max-width:700px){.sgh-teacher-karabo-callout{grid-template-columns:1fr;text-align:center;padding:26px 20px}.sgh-teacher-karabo-callout__avatar{justify-self:center}.sgh-teacher-karabo-callout__avatar img{width:105px;height:105px}}
