:root {
    --navy: #071b3f;
    --navy-2: #0b285b;
    --blue: #1261d8;
    --blue-dark: #084cae;
    --gold: #e7b54b;
    --ink: #172033;
    --muted: #66748a;
    --line: #dce4ef;
    --soft: #f5f8fc;
    --white: #ffffff;
    --danger: #b42318;
    --success: #087443;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--ink);
    background: var(--soft);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    background: var(--navy);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

.exam-header {
    position: relative;
    z-index: 10;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px clamp(20px, 5vw, 72px);
    background: #fff;
    border-bottom: 1px solid #e8edf4;
}

.exam-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--navy);
    text-decoration: none;
}

.exam-brand img {
    display: block;
}

.exam-brand span {
    display: grid;
    gap: 1px;
}

.exam-brand strong {
    font-size: 1rem;
    letter-spacing: -.01em;
}

.exam-brand small {
    color: var(--muted);
    font-size: .76rem;
}

.school-link {
    color: var(--blue-dark);
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
}

.school-link:hover {
    text-decoration: underline;
}

.exam-shell {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(420px, .92fr);
}

.exam-story {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 760px;
    padding:
        clamp(48px, 7vw, 100px)
        clamp(32px, 7vw, 110px);
    color: #fff;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(25, 104, 224, .45),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            var(--navy) 0%,
            #082657 55%,
            #0c3979 100%
        );
}

.exam-story::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: -160px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255,255,255,.025),
        0 0 0 140px rgba(255,255,255,.018);
}

.story-content {
    position: relative;
    z-index: 2;
    width: min(650px, 100%);
}

.product-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.product-pill span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(231,181,75,.15);
}

.exam-story h1 {
    margin: 25px 0 20px;
    max-width: 620px;
    font-size: clamp(2.8rem, 5.2vw, 5.4rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.exam-story h1 strong {
    display: block;
    margin-top: 9px;
    color: #f1c968;
    font-weight: 850;
}

.story-lead {
    max-width: 600px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    line-height: 1.7;
}

.benefits {
    display: grid;
    gap: 17px;
    margin-top: 38px;
}

.benefits article {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 13px;
    align-items: start;
}

.benefit-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ffe3a0;
    background: rgba(231,181,75,.13);
    border: 1px solid rgba(231,181,75,.25);
    font-weight: 900;
}

.benefits strong {
    display: block;
    margin: 1px 0 3px;
    font-size: .98rem;
}

.benefits p {
    margin: 0;
    color: rgba(255,255,255,.67);
    font-size: .88rem;
    line-height: 1.55;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 35px;
    color: rgba(255,255,255,.7);
    font-size: .78rem;
    font-weight: 700;
}

.trust-row span::before {
    content: "✓";
    margin-right: 6px;
    color: #f0c65e;
}

.student-visual {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(31%, 300px);
    opacity: .2;
    mask-image:
        linear-gradient(
            to top,
            #000 45%,
            transparent 100%
        );
}

.student-visual img {
    display: block;
    width: 100%;
}

.account-area {
    display: grid;
    align-content: center;
    justify-items: center;
    padding:
        clamp(35px, 6vw, 80px)
        clamp(20px, 6vw, 76px);
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(18,97,216,.08),
            transparent 30%
        ),
        #f7f9fc;
}

.account-card {
    width: min(480px, 100%);
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid #e1e7f0;
    border-radius: 24px;
    background: #fff;
    box-shadow:
        0 24px 70px rgba(17, 36, 70, .10);
}

.account-heading {
    margin-bottom: 24px;
}

.eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--blue);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.account-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    letter-spacing: -.035em;
}

.account-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.55;
}

.account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 25px;
    padding: 5px;
    border-radius: 12px;
    background: #eef3f9;
}

.account-tab {
    border: 0;
    border-radius: 9px;
    padding: 11px 12px;
    color: #66748a;
    background: transparent;
    font-size: .88rem;
    font-weight: 800;
}

.account-tab.active {
    color: var(--navy);
    background: #fff;
    box-shadow: 0 3px 12px rgba(24,44,79,.08);
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
    color: #28364c;
    font-size: .84rem;
    font-weight: 750;
}

.field > span:first-child {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.field small {
    color: #8b96a8;
    font-size: .72rem;
    font-weight: 600;
}

.field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cfd9e7;
    border-radius: 11px;
    outline: none;
    color: var(--ink);
    background: #fff;
    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}

.field input::placeholder {
    color: #9aa6b7;
}

.field input:focus {
    border-color: #4d8de7;
    box-shadow: 0 0 0 4px rgba(18,97,216,.10);
}

.password-shell {
    position: relative;
    display: block;
}

.password-shell input {
    padding-right: 72px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    padding: 7px 8px;
    color: var(--blue-dark);
    background: transparent;
    font-size: .76rem;
    font-weight: 800;
}

.password-toggle:hover {
    background: #eef4fc;
}

.password-note {
    margin: -4px 0 16px;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.5;
}

