/**
 * ==========================================================
 * S'gelaHub — Principal Registration Experience
 * ==========================================================
 */

.sgh-principal-registration {
    --sgh-pr-blue: #2563eb;
    --sgh-pr-blue-dark: #1d4ed8;
    --sgh-pr-blue-soft: #eff6ff;

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

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

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

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

    --sgh-pr-shadow:
        0 22px 60px rgba(15, 23, 42, 0.08);

    color: var(--sgh-pr-navy);
    background: var(--sgh-pr-white);

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

.sgh-principal-registration *,
.sgh-principal-registration *::before,
.sgh-principal-registration *::after {
    box-sizing: border-box;
}

/* ==========================================================
   Shared
========================================================== */

.sgh-principal-section {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
    padding: 105px 0;
}

.sgh-principal-section--compact {
    padding-top: 80px;
}

.sgh-principal-eyebrow {
    display: inline-block;
    margin-bottom: 16px;

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

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

.sgh-principal-section__heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.sgh-principal-section__heading h2,
.sgh-principal-final h2 {
    margin: 0;

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

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

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

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

/* ==========================================================
   Hero
========================================================== */

.sgh-principal-hero {
    position: relative;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(400px, 0.8fr);

    gap: 65px;
    align-items: center;

    min-height: 700px;

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

    overflow: hidden;

    color: #fff;

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

.sgh-principal-hero::after {
    content: "";

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

    height: 80px;

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

.sgh-principal-hero__content {
    position: relative;
    z-index: 2;

    max-width: 680px;
}

.sgh-principal-hero h1 {
    margin: 0;

    color: #fff;

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

.sgh-principal-hero h1 span {
    display: block;
    color: #60a5fa;
}

.sgh-principal-hero__lead {
    max-width: 640px;
    margin: 30px 0 0;

    color: #cbd5e1;

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

.sgh-principal-hero__trust {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 14px;

    margin-top: 36px;
}

.sgh-principal-hero__trust span {
    display: grid;
    gap: 4px;

    padding-right: 22px;

    color: #94a3b8;

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

.sgh-principal-hero__trust strong {
    color: #93c5fd;

    font-size: 12px;
}

.sgh-principal-hero__visual {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 450px;
}

.sgh-principal-hero-card {
    width: min(430px, 92%);
    padding: 32px;

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

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

    box-shadow:
        0 35px 85px rgba(0, 0, 0, 0.3);

    backdrop-filter: blur(18px);

    transform: rotate(2deg);
}

.sgh-principal-hero-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sgh-principal-hero-card__icon {
    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    border-radius: 16px;

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

    font-size: 23px;
}

.sgh-principal-hero-card__status {
    color: #93c5fd;

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

.sgh-principal-hero-card h2 {
    margin: 32px 0 0;

    color: #fff;

    font-size: 29px;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

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

    margin-top: 34px;
}

.sgh-principal-journey__item {
    display: grid;
    justify-items: center;
    gap: 8px;

    color: #cbd5e1;

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

.sgh-principal-journey__item span {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;

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

    font-size: 17px;
}

.sgh-principal-journey__line {
    flex: 1;

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

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

/* ==========================================================
   Messages
========================================================== */

.sgh-registration-message {
    width: min(calc(100% - 40px), 1000px);
    margin: -25px auto 0;

    position: relative;
    z-index: 5;

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

    padding: 20px 22px;

    border-radius: 18px;

    box-shadow: var(--sgh-pr-shadow);
}

.sgh-registration-message--success {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.sgh-registration-message--error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

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

    flex: 0 0 auto;

    width: 37px;
    height: 37px;

    border-radius: 11px;

    background: currentColor;

    color: #fff;

    font-weight: 850;
}

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

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

    color: inherit;

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

/* ==========================================================
   Benefits
========================================================== */

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

.sgh-principal-benefit-card {
    padding: 30px;

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

    background: #fff;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.045);

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

.sgh-principal-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sgh-pr-shadow);
}

.sgh-principal-benefit-card__icon {
    display: grid;
    place-items: center;

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

    border-radius: 15px;

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

    font-size: 22px;
}

.sgh-principal-benefit-card__label {
    display: block;
    margin-bottom: 10px;

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

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

.sgh-principal-benefit-card h3 {
    margin: 0;

    font-size: 21px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.sgh-principal-benefit-card p {
    margin: 13px 0 0;

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

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

/* ==========================================================
   Value Section
========================================================== */

.sgh-principal-value-section {
    width: min(calc(100% - 40px), 1180px);
    margin: 0 auto;
    padding: 100px 0;
}

.sgh-principal-value {
    display: grid;
    grid-template-columns: 1fr 0.9fr;

    gap: 75px;
    align-items: center;

    padding: 70px;

    border-radius: var(--sgh-pr-radius-lg);

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

.sgh-principal-value__content h2 {
    max-width: 670px;

    margin: 0;

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

.sgh-principal-value__content > p {
    max-width: 590px;
    margin: 22px 0 0;

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

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

.sgh-principal-check-list {
    display: grid;
    gap: 13px;

    margin-top: 28px;
}

.sgh-principal-check-list div {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 14px;
}

.sgh-principal-check-list span {
    display: grid;
    place-items: center;

    width: 25px;
    height: 25px;

    border-radius: 50%;

    color: #fff;
    background: var(--sgh-pr-success);

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

.sgh-principal-insight-card {
    padding: 28px;

    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;

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

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

.sgh-principal-insight-card__header,
.sgh-principal-insight-card__score {
    display: flex;
    justify-content: space-between;
}

.sgh-principal-insight-card__header {
    color: var(--sgh-pr-muted);

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

.sgh-principal-insight-card__header span:last-child {
    color: var(--sgh-pr-success);
}

.sgh-principal-insight-card__score {
    align-items: end;

    margin-top: 35px;
}

.sgh-principal-insight-card__score strong {
    font-size: 25px;
    letter-spacing: -0.03em;
}

.sgh-principal-insight-card__score span {
    color: var(--sgh-pr-success);

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

.sgh-principal-insight-bars {
    display: flex;
    align-items: end;
    gap: 12px;

    height: 150px;
    margin-top: 25px;
}

.sgh-principal-insight-bars span {
    width: 100%;

    height: var(--sgh-bar);

    border-radius: 8px 8px 3px 3px;

    background:
        linear-gradient(
            to top,
            #2563eb,
            #60a5fa
        );
}

.sgh-principal-insight-card small {
    display: block;
    margin-top: 18px;

    color: var(--sgh-pr-muted);
}

/* ==========================================================
   Revenue
========================================================== */

.sgh-principal-revenue-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    overflow: hidden;

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

    background: #fff;
}

.sgh-principal-revenue-card__item {
    display: flex;
    gap: 16px;

    padding: 30px;
}

.sgh-principal-revenue-card__item + .sgh-principal-revenue-card__item {
    border-left: 1px solid var(--sgh-pr-border);
}

.sgh-principal-revenue-card__item > span {
    color: #93c5fd;

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

.sgh-principal-revenue-card__item strong {
    display: block;

    font-size: 17px;
}

.sgh-principal-revenue-card__item p {
    margin: 8px 0 0;

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

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

.sgh-principal-revenue-note {
    max-width: 760px;
    margin: 22px auto 0;

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

    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

/* ==========================================================
   Registration
========================================================== */

.sgh-principal-registration-section {
    width: 100%;

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

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

.sgh-principal-registration-panel {
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;

    overflow: hidden;

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

    background: #fff;

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

.sgh-principal-registration-panel__intro {
    padding: 55px 42px;

    color: #fff;

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

.sgh-principal-registration-panel__intro h2 {
    margin: 0;

    color: #fff;

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

.sgh-principal-registration-panel__intro > p {
    margin: 20px 0 0;

    color: #cbd5e1;

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

.sgh-principal-registration-steps {
    display: grid;
    gap: 14px;

    margin-top: 42px;
}

.sgh-principal-registration-steps div {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #94a3b8;

    font-size: 12px;
}

.sgh-principal-registration-steps span {
    display: grid;
    place-items: center;

    width: 31px;
    height: 31px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;

    color: #94a3b8;

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

.sgh-principal-registration-steps .is-active {
    color: #fff;
}

.sgh-principal-registration-steps .is-active span {
    border-color: #60a5fa;
    color: #fff;
    background: #2563eb;
}

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

.sgh-form {
    margin: 0;
}

.sgh-form-section {
    padding: 0 0 34px;
}

.sgh-form-section + .sgh-form-section {
    padding-top: 34px;
    border-top: 1px solid var(--sgh-pr-border);
}

.sgh-form-section__heading {
    display: flex;
    gap: 15px;

    margin-bottom: 23px;
}

.sgh-form-section__heading > span {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 31px;
    height: 31px;

    border-radius: 10px;

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

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

.sgh-form-section__heading h3 {
    margin: 0;

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

.sgh-form-section__heading p {
    margin: 5px 0 0;

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

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

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

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

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

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

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

.sgh-form-field input,
.sgh-form-field select {
    width: 100%;
    min-height: 50px;

    padding: 13px 14px;

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

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

    font: inherit;
    font-size: 14px;

    outline: none;

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

.sgh-form-field input::placeholder {
    color: #94a3b8;
}

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

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

.sgh-payout-notice {
    display: flex;
    gap: 12px;

    margin-bottom: 20px;
    padding: 13px 15px;

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

    color: #1e3a8a;
    background: #eff6ff;
}

.sgh-payout-notice span {
    flex: 0 0 auto;
}

.sgh-payout-notice p {
    margin: 0;

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

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

    padding-top: 30px;

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

.sgh-principal-form-actions__assurance {
    display: flex;
    align-items: center;
    gap: 10px;

    max-width: 260px;
}

.sgh-principal-form-actions__assurance span {
    flex: 0 0 auto;
}

.sgh-principal-form-actions__assurance p {
    margin: 0;

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

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

/* ==========================================================
   Shared Action Spacing
========================================================== */

.sgh-principal-registration .sgh-card-actions,
.sgh-principal-registration .sgh-actions,
.sgh-principal-registration .sgh-action-group,
.sgh-principal-registration .sgh-principal-form-actions {
    gap: 12px;
}

/* ==========================================================
   Final
========================================================== */

.sgh-principal-final {
    padding:
        110px
        20px;

    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-principal-final .sgh-principal-eyebrow {
    color: #93c5fd;
}

.sgh-principal-final h2 {
    max-width: 850px;
    margin-inline: auto;

    color: #fff;
}

.sgh-principal-final p {
    max-width: 650px;
    margin: 22px auto 0;

    color: #cbd5e1;

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

/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 1050px) {

    .sgh-principal-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sgh-principal-hero__content {
        max-width: 760px;
        margin-inline: auto;
    }

    .sgh-principal-hero__lead {
        margin-inline: auto;
    }

    .sgh-principal-hero__trust {
        justify-content: center;
    }

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

    .sgh-principal-value {
        grid-template-columns: 1fr;
    }

    .sgh-principal-revenue-card {
        grid-template-columns: 1fr;
    }

    .sgh-principal-revenue-card__item + .sgh-principal-revenue-card__item {
        border-top: 1px solid var(--sgh-pr-border);
        border-left: 0;
    }

    .sgh-principal-registration-panel {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .sgh-principal-section,
    .sgh-principal-value-section {
        width: min(calc(100% - 28px), 1180px);
        padding: 75px 0;
    }

    .sgh-principal-hero {
        padding:
            65px
            18px
            105px;
    }

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

    .sgh-principal-hero__lead {
        font-size: 16px;
    }

    .sgh-principal-hero__trust {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .sgh-principal-hero__visual {
        min-height: 360px;
    }

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

    .sgh-principal-benefit-grid {
        grid-template-columns: 1fr;
    }

    .sgh-principal-value {
        gap: 45px;
        padding: 32px 24px;
        border-radius: 26px;
    }

    .sgh-principal-registration-section {
        padding:
            70px
            14px;
    }

    .sgh-principal-registration-panel__intro,
    .sgh-principal-form-shell {
        padding: 32px 22px;
    }

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

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

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

    .sgh-principal-form-actions .sgh-btn {
        width: 100%;
    }

    .sgh-principal-form-actions__assurance {
        max-width: none;
    }

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

}

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

    .sgh-principal-registration *,
    .sgh-principal-registration *::before,
    .sgh-principal-registration *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

}
/* =========================================================
   PRINCIPAL REGISTRATION WIZARD
   ========================================================= */
.sgh-principal-form .sgh-form-section[hidden] {
    display: none !important;
}

.sgh-principal-registration-steps > div {
    opacity: .55;
    transition: opacity .2s ease, transform .2s ease;
}

.sgh-principal-registration-steps > div.is-active {
    opacity: 1;
    transform: translateY(-1px);
}

.sgh-principal-registration-steps > div.is-complete {
    opacity: .85;
}

.sgh-principal-wizard-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sgh-principal-wizard-navigation .sgh-btn {
    min-width: 130px;
}

.sgh-principal-wizard-navigation .sgh-btn[hidden] {
    display: none;
}

.sgh-principal-form-actions > .sgh-principal-wizard-navigation {
    order: 2;
}

.sgh-principal-form-actions > .sgh-principal-form-actions__assurance {
    order: 1;
}

@media (max-width: 640px) {
    .sgh-principal-wizard-navigation {
        width: 100%;
    }

    .sgh-principal-wizard-navigation .sgh-btn {
        flex: 1 1 0;
        min-width: 0;
    }
}