.submit-button {
    width: 100%;
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 5px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #1261d8,
            #084cae
        );
    box-shadow: 0 10px 24px rgba(18,97,216,.22);
    font-weight: 850;
}

.submit-button:hover {
    filter: brightness(1.04);
}

.submit-button:disabled {
    cursor: wait;
    opacity: .7;
}

.form-message {
    margin-bottom: 17px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: .82rem;
    line-height: 1.45;
}

.form-message.error {
    color: var(--danger);
    border: 1px solid #f2c8c4;
    background: #fff4f3;
}

.form-message.success {
    color: var(--success);
    border: 1px solid #b9e2ce;
    background: #effbf5;
}

.account-footer {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-top: 22px;
    padding-top: 19px;
    border-top: 1px solid #edf0f4;
}

.account-footer .lock {
    color: var(--gold);
    font-size: .65rem;
    transform: translateY(5px) rotate(45deg);
}

.account-footer p {
    margin: 0;
    color: #7b8799;
    font-size: .74rem;
    line-height: 1.5;
}

.candidate-note {
    width: min(470px, 100%);
    margin: 20px 0 0;
    color: #758196;
    text-align: center;
    font-size: .77rem;
    line-height: 1.55;
}

[hidden] {
    display: none !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(18,97,216,.28);
    outline-offset: 2px;
}

@media (max-width: 980px) {
    .exam-shell {
        grid-template-columns: 1fr;
    }

    .exam-story {
        min-height: auto;
        padding: 55px clamp(22px, 7vw, 70px);
    }

    .exam-story h1 {
        max-width: 720px;
        font-size: clamp(2.7rem, 8vw, 4.6rem);
    }

    .story-lead {
        max-width: 680px;
    }

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

    .benefits article {
        grid-template-columns: 1fr;
    }

    .student-visual {
        display: none;
    }

    .account-area {
        padding-top: 55px;
        padding-bottom: 60px;
    }
}

@media (max-width: 650px) {
    .exam-header {
        min-height: 68px;
        padding: 10px 17px;
    }

    .exam-brand img {
        width: 42px;
        height: 42px;
    }

    .exam-brand small {
        display: none;
    }

    .school-link {
        font-size: .8rem;
    }

    .exam-story {
        padding: 42px 20px 45px;
    }

    .exam-story h1 {
        margin-top: 20px;
        font-size: clamp(2.45rem, 13vw, 3.5rem);
    }

    .story-lead {
        font-size: .96rem;
    }

    .benefits {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 30px;
    }

    .benefits article {
        grid-template-columns: 36px 1fr;
    }

    .trust-row {
        margin-top: 27px;
    }

    .account-area {
        padding: 26px 14px 45px;
    }

    .account-card {
        padding: 25px 20px;
        border-radius: 19px;
    }
}

@media (max-width: 380px) {
    .exam-brand strong {
        font-size: .88rem;
    }

    .school-link {
        font-size: .72rem;
    }

    .product-pill {
        font-size: .68rem;
    }

    .account-card {
        padding-inline: 17px;
    }
}

/* =========================================================
   COMMERCIAL-P4B — SELECTED EXAM PREP PLAN
   ========================================================= */

.selected-plan-panel {
    width: min(100%, 620px);
    margin: 0 auto 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #d7e3f4;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #f7fbff 0%,
            #fffaf0 100%
        );
    box-shadow: 0 12px 35px rgba(7, 26, 61, .07);
}

.selected-plan-panel[hidden] {
    display: none;
}

.selected-plan-panel > div:first-child {
    display: grid;
    gap: 4px;
}

.selected-plan-eyebrow {
    color: #0c55c7;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.selected-plan-panel strong {
    color: #071a3d;
}

.selected-plan-panel #selectedPlanAccess {
    color: #687386;
    font-size: .88rem;
}

.selected-plan-side {
    display: grid;
    gap: 5px;
    text-align: right;
    white-space: nowrap;
}

.selected-plan-side strong {
    font-size: 1.35rem;
}

.selected-plan-side a {
    color: #0c55c7;
    font-size: .82rem;
    font-weight: 800;
}

@media (max-width: 620px) {
    .selected-plan-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .selected-plan-side {
        width: 100%;
        text-align: left;
    }
}

/* R3I.14-R7B — Exam Prep payment provider selector */

.exam-payment-method {
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 18px;
    background: #f4f6fb;
}

.exam-payment-method-head {
    margin-bottom: 14px;
}

.exam-payment-method-head strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
}

.exam-payment-method-head span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.88rem;
}

.exam-payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.exam-payment-option {
    appearance: none;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.exam-payment-option:hover {
    transform: translateY(-1px);
    border-color: #2563eb;
}

.exam-payment-option[aria-pressed="true"] {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.exam-payment-option:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 2px;
}

.exam-payment-option small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-weight: 500;
}

.exam-payment-provider-message {
    margin: 12px 0 0;
    color: #64748b;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 640px) {
    .exam-payment-options {
        grid-template-columns: 1fr;
    }
}
