:root {
    --ink: #120060;
    --purple: #5832b8;
    --purple-dark: #40219d;
    --muted: #5b5865;
    --line: #c6c2cc;
    --page: #f0eef8;
    --white: #ffffff;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
}

a {
    color: var(--purple);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.auth-page {
    min-height: 100vh;
    background: var(--page);
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 80px 16px 10px;
}

.auth-shell {
    width: min(640px, 100%);
    background: transparent;
    display: flex;
    flex-direction: column;
}

.auth-card {
    width: 100%;
    min-height: 710px;
    margin: 0 auto;
    padding: 73px 40px 28px;
    background: var(--white);
    text-align: center;
}

.auth-card.compact {
    margin-top: 110px;
}

.brand-logo {
    display: block;
    width: 218px;
    height: auto;
    margin: 0 auto;
}

.brand-logo.small {
    width: 154px;
    margin: 0;
}

h1 {
    margin: 42px 0 0;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0;
}

.subtitle {
    margin: 0 0 31px;
    color: #171123;
    font-size: 17px;
}

.login-form {
    display: grid;
    gap: 30px;
    width: min(560px, 100%);
    margin: 0 auto;
}

.field {
    position: relative;
    text-align: left;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
    width: 100%;
    height: 63px;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 0 48px 0 16px;
    color: var(--ink);
    background: var(--white);
    font-size: 24px;
    outline: 0;
}

.field input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.animated-field input[type="text"],
.animated-field input[type="email"],
.animated-field input[type="password"] {
    transition: border-color .18s ease, box-shadow .18s ease;
}

.animated-field label {
    position: absolute;
    top: 18px;
    left: 16px;
    padding: 0 6px;
    background: #ffffff;
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
    pointer-events: none;
    transform-origin: left center;
    transition: top .16s ease, left .16s ease, color .16s ease, font-size .16s ease;
}

.animated-field input:focus {
    border: 2px solid var(--ink);
}

.animated-field input:focus + label,
.animated-field input:-webkit-autofill + label,
.animated-field input:not(:placeholder-shown) + label {
    top: -9px;
    left: 12px;
    color: var(--muted);
    font-size: 17px;
}

.standard-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 15px;
}

.password-toggle {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.password-toggle svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #858585;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle.is-visible .eye-slash {
    display: none;
}

.primary-button,
.secondary-button {
    width: min(336px, 100%);
    min-height: 60px;
    border-radius: 999px;
    font-size: 25px;
    font-weight: 700;
    justify-self: center;
}

.primary-button {
    display: inline-grid;
    place-items: center;
    margin-top: 6px;
    border: 0;
    color: var(--white);
    background: var(--purple);
    cursor: pointer;
    text-decoration: none;
}

.primary-button:hover {
    background: var(--purple-dark);
}

.secondary-button {
    display: inline-grid;
    place-items: center;
    border: 4px solid var(--purple);
    color: var(--ink);
    background: var(--white);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-top: -8px;
    color: #171123;
    font-size: 12px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.remember input {
    width: 19px;
    height: 19px;
}

.signup-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    width: min(336px, 100%);
    margin: 28px auto 18px;
}

.signup-divider span {
    height: 1px;
    background: #d3d0d8;
}

.signup-divider p {
    margin: 0;
    color: var(--purple);
    font-size: 16px;
}

.auth-footer {
    padding: 24px 20px 0;
    text-align: center;
    color: #171123;
    font-size: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-footer p {
    margin: 4px 0 0;
}

.form-error,
.field-error {
    color: var(--danger);
}

.form-error {
    margin: 20px 0 -4px;
    padding: 12px;
    border: 1px solid #f2b8b5;
    background: #fff3f2;
    border-radius: 4px;
    text-align: left;
}

.login-error-banner {
    width: 100%;
    min-height: 58px;
    display: grid;
    place-items: center;
    margin: -4px 0 2px;
    padding: 10px 16px;
    border: 2px solid #eb35df;
    border-radius: 4px;
    background: #ffffff;
    color: #1f1f28;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.field-error,
.help-text {
    margin: 6px 0 0;
    font-size: 12px;
}

.help-text {
    color: var(--muted);
}

.signup-form {
    gap: 18px;
}

.text-link {
    display: inline-block;
    margin-top: 22px;
}

.dashboard-page {
    min-height: 100vh;
    background: #f0eef8;
    color: var(--ink);
}

.portal-header {
    height: 68px;
    background: #120060;
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    align-items: center;
    padding: 0 72px;
    box-shadow: 0 2px 7px rgba(18, 0, 96, .35);
}

.portal-brand img {
    display: block;
    width: 126px;
    filter: brightness(0) invert(1);
}

.portal-nav {
    height: 100%;
    display: flex;
    justify-content: center;
    gap: 64px;
}

.portal-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: rgba(255, 255, 255, .64);
    font-size: 16px;
    font-weight: 700;
}

.portal-nav a.active {
    color: #ffffff;
}

.portal-nav a.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #ffd200;
}

.portal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.icon-link {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
}

.header-action-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.icon-link svg,
.resource-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-link {
    color: #ffffff;
}

.profile-button {
    width: 86px;
    height: 48px;
    padding: 0 5px 0 15px;
    border: 2px solid #d7d1ff;
    border-radius: 999px;
    background: #ffffff;
    color: #2f2560;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .18), 0 2px 5px rgba(18, 0, 96, .24);
}

.profile-initials {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #d8d1ff;
    color: #120060;
    font-size: 17px;
    line-height: 1;
}

.profile-menu-wrap {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    width: 362px;
    padding: 0;
    border: 2px solid #c9c0ff;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(18, 0, 96, .18);
    overflow: hidden;
}

.profile-summary {
    padding: 18px 24px 17px;
    color: #120060;
}

.profile-summary strong,
.profile-summary span {
    display: block;
}

.profile-summary strong {
    font-size: 19px;
    line-height: 1.15;
}

.profile-summary span {
    margin-top: 2px;
    font-size: 20px;
    line-height: 1.15;
}

.profile-menu-row {
    width: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 24px;
    border: 0;
    border-top: 2px solid #d7d1ff;
    background: transparent;
    color: #120060;
    cursor: pointer;
    font: inherit;
    font-size: 21px;
    text-align: left;
}

.profile-dropdown form {
    margin: 0;
}

.profile-row-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #5832b8;
}

.profile-row-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-menu-row:hover {
    background: #f0eef8;
    text-decoration: none;
}

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    justify-content: flex-end;
    background: rgba(18, 0, 96, .34);
}

.cart-panel {
    width: min(390px, 100%);
    height: 100%;
    padding: 30px;
    background: #ffffff;
    box-shadow: -12px 0 30px rgba(18, 0, 96, .2);
}

.cart-panel h2 {
    margin: 18px 0 26px;
    color: var(--ink);
    font-size: 30px;
    font-weight: 400;
}

.cart-panel p {
    margin: 0 0 26px;
    color: #171123;
    font-size: 17px;
}

.cart-close {
    float: right;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
}

.profile-dot {
    width: 10px;
    height: 10px;
    border: 1px solid #bfb9da;
    border-radius: 2px;
}

.profile-menu-icon {
    position: relative;
    width: 21px;
    height: 18px;
    flex: 0 0 auto;
}

.profile-menu-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 2px solid #120060;
    border-bottom: 2px solid #120060;
}

.profile-menu-icon::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 21px;
    border-top: 2px solid #120060;
}

.portal-shell {
    width: min(1296px, calc(100% - 48px));
    margin: 0 auto;
    padding: 20px 0 0;
}

.portal-shell > h1 {
    margin: 0 0 23px;
    text-align: center;
    font-size: 30px;
    font-weight: 400;
}

.prep-banner {
    min-height: 56px;
    display: grid;
    place-items: center;
    width: 100%;
    margin: 0 0 26px;
    background: #53d4d1;
    color: #120060;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
}

.prep-banner a {
    color: #120060;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.portal-grid {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.left-column,
.right-column {
    display: grid;
    gap: 18px;
}

.portal-card {
    background: #ffffff;
    border: 2px solid #bdb4ff;
    border-radius: 7px;
}

.portal-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0;
}

.portal-card h3,
.portal-card p {
    margin: 0;
}

.incomplete-card {
    min-height: 176px;
    padding: 18px 18px 22px;
}

.incomplete-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.incomplete-title h2 {
    font-size: 26px;
    font-weight: 700;
}

.incomplete-icon {
    width: 30px;
    height: 30px;
    color: #120060;
}

.incomplete-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.incomplete-icon rect {
    stroke: #f1a000;
}

.incomplete-card > p {
    margin-top: 24px;
    color: #171123;
    font-size: 16px;
}

.profile-steps {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 28px;
    padding-left: 16px;
    color: #171123;
    font-size: 16px;
    font-weight: 700;
}

.profile-steps span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-steps i {
    color: #f2b600;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
}

.profile-steps a {
    min-width: 194px;
    min-height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--purple);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.find-card {
    min-height: 558px;
    padding: 24px 32px 28px;
    text-align: center;
}

.globe-illustration {
    display: block;
    width: 176px;
    margin: 18px auto 4px;
}

.find-step {
    display: none;
}

.find-step.is-active {
    display: block;
}

.find-step > p {
    margin: 0 0 17px;
    color: #49464f;
    font-size: 14px;
}

.find-step .select-wrap {
    display: block;
    margin: 0 auto;
}

.find-next,
.book-test-button {
    width: min(274px, 100%);
    min-height: 36px;
    display: grid;
    place-items: center;
    margin: 54px auto 0;
    border: 0;
    border-radius: 999px;
    background: var(--purple);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.find-next:disabled {
    border: 2px solid #eceaf5;
    background: #ffffff;
    color: #b8b5be;
    cursor: default;
}

.test-result {
    margin: 34px 0 0 !important;
    color: #49464f;
    font-size: 16px !important;
}

.test-note {
    width: min(440px, 100%);
    margin: 16px auto 0 !important;
    color: #5a5660;
    font-size: 16px !important;
    line-height: 1.18;
}

.book-test-button {
    margin-top: 30px;
    text-decoration: none;
}

.country-form {
    display: grid;
    justify-items: center;
    gap: 54px;
}

.select-wrap {
    position: relative;
    width: min(384px, 100%);
}

.select-icon {
    position: absolute;
    top: 17px;
    left: 20px;
    z-index: 1;
    width: 30px;
    height: 26px;
    pointer-events: none;
}

.select-icon::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 4px;
    height: 4px;
    background: var(--purple);
    box-shadow: 0 9px 0 var(--purple), 0 18px 0 var(--purple);
}

.select-icon::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 10px;
    width: 23px;
    height: 3px;
    background: var(--purple);
    box-shadow: 0 9px 0 var(--purple), 0 18px 0 var(--purple);
}

.select-wrap::before {
    content: attr(data-label);
}

.select-wrap select {
    width: 100%;
    height: 64px;
    appearance: none;
    border: 2px solid var(--ink);
    border-radius: 4px;
    background: #ffffff;
    color: #4b4851;
    padding: 0 18px 0 62px;
    font-size: 25px;
}

.select-wrap::after {
    content: "Select country";
    position: absolute;
    top: -11px;
    left: 14px;
    padding: 0 6px;
    background: #ffffff;
    color: var(--purple);
    font-size: 16px;
    pointer-events: none;
}

[data-find-step="goal"] .select-wrap::after {
    content: "Select goal";
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 47px;
}

.carousel-dots span {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: #eceaf7;
}

.carousel-dots .active {
    background: var(--purple);
}

.find-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: #59555f;
    cursor: pointer;
    font-size: 16px;
}

.find-back span {
    color: #2c2840;
    font-size: 28px;
    line-height: 1;
}

.feedback-card {
    min-height: 322px;
    padding: 20px 32px 28px;
    text-align: center;
}

.feedback-card > p {
    margin-top: 22px;
    color: #45424b;
    font-size: 16px;
}

.feedback-illustration {
    width: 168px;
    margin: 18px auto 6px;
}

.outline-button {
    display: inline-grid;
    width: 274px;
    min-height: 38px;
    place-items: center;
    border: 3px solid #15045f;
    border-radius: 999px;
    color: #15045f;
    font-size: 16px;
    font-weight: 700;
}

.format-card {
    min-height: 356px;
    padding: 14px 18px 24px;
}

.format-card > p {
    margin: 18px 0 25px;
    color: #2c2932;
    font-size: 16px;
    line-height: 1.22;
}

.format-row {
    margin-top: 24px;
}

.format-row h3 {
    color: #2d2a33;
    font-size: 20px;
    font-weight: 400;
}

.format-row h3 a {
    margin-left: 18px;
    color: var(--purple);
    font-size: 16px;
    font-weight: 700;
}

.format-row p {
    margin-top: 3px;
    color: #2b2830;
    font-size: 16px;
}

.prepare-card {
    min-height: 445px;
    padding: 14px 18px 18px;
}

.resource-row {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 18px;
    margin-top: 28px;
}

.resource-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eeeaf8;
    color: var(--purple);
}

.resource-icon svg {
    width: 36px;
    height: 36px;
}

.resource-row h3 {
    color: #2b2830;
    font-size: 20px;
    font-weight: 400;
}

.resource-row p {
    margin-top: 6px;
    color: #25222b;
    font-size: 16px;
    line-height: 1.22;
}

.resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 12px;
}

.resource-links a {
    color: var(--purple);
    font-size: 16px;
    font-weight: 700;
}

.portal-footer {
    padding: 30px 20px 18px;
    text-align: center;
    color: #171123;
    font-size: 12px;
}

.portal-footer p {
    margin: 3px 0 0;
}

.fixed-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
}

.activity-shell {
    width: min(860px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: 24px;
    text-align: center;
}

.activity-shell h1 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
    font-weight: 400;
}

.activity-shell > p {
    margin: 11px 0 34px;
    color: #171123;
    font-size: 16px;
}

.activity-tabs,
.product-tabs,
.resource-product-tabs {
    display: flex;
    justify-content: center;
    gap: 46px;
}

.activity-tabs button,
.product-tabs button,
.resource-product-tabs button,
.learn-tabs a {
    position: relative;
    border: 0;
    background: transparent;
    color: #5b5865;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    padding: 0 0 14px;
}

.activity-tabs .active,
.product-tabs .active,
.resource-product-tabs .active,
.learn-tabs .active {
    color: #171123;
}

.activity-tabs .active::after,
.product-tabs .active::after,
.resource-product-tabs .active::after,
.learn-tabs .active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #ffd200;
}

.activity-section {
    margin-top: 48px;
}

.activity-section h2 {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: 28px;
    font-weight: 400;
}

.empty-activity {
    width: 455px;
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 22px;
    border: 2px solid #bdb4ff;
    border-radius: 7px;
    background: #ffffff;
    color: #171123;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.wide-empty {
    width: 455px;
}

.previous-test-list {
    display: grid;
    gap: 18px;
    justify-items: center;
}

.previous-test-card {
    width: 455px;
    max-width: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    border: 2px solid #bdb4ff;
    border-radius: 7px;
    background: #ffffff;
    overflow: hidden;
}

.previous-test-body {
    flex: 1;
    display: grid;
    align-content: center;
    gap: 13px;
    padding: 30px 26px;
    color: #4b4851;
    font-size: 16px;
}

.previous-test-body h3,
.previous-test-body p {
    margin: 0;
}

.previous-test-body h3 {
    font-size: 17px;
    font-weight: 700;
}

.previous-test-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #eeeeee;
    margin-top: auto;
    flex-shrink: 0;
}

.previous-test-actions a {
    min-height: 50px;
    display: grid;
    place-items: center;
    color: #5832b8;
    font-size: 16px;
    font-weight: 700;
}

.previous-test-actions a + a {
    border-left: 1px solid #eeeeee;
}

/* ============================================================
   Send score page (send_score.html)
   ============================================================ */
.send-score-page {
    margin: 0;
    min-height: 100vh;
    background: #f0eef8;
    color: #33333a;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.send-score-header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 56px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.send-score-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #083f5f;
    font-weight: 700;
    text-decoration: none;
}

.send-score-logo img {
    width: 128px;
}

.send-score-logo span {
    padding-left: 10px;
    border-left: 1px solid #8b8b8b;
}

.send-score-candidate {
    display: grid;
    gap: 4px;
    color: #31313a;
    font-size: 13px;
    text-align: left;
    text-transform: uppercase;
}

.send-score-candidate span {
    font-size: 12px;
    font-weight: 700;
}

.send-score-shell {
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 30px 64px;
}

.send-score-back {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #007fa3;
    font-size: 34px;
    line-height: 1;
    text-decoration: none;
}

.send-score-shell h1 {
    margin: -42px 0 22px;
    color: #33333a;
    font-size: 30px;
    font-weight: 400;
    text-align: center;
}

.send-score-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0 0 30px;
    padding: 20px 0 0;
    border-top: 10px solid rgba(255, 255, 255, 0.45);
    list-style: none;
    color: #4d4b52;
    font-size: 14px;
    text-align: center;
}

.send-score-steps li {
    min-height: 34px;
}

.send-score-steps .active {
    font-weight: 700;
}

.send-score-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 20px;
    border: 1px solid #dddddd;
    background: #dddddd;
}

.send-score-summary div {
    display: grid;
    gap: 6px;
    padding: 16px 20px;
    background: #ffffff;
}

.send-score-summary span {
    color: #5d5b63;
    font-size: 13px;
}

.send-score-summary strong {
    color: #202028;
    font-size: 17px;
}

.programme-search-card,
.programme-results-card {
    margin-bottom: 24px;
    padding: 24px 28px 30px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
}

.programme-search-card h2,
.programme-results-card h2 {
    margin: 0 0 22px;
    color: #33333a;
    font-size: 28px;
    font-weight: 400;
    text-align: center;
}

.programme-search-card p {
    margin: 0 0 12px;
    font-size: 16px;
}

.programme-search-form {
    display: grid;
    max-width: 720px;
}

.programme-search-form label {
    display: grid;
    grid-template-columns: 300px minmax(180px, 1fr);
    align-items: center;
    min-height: 64px;
    border-bottom: 1px solid #ededed;
}

.programme-search-form span {
    padding-right: 18px;
    font-weight: 600;
}

.programme-search-form input,
.programme-search-form select {
    width: 100%;
    height: 40px;
    border: 1px solid #8e8e8e;
    border-radius: 2px;
    padding: 0 10px;
    font: inherit;
}

.programme-search-form select:disabled {
    background: #eeeeee;
}

.programme-search-submit {
    display: grid;
    grid-template-columns: 300px minmax(180px, 1fr);
    align-items: center;
    padding-top: 16px;
}

.programme-search-submit button,
.programme-result button,
.send-score-previous {
    min-height: 42px;
    border: 2px solid #0b5d7a;
    border-radius: 6px;
    background: #ffffff;
    color: #0b5d7a;
    padding: 0 22px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.programme-search-submit button {
    justify-self: start;
}

.programme-results-list {
    display: grid;
    gap: 14px;
}

.programme-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid #dedede;
    border-radius: 6px;
}

.programme-result h3,
.programme-result p {
    margin: 0 0 6px;
}

.programme-result h3 {
    font-size: 18px;
}

.programme-result span,
.programme-empty {
    color: #5b5962;
}

.send-score-messages {
    margin-bottom: 18px;
}

.send-score-alert {
    border: 1px solid #bdb4ff;
    border-radius: 6px;
    background: #ffffff;
    padding: 14px 18px;
    font-weight: 700;
}

.send-score-alert--success {
    border-color: #5a31b4;
    color: #5a31b4;
}

.send-score-previous {
    display: inline-grid;
    place-items: center;
    min-width: 96px;
}

.send-score-footer {
    background: transparent;
}

.certificate-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 11, 42, 0.42);
}

.certificate-popup-card {
    position: relative;
    width: min(92vw, 430px);
    display: grid;
    gap: 18px;
    justify-items: center;
    border: 2px solid #bdb4ff;
    border-radius: 8px;
    background: #ffffff;
    padding: 36px 30px 30px;
    color: #171123;
    text-align: center;
    box-shadow: 0 18px 44px rgba(17, 11, 42, 0.24);
}

.certificate-popup-card h2 {
    margin: 0;
    color: #12005e;
    font-size: 28px;
    font-weight: 400;
}

.certificate-popup-card p {
    margin: 0;
    color: #34303d;
    font-size: 18px;
    line-height: 1.45;
}

.certificate-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #5a31b4;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.certificate-popup-action {
    min-width: 118px;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: #5a31b4;
    color: #ffffff;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

/* ============================================================
   Score Report page (test_score.html)
   ============================================================ */
.score-page {
    background: #f0eef8;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    color: #29323a;
}

.score-page .portal-header {
    height: 80px;
    padding: 0 56px;
}

.score-page .portal-brand img {
    width: 144px;
}

.score-page .portal-nav a {
    font-size: 18px;
}

.score-shell {
    max-width: 1650px;
    margin: 0 auto;
    padding: 40px 64px 0;
}

/* ---------- Top bar (back arrow + title + share) ---------- */
.score-topbar {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 460px;
    align-items: start;
    gap: 16px;
    padding-bottom: 40px;
}

.score-back {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: #5832b8;
    text-decoration: none;
}

.score-back svg {
    width: 100%;
    height: 100%;
}

.score-topbar-title {
    padding-top: 2px;
}

.score-topbar-title p {
    margin: 0 0 6px;
    color: #5b5865;
    font-size: 18px;
}

.score-topbar-title h1 {
    margin: 0;
    color: #1f1733;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
}

.score-topbar-title h1 strong {
    font-weight: 700;
}

.share-panel {
    text-align: center;
}

.share-btn {
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    border-radius: 999px;
    background: #5832b8;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(18, 0, 96, .15);
}

.share-btn svg {
    width: 26px;
    height: 26px;
}

.share-help {
    margin: 14px 0 0;
    color: #49464f;
    font-size: 14px;
}

/* ---------- White report card ---------- */
.score-card {
    background: #ffffff;
    padding: 28px 72px 48px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

/* ---------- Teal banner ---------- */
.score-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 28px;
    background: #1eb5a6;
    color: #1c2630;
}

.score-banner h2 {
    margin: 0;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.1;
}

.score-banner h2 .banner-bar {
    margin: 0 8px;
    font-weight: 300;
    color: #1c2630;
    opacity: .7;
}

.score-banner p {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 400;
}

.score-code-val {
    color: #1eb5a6;
}

.score-core .score-banner {
    background: #ffbf1f;
}

.score-core .score-code-val {
    color: #1c2630;
}

/* ---------- 2x2 panel grid ---------- */
.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
    row-gap: 22px;
    margin-top: 22px;
}

.report-panel {
    background: #ffffff;
    border: 1px solid #dfdfdf;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Right-column panels share their left border with the left panel */
.report-panel:nth-child(even) {
    border-left: 0;
}

.score-core .report-grid {
    grid-template-areas:
        "overview skills"
        "overview further"
        "breakdown candidate";
}

.score-core .overview-panel { grid-area: overview; }
.score-core .skills-panel { grid-area: skills; }
.score-core .further-panel { grid-area: further; }
.score-core .breakdown-panel { grid-area: breakdown; }
.score-core .candidate-panel { grid-area: candidate; }

.score-core .report-panel {
    border-left: 1px solid #dfdfdf;
}

.score-core .skills-panel,
.score-core .further-panel,
.score-core .candidate-panel {
    border-left: 0;
}

.report-panel h3 {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0 26px;
    border-bottom: 1px solid #e7e7e7;
    color: #2f2f2f;
    font-size: 26px;
    font-weight: 600;
}

.info-i {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 2px solid #b3b3b3;
    border-radius: 50%;
    color: #b3b3b3;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
}

/* ---------- Scores Overview panel ---------- */
.overview-main {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 70px;
    gap: 20px;
    padding: 36px 28px 30px;
    align-items: start;
}

.candidate-photo {
    width: 140px;
    height: 182px;
    object-fit: cover;
    background: #f4f4f4;
    display: block;
}

.candidate-info {
    min-width: 0;
    padding-top: 4px;
}

.candidate-info h4 {
    margin: 0 0 14px;
    color: #4a4a4a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.candidate-info p {
    margin: 0 0 10px;
    color: #888888;
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
}

.candidate-info p strong {
    font-weight: 600;
    color: #393c3d;
}

/* Overall score badge */
.overall-badge {
    width: 70px;
    height: 85px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 4px 4px 24px 24px;
    text-align: center;
    color: #ffffff;
}

.overall-label {
    height: 21px;
    display: grid;
    place-items: center;
    background: #015369;
    font-size: 9px;
    letter-spacing: .2px;
}

.overall-value {
    flex: 1;
    display: grid;
    place-items: center;
    background: #b00086;
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
}

.overview-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #e7e7e7;
}

.overview-details > div {
    padding: 24px 32px;
}

.overview-details > div + div {
    border-left: 1px solid #e7e7e7;
}

.overview-details p {
    margin: 0 0 5px;
    color: #888888;
    font-size: 15px;
    line-height: 1.4;
}

.overview-details p:last-child {
    margin-bottom: 0;
}

.overview-details p strong {
    font-weight: 600;
    color: #393c3d;
}

/* ---------- Communicative Skills panel ---------- */
.skill-circles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 40px 18px 36px;
    text-align: center;
}

.skill-circle .ring {
    width: 110px;
    height: 110px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border: 5px solid #003057;
    border-radius: 50%;
    background: #ffffff;
}

.skill-circle .ring strong {
    color: #555555;
    font-size: 30px;
    font-weight: 400;
}

.skill-circle > span {
    color: #74797b;
    font-size: 20px;
}

.skill-circle.reading .ring  { border-color: #d2db0e; }
.skill-circle.speaking .ring { border-color: #595959; }
.skill-circle.writing .ring  { border-color: #9e007e; }

/* ---------- PTE Core further information panel ---------- */
.further-panel h3 {
    min-height: 58px;
}

.further-info-body {
    flex: 1;
    padding: 22px 26px;
}

.further-info-body p {
    margin: 0;
    color: #595959;
    font-size: 17px;
    font-style: italic;
    line-height: 1.35;
}

/* ---------- Skills Breakdown panel ---------- */
.bar-chart {
    position: relative;
    width: 100%;
    max-width: 378px;
    margin: 0 auto;
    padding: 32px 22px 13px;
}

.bar-rows {
    position: relative;
}

.bar-row {
    display: grid;
    grid-template-columns: 86px 29px 1fr;
    align-items: center;
    gap: 13px;
    margin: 2px 0;
}

.bar-label {
    color: #74797b;
    font-size: 17px;
    text-align: right;
}

.bar-score {
    color: #022345;
    font-size: 17px;
    font-weight: 700;
}

.bar-track {
    height: 25px;
    background: transparent;
}

.bar-fill {
    display: block;
    height: 100%;
    background: #003057;
}

.bar-fill.reading  { background: #d2db0e; }
.bar-fill.speaking { background: #595959; }
.bar-fill.writing  { background: #9e007e; }

/* Vertical "Overall" marker overlaid on the bar-track column.
   The .overall-track sits exactly above the bar columns:
   86px label + 13px gap + 29px score + 13px gap = 141px from chart inner-left. */
.overall-track {
    position: absolute;
    top: 32px;
    bottom: 0;
    left: calc(22px + 141px);   /* chart padding-left + label/score columns */
    right: 22px;                 /* chart padding-right */
    pointer-events: none;
}

.overall-marker {
    position: absolute;
    top: 0;
    bottom: 4px;
    width: 5px;
    margin-left: -2.5px;
    background: rgba(120, 130, 140, .7);
}

.overall-marker span {
    position: absolute;
    top: -23px;
    right: 2px;
    left: auto;
    transform: none;
    white-space: nowrap;
    color: #74797b;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
}

.overall-marker span strong {
    margin-left: 4px;
    color: #022345;
    font-size: 16px;
    font-weight: 700;
}

/* ---------- Candidate Information panel ---------- */
.candidate-info-body {
    padding: 34px 36px;
}

.candidate-info-body p {
    margin: 0 0 5px;
    color: #888888;
    font-size: 15px;
    line-height: 1.4;
}

.candidate-info-body p:last-child {
    margin-bottom: 0;
}

.candidate-info-body p strong {
    font-weight: 600;
    color: #393c3d;
}

/* ---------- View as pdf button ---------- */
.pdf-button-wrap {
    display: flex;
    justify-content: center;
    margin: 28px 0 8px;
}

.pdf-button {
    min-width: 196px;
    min-height: 56px;
    display: inline-grid;
    place-items: center;
    padding: 0 36px;
    border-radius: 999px;
    background: #5832b8;
    color: #ffffff;
    box-shadow: 0 3px 7px rgba(18, 0, 96, .25);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

/* ---------- Skills Profile CTA strip ---------- */
.skills-profile-cta {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 280px;
    align-items: center;
    gap: 18px;
    margin: 30px 0 28px;
    padding: 14px 24px;
    background: #ffffff;
    border: 1px solid #c8c0ff;
}

.skills-profile-cta img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.skills-profile-cta p {
    margin: 0;
    color: #171123;
    font-size: 18px;
    line-height: 1.4;
}

.view-skills-btn {
    min-height: 56px;
    display: grid;
    place-items: center;
    padding: 0 24px;
    border-radius: 999px;
    background: #5832b8;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 7px rgba(18, 0, 96, .25);
}

/* ---------- Score-page footer tweaks ---------- */
.score-footer {
    padding: 24px 20px 28px;
}

.score-footer nav {
    color: #29323a;
    font-size: 13px;
}

.score-footer nav a {
    color: #29323a;
    text-decoration: none;
}

.score-footer .cookie-link {
    background: #1eb5a6;
    color: #1c2630;
    padding: 2px 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .score-shell {
        padding: 32px 36px 0;
    }
    .score-topbar {
        grid-template-columns: 64px minmax(0, 1fr) 400px;
    }
    .overview-main {
        grid-template-columns: 170px minmax(0, 1fr) 100px;
        gap: 22px;
    }
    .candidate-photo {
        width: 170px;
        height: 220px;
    }
}

@media (max-width: 980px) {
    .score-shell {
        padding: 24px 16px 0;
    }
    .score-topbar {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
        padding-bottom: 24px;
    }
    .share-panel {
        grid-column: 1 / -1;
    }
    .score-card {
        padding: 14px 14px 22px;
    }
    .score-banner h2 {
        font-size: 28px;
    }
    .report-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .score-core .report-grid {
        grid-template-areas:
            "overview"
            "skills"
            "further"
            "breakdown"
            "candidate";
    }
    .score-core .skills-panel,
    .score-core .further-panel,
    .score-core .candidate-panel {
        border-left: 1px solid #dfdfdf;
    }
    .overview-main {
        grid-template-columns: 130px minmax(0, 1fr) 96px;
        gap: 16px;
        padding: 24px 18px;
    }
    .candidate-photo {
        width: 130px;
        height: 170px;
    }
    .overview-details {
        grid-template-columns: 1fr;
    }
    .overview-details > div + div {
        border-left: 0;
        border-top: 1px solid #e7e7e7;
    }
    .skills-profile-cta {
        grid-template-columns: 64px minmax(0, 1fr);
    }
    .view-skills-btn {
        grid-column: 1 / -1;
        justify-self: center;
        padding: 0 36px;
    }
}

@media (max-width: 640px) {
    .score-page .portal-header {
        height: auto;
        padding: 16px 16px 0;
    }

    .score-page .portal-brand img {
        width: 172px;
        margin: 0;
    }

    .score-shell {
        padding: 22px 16px 0;
    }

    .score-topbar {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 10px;
    }

    .score-back {
        width: 50px;
        height: 50px;
    }

    .score-topbar-title h1 {
        font-size: 26px;
    }

    .score-card {
        padding: 14px;
    }

    .score-banner {
        padding: 18px 20px;
    }

    .score-banner h2 {
        font-size: 28px;
    }

    .report-panel h3 {
        min-height: 58px;
        padding: 0 20px;
        font-size: 24px;
    }

    .overview-main {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        padding: 24px 18px;
        text-align: center;
    }

    .candidate-photo {
        width: 130px;
        height: 170px;
    }

    .candidate-info {
        padding-top: 0;
    }

    .candidate-info h4,
    .candidate-info p {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .overall-badge {
        width: 82px;
        height: 98px;
    }

    .skill-circles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 12px;
        padding: 32px 18px;
    }

    .skill-circle .ring {
        width: 96px;
        height: 96px;
    }

    .skill-circle > span {
        font-size: 18px;
    }

    .further-info-body {
        padding: 20px;
    }

    .bar-chart {
        max-width: 300px;
        padding: 34px 12px 16px;
    }

    .bar-row {
        grid-template-columns: 74px 28px minmax(0, 1fr);
        gap: 10px;
    }

    .overall-track {
        left: calc(12px + 122px);
        right: 12px;
    }

    .candidate-info-body {
        padding: 28px 24px;
    }

    .skills-profile-cta {
        grid-template-columns: 56px minmax(0, 1fr);
        padding: 14px 16px;
    }

    .skills-profile-cta img {
        width: 50px;
        height: 50px;
    }

    .skills-profile-cta p {
        font-size: 16px;
    }

    .view-skills-btn {
        width: 100%;
        min-height: 52px;
        font-size: 20px;
    }
}

.learn-tabs {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 74px;
    background: #f8f8f8;
}

.learn-page {
    background: #f7f7f8;
}

.learn-tabs a {
    font-size: 14px;
    padding-bottom: 10px;
}

.learn-hero {
    height: 320px;
    display: flex;
    align-items: center;
    padding-left: 5%;
    overflow: hidden;
}

.store-hero {
    background-image: url("PTE-Prep.jpg");
    background-position: center top;
    background-size: 100%;
    background-repeat: no-repeat;
}

.learn-hero div {
    max-width: 40%;
    padding: 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 22px rgba(18, 0, 96, .15);
    color: var(--ink);
}

.learn-hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.1;
}

@media (max-width: 1024px) {
    .learn-hero { height: 200px; }
    .learn-hero div { padding: 19px; }
    .learn-hero h1 { font-size: 24px; }
}

@media (max-width: 768px) {
    .learn-hero { height: 160px; }
    .learn-hero div { max-width: 50%; padding: 13px; }
    .learn-hero h1 { font-size: 22px; }
}

.learn-shell {
    width: min(1166px, calc(100% - 48px));
    margin: 0 auto;
    padding: 21px 0 66px;
}

.free-shell {
    margin: 0;
    padding: 0 0 66px;
}

.product-tabs {
    justify-content: flex-start;
    gap: 36px;
    margin-bottom: 28px;
}

.product-tabs button,
.resource-product-tabs button {
    font-size: 14px;
}

.resource-product-tabs button {
    font-size: 16px;
}

.product-panel,
.empty-purchase,
.resource-panel {
    padding: 25px 25px 14px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(18, 0, 96, .07);
}

.product-panel h2,
.purchases-shell h2,
.resource-panel h2,
.free-intro h1 {
    margin: 0 0 8px;
    color: #000000;
    font-size: 24px;
    font-weight: 400;
}

.product-panel > p,
.free-intro p,
.resource-panel > p {
    margin: 0 0 20px;
    color: #171123;
    font-size: 16px;
}

.product-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 100px 120px;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    align-items: center;
    min-height: 151px;
    margin-top: 13px;
    padding: 14px;
    border: 1px solid #bdb4ff;
    border-radius: 8px;
}

.product-thumb {
    grid-row: 1 / 3;
    width: 86px;
    height: 82px;
    display: grid;
    place-items: center;
    background: #67c3d3;
    color: #ffffff;
}

.core-thumb {
    background: #6f55c8;
}

.product-thumb svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
}

.product-card h3,
.access-grid h2 {
    margin: 0 0 10px;
    color: #171123;
    font-size: 14px;
    font-weight: 700;
}

.product-card > div:not(.product-thumb):not(.product-controls) {
    grid-row: 1 / 3;
}

.product-card p {
    margin: 0;
    color: #171123;
    font-size: 12px;
    line-height: 1.25;
}

.product-controls {
    grid-column: 3;
    grid-row: 1 / 3;
    display: grid;
    gap: 12px;
    align-self: center;
}

.product-card input,
.product-card select {
    width: 78px;
    height: 42px;
    border: 1px solid #aaa8b0;
    border-radius: 4px;
    background: #ffffff;
    padding: 0 10px;
    color: #171123;
    font-size: 14px;
}

.product-card strong {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    padding-top: 0;
    color: #3f3a46;
    font-size: 14px;
}

.show-more {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: var(--purple);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    padding: 0;
}

.show-more::before,
.show-more::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #c9c6cf;
}

.small-outline {
    width: auto;
    min-width: 170px;
    min-height: 52px;
    border-width: 3px;
    font-size: 20px;
}

.product-card .small-outline,
.package-card .small-outline {
    min-width: 88px;
    min-height: 34px;
    border-width: 2px;
    font-size: 14px;
}

.product-card .small-outline {
    grid-column: 4;
    grid-row: 2;
    justify-self: end;
    align-self: end;
}

.product-card .small-outline:disabled {
    border-color: #eceaf5;
    color: #b8b5be;
    cursor: default;
}

.package-section {
    margin-top: 14px;
    padding: 18px 16px 14px;
    border: 1px solid #bdb4ff;
    border-radius: 8px;
    overflow: hidden;
}

.package-section h2 {
    margin-bottom: 2px;
    font-size: 18px;
}

.package-section > p {
    margin: 0 0 18px;
    color: #171123;
    font-size: 14px;
}

.package-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.package-card {
    min-height: 320px;
    display: grid;
    align-content: start;
    justify-items: start;
    padding: 19px;
    border: 1px solid #d8d6de;
    border-radius: 6px;
    box-shadow: 0 2px 7px rgba(18, 0, 96, .08);
}

.package-icon {
    width: 96px;
    height: 92px;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    background: #67c3d3;
    color: #ffffff;
    justify-self: center;
}

.package-icon svg {
    width: 56px;
    height: 56px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
}

.package-card h3 {
    margin: 0 0 34px;
    color: #3f3a46;
    font-size: 14px;
}

.package-card h3 strong {
    margin-left: 12px;
}

.package-items {
    margin: 0 0 24px;
    padding: 0 0 0 14px;
    color: #171123;
    font-size: 12px;
    line-height: 1.8;
}

.package-card p {
    min-height: 0;
    margin: 0 0 16px;
    color: #171123;
    font-size: 12px;
    line-height: 1.4;
}

.package-card .small-outline {
    justify-self: end;
}

.package-arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    color: var(--purple);
    font-size: 28px;
    font-weight: 700;
}

.purchases-hero {
    height: 200px;
    /* Replace url("purchases-hero.jpg") with the actual workspace photo */
    background-image: url("purchases-hero.jpg"),
        linear-gradient(135deg, #f0ede8 0%, #e4ddd3 40%, #d6c9b8 70%, #c9b99f 100%);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.purchases-section-title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: #171123;
}

.empty-purchase {
    display: grid;
    place-items: center;
    min-height: 200px;
    margin-bottom: 32px;
    padding: 26px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(18, 0, 96, .07);
}

.empty-purchase p {
    margin: 0 0 20px;
    color: #171123;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
}

.purchase-note {
    margin: 0 0 10px;
    color: #171123;
    font-size: 14px;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.access-grid article {
    padding: 19px;
    border: 1px solid #e8e6f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(18, 0, 96, .05);
}

.access-grid article h3 {
    margin: 0 0 16px;
    color: #171123;
    font-size: 14px;
    font-weight: 600;
}

/* Filled purple button (used for Access with code) */
.fill-button {
    display: block;
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 999px;
    background: var(--purple);
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 44px;
    text-decoration: none;
    transition: background .15s;
}

.fill-button:hover {
    background: var(--pearson-purple-color);
    color: #ffffff;
}

.access-grid button,
.access-grid a.small-outline {
    display: block;
    width: 100%;
    min-height: 44px;
    border: 2px solid var(--purple);
    border-radius: 999px;
    background: transparent;
    color: var(--purple);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
}

.free-intro {
    margin: 0;
    padding: 26px 5%;
    background: #fafafb;
}

.free-intro h1 {
    font-size: 32px;
    margin: 0 0 8px;
}

.free-intro p {
    font-size: 16px;
    margin: 0;
}

.resource-product-tabs {
    justify-content: flex-start;
    padding: 0 5%;
    margin-bottom: 0;
    border-bottom: 1px solid #e8e6f0;
}

.resource-panel {
    padding: 26px 5%;
    background: #fafafb;
    border-radius: 0;
    box-shadow: none;
}

.resource-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
}

.resource-layout aside {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 13px 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(18, 0, 96, .07);
    align-self: start;
}

.resource-layout aside button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #171123;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 15px;
    padding: 8px 14px;
}

.resource-nav-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #f1eff8;
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.resource-layout aside button[data-category="general"] .resource-nav-icon::before {
    content: "i";
    font-size: 14px;
}

.resource-layout aside button[data-category="speaking"] .resource-nav-icon::before {
    content: "S";
}

.resource-layout aside button[data-category="writing"] .resource-nav-icon::before {
    content: "W";
}

.resource-layout aside button[data-category="reading"] .resource-nav-icon::before {
    content: "R";
}

.resource-layout aside button[data-category="listening"] .resource-nav-icon::before {
    content: "L";
}

.resource-layout aside .active {
    background: #ede9fa;
    color: var(--purple);
    font-weight: 700;
}

.resource-layout aside .active .resource-nav-icon {
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(91, 45, 189, .16);
}

.resource-layout aside span.sidebar-divider {
    display: block;
    color: #696570;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 13px 14px 3px;
}

.resource-list {
    padding: 19px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(18, 0, 96, .07);
}

.resource-category {
    display: none;
}

.resource-category.active {
    display: block;
}

.resource-list h3 {
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 400;
    color: #000;
}

.resource-list article {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f0eef8;
}

.resource-list article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.resource-art {
    width: 200px;
    height: 150px;
    border-radius: 4px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #e8f5ff;
    box-shadow: inset 0 0 0 1px rgba(18, 0, 96, .05);
}

.resource-art::before,
.resource-art::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.resource-art::before {
    width: 92px;
    height: 92px;
    right: -24px;
    top: -22px;
    background: rgba(255, 255, 255, .48);
}

.resource-art::after {
    width: 132px;
    height: 62px;
    left: -34px;
    bottom: -24px;
    background: rgba(255, 255, 255, .36);
    transform: rotate(-12deg);
}

.resource-art-icon {
    width: 58px;
    height: 58px;
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    color: #120060;
    box-shadow: 0 10px 26px rgba(18, 0, 96, .12);
}

.resource-art-icon::before {
    content: "PDF";
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

.resource-art[data-resource-type="video"] {
    background: linear-gradient(135deg, #bce9ff, #78c5e6);
}

.resource-art[data-resource-type="video"] .resource-art-icon {
    border-radius: 50%;
}

.resource-art[data-resource-type="video"] .resource-art-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 20px solid #120060;
}

.resource-art[data-resource-type="practice"],
.resource-art[data-resource-type="practice-test"] {
    background: linear-gradient(135deg, #f6dbff, #b89af0);
}

.resource-art[data-resource-type="practice"] .resource-art-icon::before,
.resource-art[data-resource-type="practice-test"] .resource-art-icon::before {
    content: "P";
    font-size: 24px;
}

.resource-art[data-resource-type="guide"] {
    background: linear-gradient(135deg, #d9f3dc, #8bd3a5);
}

.resource-art[data-resource-type="guide"] .resource-art-icon::before {
    content: "G";
    font-size: 24px;
}

.resource-art[data-resource-type="course"] {
    background: linear-gradient(135deg, #ffe8b8, #f4b867);
}

.resource-art[data-resource-type="course"] .resource-art-icon::before {
    content: "C";
    font-size: 24px;
}

.resource-art-2 {
    background: linear-gradient(135deg, #d5efff, #9dc7f5);
}

.resource-art-3 {
    background: linear-gradient(135deg, #efe8ff, #c9b4f4);
}

.resource-art-4 {
    background: linear-gradient(135deg, #e2f6f1, #88d5c5);
}

.resource-list h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #171123;
}

.resource-list p {
    margin: 0 0 12px;
    color: #171123;
    font-size: 14px;
    line-height: 1.5;
}

.resource-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #5b5865 !important;
    font-size: 13px !important;
}

.resource-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.resource-view-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 22px;
    border: 2px solid var(--purple);
    border-radius: 999px;
    color: var(--purple);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.resource-view-btn:hover {
    background: var(--purple);
    color: #fff;
}

/* PTE Home accordion */
.level-accordion {
    border: 1px solid #e0dcea;
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    background: #fff;
}

.level-accordion summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #171123;
    list-style: none;
    user-select: none;
    background: #fff;
}

.level-accordion summary::-webkit-details-marker {
    display: none;
}

.level-accordion summary .accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid var(--purple);
    border-radius: 50%;
    color: var(--purple);
    font-size: 16px;
    font-style: normal;
    line-height: 1;
    transition: transform .2s;
    margin-left: auto;
    flex-shrink: 0;
}

.level-accordion[open] summary .accordion-icon {
    transform: rotate(180deg);
}

.level-list {
    padding: 0 16px 13px;
    display: grid;
    gap: 0;
}

.level-list article {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid #f0eef8;
}

.level-list article:first-child {
    border-top: 0;
}

.level-list .resource-art {
    height: 150px;
}

/* Home panel full width */
.home-panel .resource-list {
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.help-grid a {
    min-height: 120px;
    display: grid;
    place-items: center;
    border: 2px solid #bdb4ff;
    border-radius: 7px;
    background: #ffffff;
    color: var(--purple);
    font-size: 20px;
    font-weight: 700;
}

.quick-page {
    min-height: 100vh;
    background: #ffffff;
    color: #000000;
}

.quick-shell {
    position: relative;
    min-height: 100vh;
    padding-top: 10px;
    background:
        linear-gradient(#f4f4f4 0 54px, transparent 54px),
        linear-gradient(to right, #e5e5e5 0 2px, transparent 2px) left calc(100% - 44px) / 9px 3px repeat-x;
}

.quick-progress {
    position: absolute;
    top: 10px;
    left: 50%;
    display: flex;
    align-items: center;
    transform: translateX(-50%);
}

.step {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.step.current {
    background: #0789a5;
}

.step.alert {
    background: #e87600;
}

.step-line {
    width: 82px;
    height: 3px;
    background: #9bd0dd;
}

.quick-card {
    width: min(925px, calc(100% - 56px));
    margin: 0 auto;
    padding-top: 116px;
    text-align: center;
}

.quick-card h1,
.details-shell h1 {
    margin: 0;
    color: #000000;
    font-size: 34px;
    font-weight: 400;
}

.quick-card > p {
    margin: 17px 0 34px;
    color: #000000;
    font-size: 25px;
}

.quick-form {
    text-align: left;
}

.quick-field {
    position: relative;
    margin-bottom: 38px;
}

.quick-field input {
    width: 100%;
    height: 78px;
    border: 1px solid #e87500;
    border-radius: 5px;
    color: #000000;
    padding: 0 82px 0 20px;
    font-size: 29px;
    outline: none;
}

.quick-field input::placeholder {
    color: #f07d00;
    opacity: 1;
}

.quick-field input:focus {
    border-color: #008aad;
}

.quick-field strong {
    display: block;
    margin: 2px 0 0 20px;
    color: #000000;
    font-size: 14px;
    line-height: 1.1;
}

.quick-password {
    margin-bottom: 20px;
}

.quick-toggle {
    top: 18px;
    right: 18px;
}

.password-rules {
    display: grid;
    gap: 10px;
    margin: -4px 0 36px;
    padding: 0;
    color: #606060;
    font-size: 25px;
    list-style: none;
}

.password-rules li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.password-rules span {
    position: relative;
    width: 31px;
    height: 31px;
    display: inline-grid;
    place-items: center;
    border: 3px solid #e6e6e6;
    border-radius: 50%;
}

.password-rules span::before,
.password-rules span::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 3px;
    background: #d6d6d6;
}

.password-rules span::before {
    transform: rotate(45deg);
}

.password-rules span::after {
    transform: rotate(-45deg);
}

.password-rules .valid span {
    border-color: #0789a5;
}

.password-rules .valid span::before {
    width: 10px;
    transform: translate(-4px, 3px) rotate(45deg);
    background: #0789a5;
}

.password-rules .valid span::after {
    width: 17px;
    transform: translate(4px, -1px) rotate(-45deg);
    background: #0789a5;
}

.password-rules em {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border: 3px solid #666666;
    border-radius: 50%;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
}

.quick-primary {
    width: min(681px, 100%);
    min-height: 75px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border: 0;
    border-radius: 8px;
    background: #078dad;
    color: #ffffff;
    cursor: pointer;
    font-size: 31px;
    font-weight: 700;
}

.quick-primary:hover {
    background: #067d98;
}

.details-page {
    background:
        linear-gradient(#f4f4f4 0 54px, transparent 54px),
        #ffffff;
}

.details-shell {
    width: calc(100% - 76px);
    margin: 0 auto;
    padding-top: 31px;
}

.details-shell h1 {
    text-align: center;
    font-size: 18px;
}

.id-warning {
    margin: 21px 0 22px;
    padding: 17px 108px;
    border: 1px solid #008aad;
    border-radius: 4px;
    color: #000000;
    font-size: 16px;
    line-height: 1.22;
}

.id-warning strong {
    font-weight: 800;
}

.id-warning p,
.id-warning ul {
    margin: 0;
}

.id-warning a {
    color: #008aad;
}

.details-form {
    padding-bottom: 32px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 34px;
}

.field-block {
    position: relative;
}

.field-block.wide {
    grid-column: 1 / 2;
}

.field-block label,
.date-block legend {
    position: absolute;
    top: -8px;
    left: 12px;
    padding: 0 5px;
    background: #ffffff;
    color: #000000;
    font-size: 12px;
}

.field-block input {
    width: 100%;
    height: 39px;
    border: 1px solid #8f8f8f;
    border-radius: 2px;
    padding: 0 10px;
    color: #000000;
    font-size: 14px;
}

.field-block input:focus,
.date-block input:focus {
    border-color: #008aad;
    outline: none;
}

.field-block small {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    font-weight: 700;
}

.small-check {
    position: static !important;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    padding: 0 !important;
    color: #000000;
    background: transparent !important;
    font-size: 12px !important;
}

.small-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.date-block {
    display: flex;
    grid-column: 1 / 2;
    gap: 0;
    margin: 0;
    padding: 25px 0 0;
    border: 0;
}

.date-block legend {
    position: static;
    width: 100%;
    padding: 0;
    margin-bottom: 8px;
    font-size: 16px;
}

.date-block label {
    position: relative;
    width: 121px;
    color: #000000;
    font-size: 12px;
}

.date-block input {
    width: 100%;
    height: 39px;
    border: 1px solid #8f8f8f;
    padding: 0 10px;
}

.details-check {
    width: min(700px, 100%);
    margin: 20px 0 0;
}

.details-actions {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px dotted #e4e4e4;
    text-align: center;
}

.details-actions .quick-primary {
    width: 400px;
    min-height: 38px;
    border-radius: 4px;
    font-size: 16px;
}

.quick-cancel {
    width: 400px;
    min-height: 38px;
    display: grid;
    place-items: center;
    margin: 14px auto 0;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #f7f7f7;
    color: #00375a;
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 560px) {
    .auth-page {
        padding: 0;
    }

    .auth-shell {
        min-height: 100vh;
        width: 100%;
    }

    .auth-card {
        min-height: auto;
        padding: 54px 20px 28px;
    }

    .brand-logo {
        width: 196px;
    }

    h1 {
        margin-top: 44px;
        font-size: 26px;
    }

    .form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}

@media (max-width: 980px) {
    .portal-header {
        height: auto;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 24px;
    }

    .portal-brand img {
        margin: 0 auto;
    }

    .portal-nav {
        min-height: 48px;
        gap: 28px;
        overflow-x: auto;
    }

    .portal-actions {
        justify-content: center;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

    .quick-card,
    .details-shell {
        width: calc(100% - 28px);
    }

    .quick-card {
        padding-top: 92px;
    }

    .quick-card h1 {
        font-size: 30px;
    }

    .quick-card > p {
        font-size: 20px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .id-warning {
        padding: 16px;
    }

    .field-block.wide,
    .date-block {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .quick-field input {
        height: 64px;
        font-size: 22px;
    }

    .password-rules {
        font-size: 20px;
    }

    .quick-primary,
    .details-actions .quick-primary,
    .quick-cancel {
        width: 100%;
        font-size: 22px;
    }

    .details-actions .quick-primary,
    .quick-cancel {
        font-size: 16px;
    }
}

.signup-flow {
    min-height: 100vh;
    background: #f0eef8;
    color: #120060;
    font-family: Arial, Helvetica, sans-serif;
}

.signup-header {
    height: 98px;
    display: flex;
    align-items: center;
    padding-left: 86px;
    background: #120060;
}

.signup-header img {
    display: block;
    width: 175px;
    filter: brightness(0) invert(1);
}

.signup-main {
    width: min(1164px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: 16px;
}

.signup-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.signup-steps span {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border: 4px solid #5b32bd;
    border-radius: 50%;
    background: #f0eef8;
    color: #120060;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.signup-steps .active {
    background: #5b32bd;
    color: #ffffff;
}

.signup-steps .done {
    color: #120060;
    font-size: 22px;
}

.signup-steps i {
    width: 84px;
    height: 4px;
    background: #c9c0ff;
}

.signup-panel {
    padding-top: 70px;
    text-align: center;
}

.signup-panel h1,
.verify-panel h1,
.details-actual-panel h1 {
    margin: 0;
    color: #120060;
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 0;
}

.signup-subtitle {
    margin: 14px 0 32px;
    color: #3f3a46;
    font-size: 24px;
}

.actual-signup-form,
.actual-details-form {
    width: 100%;
    text-align: left;
}

.actual-field {
    position: relative;
    margin-bottom: 52px;
}

.actual-field input,
.actual-field select {
    width: 100%;
    height: 78px;
    border: 1px solid #c0bdc7;
    border-radius: 4px;
    background: #ffffff;
    color: #171123;
    padding: 0 74px 0 20px;
    font-size: 30px;
    outline: none;
}

.actual-field input::placeholder {
    color: #5b5865;
    opacity: 1;
}

.actual-field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #5b5865 50%),
        linear-gradient(135deg, #5b5865 50%, transparent 50%);
    background-position:
        calc(100% - 30px) 35px,
        calc(100% - 20px) 35px;
    background-size: 10px 10px;
    background-repeat: no-repeat;
    color: #5b5865;
}

.actual-field input:focus,
.actual-field select:focus {
    border: 2px solid #120060;
}

.actual-field strong,
.actual-field small {
    display: block;
    margin: 2px 0 0 20px;
    color: #d5102f;
    font-size: 16px;
    font-weight: 700;
}

.password-row {
    margin-bottom: 12px;
}

.signup-eye {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
}

.actual-rules {
    margin: 0 0 28px;
    color: #5b5865;
    font-size: 21px;
}

.actual-rules > strong {
    display: block;
    margin-bottom: 7px;
    color: #3f3a46;
    font-size: 20px;
}

.actual-rules ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.actual-rules li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.actual-rules li span {
    position: relative;
    width: 22px;
    height: 22px;
    border: 3px solid #c8c7cc;
    border-radius: 50%;
}

.actual-rules li span::before,
.actual-rules li span::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 3px;
    width: 11px;
    height: 3px;
    background: #c8c7cc;
}

.actual-rules li span::before {
    transform: rotate(45deg);
}

.actual-rules li span::after {
    transform: rotate(-45deg);
}

.actual-rules li.valid span {
    border-color: #5b32bd;
}

.actual-rules li.valid span::before {
    top: 9px;
    left: 3px;
    width: 8px;
    background: #5b32bd;
    transform: rotate(45deg);
}

.actual-rules li.valid span::after {
    top: 8px;
    left: 8px;
    width: 13px;
    background: #5b32bd;
    transform: rotate(-45deg);
}

.actual-rules em {
    width: 23px;
    height: 23px;
    display: inline-grid;
    place-items: center;
    border: 3px solid #68656f;
    border-radius: 50%;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
}

.country-field {
    margin-bottom: 39px;
}

.country-field select {
    border-color: #e51b3e;
    background: #fff4f5;
}

.actual-check {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 42px 10px;
    color: #5b5865;
    font-size: 22px;
    line-height: 1.35;
}

.actual-check.two-line {
    max-width: 1030px;
}

.actual-check input {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    appearance: none;
    border: 2px solid #aaa8b0;
    border-radius: 3px;
    background: #ffffff;
}

.actual-check input:checked {
    background: #5b32bd;
    box-shadow: inset 0 0 0 7px #ffffff;
}

.signup-primary {
    width: 464px;
    min-height: 74px;
    display: grid;
    place-items: center;
    margin: 36px auto 0;
    border: 0;
    border-radius: 999px;
    background: #5b32bd;
    color: #ffffff;
    cursor: pointer;
    font-size: 31px;
    font-weight: 700;
}

.signup-primary:hover {
    background: #4b27a7;
}

.back-login {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-top: 44px;
    color: #5b32bd;
    font-size: 22px;
    font-weight: 700;
}

.back-login span {
    font-size: 34px;
    line-height: 1;
}

.signup-footer {
    margin-top: 92px;
    padding-bottom: 24px;
    text-align: center;
    color: #171123;
    font-size: 14px;
}

.signup-footer p {
    margin: 4px 0 0;
}

.verify-main {
    width: min(720px, calc(100% - 48px));
    padding-top: 12px;
}

.verify-panel {
    padding-top: 56px;
    text-align: center;
}

.verify-panel h1 {
    font-size: 30px;
}

.verify-panel p {
    margin: 10px auto 0;
    max-width: 620px;
    color: #171123;
    font-size: 20px;
    line-height: 1.35;
}

.verify-panel p + p {
    margin-top: 24px;
}

.verify-form {
    margin-top: 43px;
}

.code-boxes {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.code-boxes input {
    width: 50px;
    height: 50px;
    border: 1px solid #c9c6cf;
    border-radius: 4px;
    background: #f2f1f8;
    color: #120060;
    text-align: center;
    font-size: 24px;
    outline: none;
}

.code-boxes input:focus {
    border: 2px solid #120060;
    background: #ffffff;
}

.resend-button {
    width: 378px;
    min-height: 60px;
    margin-top: 32px;
    font-size: 25px;
}

.verify-footer {
    margin-top: 115px;
}

.details-actual-main {
    width: min(940px, calc(100% - 48px));
    padding-top: 12px;
}

.details-actual-panel {
    padding-top: 56px;
    text-align: center;
}

.details-actual-panel h1 {
    font-size: 30px;
}

.actual-details-form {
    margin-top: 27px;
}

.actual-details-form .actual-field {
    margin-bottom: 19px;
}

.actual-details-form .actual-field input {
    height: 63px;
    font-size: 24px;
}

.actual-details-form .actual-field.actual-error input {
    border-color: #e51b3e;
    background: #fff4f5;
}

.actual-details-form .actual-field small {
    color: #000000;
    font-size: 12px;
}

.compact-check {
    margin: 0 0 32px 14px;
    color: #171123;
    font-size: 17px;
    font-weight: 700;
}

.compact-check input {
    width: 30px;
    height: 30px;
}

.actual-date {
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
}

.actual-date legend {
    margin-bottom: 8px;
    color: #120060;
    font-size: 24px;
}

.actual-date label {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 142px;
    height: 64px;
    margin-right: -5px;
    border: 1px solid #bcb9c3;
    background: #ffffff;
}

.actual-date label:nth-of-type(2) {
    width: 220px;
}

.actual-date label span {
    position: absolute;
    left: 15px;
    color: #5b32bd;
    font-size: 32px;
    line-height: 1;
    transform: rotate(90deg);
}

.actual-date select {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: #171123;
    padding: 0 10px 0 56px;
    font-size: 24px;
    appearance: none;
    outline: none;
}

.details-submit {
    margin-top: 46px;
    width: 380px;
    min-height: 60px;
    font-size: 26px;
}

.details-footer {
    margin-top: 110px;
}

.account-edit-page {
    background: #f0eef8;
    color: #120060;
}

.account-edit-page .account-edit-shell {
    font-size: 95%;
}

.account-edit-shell {
    width: min(2280px, calc(100% - 172px));
    margin: 0 auto;
    padding: 32px 0 0;
}

.account-edit-title {
    text-align: center;
}

.account-edit-title h1 {
    margin: 0;
    color: #120060;
    font-size: 30px;
    font-weight: 400;
}

.account-edit-title p {
    margin: 10px 0 27px;
    color: #171123;
    font-size: 20px;
}

.account-accordion {
    min-height: 110px;
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 74px;
    padding: 0 48px;
    border: 3px solid #5832b8;
    border-radius: 8px;
    background: #5832b8;
    color: #ffffff;
    cursor: pointer;
}

.account-edit-title + .account-accordion {
    margin-top: 0;
}

.account-accordion.collapsed {
    min-height: 72px;
    margin-top: 49px;
    background: #ffffff;
    color: #171123;
}

.account-accordion h2,
.account-accordion.collapsed h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 400;
}

.accordion-icon {
    position: relative;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border: 5px solid currentColor;
    border-radius: 50%;
    font-size: 62px;
    line-height: .8;
}

.account-accordion.collapsed .accordion-icon {
    width: 45px;
    height: 45px;
    border: 0;
    color: #5832b8;
    font-size: 0;
}

.account-accordion.collapsed .accordion-icon svg {
    width: 45px;
    height: 45px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-profile-form {
    margin-top: 74px;
    font-size: 90%;
}

.account-subpanel {
    margin-top: 34px;
    padding: 38px 42px;
    border: 2px solid #c9c0ff;
    border-radius: 8px;
    background: #ffffff;
}

.compact-grid {
    margin-top: 0;
}

.compact-actions {
    margin-top: 42px;
    margin-bottom: 0;
}

.privacy-option {
    margin: 0 0 28px;
    color: #171123;
    font-weight: 400;
}

.id-policy-box {
    padding: 36px 40px 40px;
    border: 3px solid #5832b8;
    border-radius: 8px;
}

.id-policy-box h2 {
    margin: 0 0 12px;
    color: #120060;
    font-size: 26px;
}

.id-policy-box p,
.id-policy-box li {
    color: #000000;
    font-size: 25px;
    line-height: 1.22;
}

.id-policy-box p,
.id-policy-box ul {
    margin: 0;
}

.id-policy-box ul {
    padding-left: 70px;
}

.id-policy-box a {
    color: #5832b8;
    font-weight: 700;
}

.warning-line {
    margin-top: 14px !important;
    font-weight: 700;
}

.warning-line span {
    margin-right: 6px;
    color: #000000;
}

.account-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px 42px;
    margin-top: 58px;
}

.pte-field {
    position: relative;
}

.pte-field label {
    position: absolute;
    top: -17px;
    left: 20px;
    z-index: 1;
    padding: 0 6px;
    background: #f0eef8;
    color: #696570;
    font-size: 18px;
}

.pte-field input,
.pte-field select {
    width: 100%;
    height: 74px;
    border: 1px solid #aaa8b0;
    border-radius: 4px;
    background: #ffffff;
    color: #4b4851;
    padding: 0 24px;
    font-size: 25px;
    outline: none;
}

.pte-field input::placeholder {
    color: #6d6872;
    opacity: 1;
}

.pte-field input:focus,
.pte-field select:focus {
    border: 2px solid #120060;
}

.pte-field small {
    display: block;
    margin: 4px 0 0 24px;
    color: #000000;
    font-size: 12px;
    font-weight: 700;
}

.help-field input {
    padding-right: 70px;
}

.help-field > span {
    position: absolute;
    top: 22px;
    right: 24px;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 3px solid #77737d;
    border-radius: 50%;
    color: #77737d;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.account-check {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #171123;
    font-size: 18px;
    font-weight: 700;
}

.account-check input {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    appearance: none;
    border: 2px solid #aaa8b0;
    border-radius: 3px;
    background: #ffffff;
}

.account-check input:checked {
    background: #120060;
    box-shadow: inset 0 0 0 8px #ffffff;
}

.under-left,
.under-right {
    margin-top: -42px;
    padding-left: 20px;
}

.account-date,
.gender-field,
.arrangements-field {
    margin: 0;
    padding: 0;
    border: 0;
}

.account-date legend,
.gender-field legend,
.arrangements-field legend {
    margin: 0 0 10px;
    color: #120060;
    font-size: 25px;
}

.account-date label {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 218px;
    height: 74px;
    margin-right: -5px;
    border: 1px solid #aaa8b0;
    border-radius: 4px;
    background: #ffffff;
}

.account-date label:nth-of-type(2) {
    width: 265px;
}

.account-date label span {
    position: absolute;
    top: -19px;
    left: 17px;
    padding: 0 5px;
    background: #f0eef8;
    color: #696570;
    font-size: 18px;
}

.account-date label i {
    position: absolute;
    left: 24px;
    width: 34px;
    height: 27px;
}

.account-date label i::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 5px;
    height: 5px;
    background: #5832b8;
    box-shadow: 0 10px 0 #5832b8, 0 20px 0 #5832b8;
}

.account-date label i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 13px;
    width: 28px;
    height: 4px;
    background: #5832b8;
    box-shadow: 0 10px 0 #5832b8, 0 20px 0 #5832b8;
}

.account-date select {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: #171123;
    padding: 0 16px 0 72px;
    font-size: 25px;
    appearance: none;
    outline: none;
}

.gender-field,
.arrangements-field {
    color: #171123;
}

.gender-field label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 28px;
    font-size: 17px;
}

.gender-field input,
.arrangements-field input {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    appearance: none;
    border: 6px solid #777;
    border-radius: 50%;
    background: #ffffff;
}

.gender-field input:checked,
.arrangements-field input:checked {
    border-color: #120060;
    box-shadow: inset 0 0 0 10px #ffffff;
    background: #120060;
}

.phone-row {
    display: grid;
    grid-template-columns: 260px 1fr;
}

.phone-row .pte-field input {
    border-radius: 0;
}

.phone-row .country-code-field input {
    border-radius: 4px 0 0 4px;
}

.phone-row .phone-field input {
    border-left: 0;
    border-radius: 0 4px 4px 0;
}

.arrangements-field {
    align-self: start;
}

.arrangements-field .info-dot {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    margin: 0 0 26px;
    border: 2px solid #5832b8;
    border-radius: 50%;
    color: #5832b8;
    font-size: 13px;
    font-weight: 700;
}

.arrangements-field label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
    color: #3f3a46;
    font-size: 18px;
    line-height: 1.45;
}

.sms-check {
    align-items: flex-start;
    align-self: end;
    padding-left: 16px;
    font-weight: 400;
    line-height: 1.2;
}

.account-actions {
    width: min(910px, 100%);
    margin: 70px auto 48px;
    display: grid;
    gap: 30px;
}

.account-save,
.account-cancel {
    min-height: 68px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 31px;
    font-weight: 700;
}

.account-save {
    border: 0;
    background: #5832b8;
    color: #ffffff;
    cursor: pointer;
}

.account-cancel {
    border: 6px solid #120060;
    color: #120060;
    background: transparent;
    text-decoration: none;
}

.account-edit-page .portal-footer {
    padding-top: 112px;
}

@media (max-width: 760px) {
    .account-edit-page .portal-header {
        height: auto;
        padding: 16px 16px 0;
    }

    .account-edit-page .portal-brand img {
        width: 172px;
    }

    .account-edit-shell {
        width: calc(100% - 38px);
        padding: 16px 0 0;
    }

    .account-edit-page .account-edit-shell {
        font-size: 100%;
    }

    .account-edit-title h1 {
        font-size: 22px;
        line-height: 1.2;
    }

    .account-edit-title p {
        max-width: 260px;
        margin: 8px auto 22px;
        font-size: 12px;
        line-height: 1.4;
    }

    .account-accordion {
        min-height: 42px;
        gap: 10px;
        margin-top: 26px;
        padding: 0 14px;
        border-width: 2px;
        border-radius: 3px;
    }

    .account-edit-title + .account-accordion {
        margin-top: 0;
    }

    .account-accordion.collapsed {
        min-height: 42px;
        margin-top: 22px;
        border-width: 2px;
        border-radius: 3px;
    }

    .account-accordion h2,
    .account-accordion.collapsed h2 {
        font-size: 18px;
        line-height: 1;
    }

    .accordion-icon {
        width: 29px;
        height: 29px;
        border-width: 2px;
        font-size: 28px;
    }

    .account-accordion.collapsed .accordion-icon,
    .account-accordion.collapsed .accordion-icon svg {
        width: 29px;
        height: 29px;
    }

    .account-profile-form {
        margin-top: 21px;
        font-size: 100%;
    }

    .id-policy-box {
        padding: 10px 8px 12px;
        border-width: 2px;
        border-radius: 3px;
    }

    .id-policy-box h2 {
        margin-bottom: 10px;
        font-size: 15px;
        line-height: 1.15;
    }

    .id-policy-box p,
    .id-policy-box li {
        font-size: 14px;
        line-height: 1.18;
    }

    .id-policy-box ul {
        padding-left: 42px;
    }

    .warning-line {
        margin-top: 10px !important;
    }

    .account-form-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 26px;
        margin-top: 28px;
    }

    .given-name-field { order: 1; }
    .under-left { order: 2; }
    .surname-field { order: 3; }
    .under-right { order: 4; }
    .email-field { order: 5; }
    .account-date { order: 6; }
    .gender-field { order: 7; }
    .phone-row { order: 13; }
    .arrangements-field { order: 14; }
    .sms-check { order: 15; }

    .pte-field label {
        top: -9px;
        left: 10px;
        padding: 0 4px;
        font-size: 11px;
    }

    .pte-field input,
    .pte-field select {
        height: 40px;
        padding: 0 12px;
        border-radius: 3px;
        font-size: 16px;
    }

    .pte-field small {
        margin: 4px 0 0 14px;
        font-size: 10px;
        line-height: 1.2;
    }

    .account-check {
        gap: 10px;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.15;
    }

    .account-check input {
        width: 24px;
        height: 24px;
        border-width: 1px;
    }

    .account-check input:checked {
        box-shadow: inset 0 0 0 5px #ffffff;
    }

    .under-left,
    .under-right {
        margin-top: -14px;
        padding-left: 13px;
    }

    .account-date legend,
    .gender-field legend,
    .arrangements-field legend {
        margin-bottom: 4px;
        font-size: 16px;
        line-height: 1.2;
    }

    .account-date {
        display: grid;
        grid-template-columns: 80px minmax(0, 1fr) 84px;
    }

    .account-date label,
    .account-date label:nth-of-type(2) {
        width: 100%;
        height: 40px;
        margin-right: 0;
        border-radius: 3px;
    }

    .account-date label span {
        top: -9px;
        left: 10px;
        padding: 0 4px;
        font-size: 10px;
    }

    .account-date label i {
        left: 13px;
        width: 20px;
        height: 18px;
    }

    .account-date label i::before {
        width: 3px;
        height: 3px;
        box-shadow: 0 7px 0 #5832b8, 0 14px 0 #5832b8;
    }

    .account-date label i::after {
        top: 2px;
        left: 8px;
        width: 17px;
        height: 2px;
        box-shadow: 0 7px 0 #5832b8, 0 14px 0 #5832b8;
    }

    .account-date select {
        padding: 0 8px 0 36px;
        font-size: 16px;
    }

    .gender-field {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .gender-field legend {
        grid-column: 1 / -1;
        margin-bottom: 4px;
    }

    .gender-field label {
        margin-right: 0;
        gap: 8px;
        font-size: 15px;
    }

    .gender-field input,
    .arrangements-field input {
        width: 25px;
        height: 25px;
        border-width: 3px;
    }

    .gender-field input:checked,
    .arrangements-field input:checked {
        box-shadow: inset 0 0 0 5px #ffffff;
    }

    .help-field input {
        padding-right: 42px;
    }

    .help-field > span {
        top: 11px;
        right: 10px;
        width: 18px;
        height: 18px;
        border-width: 2px;
        font-size: 13px;
    }

    .phone-row {
        grid-template-columns: 40% 60%;
    }

    .arrangements-field .info-dot {
        display: inline-grid;
        width: 13px;
        height: 13px;
        margin: 0 0 8px 3px;
        border-width: 1px;
        font-size: 9px;
        vertical-align: text-top;
    }

    .arrangements-field label {
        gap: 8px;
        margin-bottom: 9px;
        font-size: 14px;
        line-height: 1.15;
    }

    .sms-check {
        align-items: flex-start;
        padding-left: 8px;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.15;
    }

    .account-actions {
        width: 100%;
        margin: 28px auto 26px;
        gap: 17px;
    }

    .account-save,
    .account-cancel {
        min-height: 43px;
        border-radius: 999px;
        font-size: 17px;
    }

    .account-cancel {
        border-width: 2px;
    }

    .account-subpanel {
        margin-top: 16px;
        padding: 22px 14px;
        border-width: 2px;
        border-radius: 3px;
    }

    .account-edit-page .portal-footer {
        padding-top: 28px;
    }

    .signup-header {
        height: 82px;
        padding-left: 24px;
    }

    .signup-header img {
        width: 145px;
    }

    .signup-main,
    .details-actual-main,
    .verify-main {
        width: calc(100% - 32px);
    }

    .signup-panel,
    .verify-panel,
    .details-actual-panel {
        padding-top: 44px;
    }

    .signup-panel h1,
    .verify-panel h1,
    .details-actual-panel h1 {
        font-size: 28px;
    }

    .signup-subtitle,
    .verify-panel p {
        font-size: 18px;
    }

    .actual-field input {
        height: 64px;
        font-size: 22px;
    }

    .actual-check {
        align-items: flex-start;
        font-size: 17px;
    }

    .signup-primary,
    .resend-button,
    .details-submit {
        width: 100%;
    }

    .actual-date label,
    .actual-date label:nth-of-type(2) {
        width: 100%;
        margin: 0 0 8px;
    }
}
    .actual-date label:nth-of-type(2) {
        width: 100%;
        margin: 0 0 8px;
    }
}
 margin: 0 0 8px;
    }
}

/* ---------- Skills Profile page ---------- */
.skills-profile-page {
    background: #f0eef8;
}

.skills-shell {
    width: calc(100% - 180px);
    max-width: 1840px;
    margin: 0 auto;
    padding: 40px 0 0;
}

.skills-score-heading {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 64px;
}

.skills-profile-page .score-topbar-title p {
    font-size: 18px;
    margin-top: 0;
}

.skills-profile-page .score-topbar-title h1 {
    font-size: 30px;
}

.skills-overview-card,
.skills-profile-card {
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
}

.skills-overview-card {
    margin-bottom: 38px;
}

.skills-overview-card h2,
.skills-profile-card h2 {
    margin: 0;
    padding: 20px 18px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .72);
    color: #0f0a22;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.1;
}

.skills-overview-content {
    min-height: 224px;
    display: flex;
    align-items: center;
    gap: 38px;
    padding: 30px 20px 32px;
}

.skills-overall-badge {
    width: 180px;
    height: 194px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 8px 8px 64px 64px;
    overflow: hidden;
    background: #b71391;
    color: #ffffff;
}

.skills-overall-badge span {
    min-height: 58px;
    display: grid;
    place-items: center;
    background: #075b72;
    font-size: 21px;
    font-weight: 700;
}

.skills-overall-badge strong {
    flex: 1;
    display: grid;
    place-items: center;
    font-size: 72px;
    font-weight: 400;
    line-height: 1;
}

.skills-divider {
    width: 1px;
    align-self: stretch;
    max-height: 194px;
    background: #d0ccd9;
}

.skills-score-rings {
    display: flex;
    align-items: flex-start;
    gap: 54px;
}

.skills-score-ring {
    width: 128px;
    text-align: center;
}

.skills-score-ring .ring {
    width: 108px;
    height: 108px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border: 5px solid #003057;
    border-radius: 50%;
    background: transparent;
}

.skills-score-ring .ring strong {
    color: #050505;
    font-size: 38px;
    font-weight: 400;
}

.skills-score-ring > span {
    display: block;
    margin-bottom: 8px;
    color: #1f1733;
    font-size: 26px;
    line-height: 1.1;
}

.skills-score-ring.reading .ring { border-color: #d1d414; }
.skills-score-ring.speaking .ring { border-color: #666666; }
.skills-score-ring.writing .ring { border-color: #ae168a; }

.skill-small-icon {
    display: inline-grid;
    place-items: center;
    color: #8b8b8b;
}

.skill-small-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skills-profile-card {
    padding-bottom: 18px;
}

.skills-list {
    padding: 26px 18px 20px;
}

.skill-profile-row {
    width: 100%;
    min-height: 76px;
    display: grid;
    grid-template-columns: 68px minmax(320px, 1fr) 650px;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 0 28px;
    border: 2px solid #b9afff;
    border-radius: 7px;
    background: #ffffff;
    color: #20126f;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.skill-profile-row.selected {
    border-color: #5832b8;
    background: #5832b8;
    color: #ffffff;
}

.skill-toggle-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #5832b8;
}

.skill-profile-row.selected .skill-toggle-icon {
    color: #ffffff;
}

.skill-toggle-icon svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skill-row-title {
    color: inherit;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.15;
}

.skill-row-metrics {
    display: grid;
    grid-template-columns: 210px minmax(260px, 360px);
    align-items: center;
    justify-content: end;
    gap: 28px;
}

.skill-row-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.skill-row-icons i {
    display: grid;
    place-items: center;
    color: #e1e1e6;
}

.skill-row-icons i.active {
    color: #6d6d6d;
}

.skill-profile-row.selected .skill-row-icons i {
    color: rgba(255, 255, 255, .26);
}

.skill-profile-row.selected .skill-row-icons i.active {
    color: #bdb4ff;
}

.skill-row-icons svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skill-progress-track {
    height: 22px;
    display: block;
    background: #bbb5ff;
    overflow: hidden;
}

.skill-progress-track span {
    height: 100%;
    display: block;
    background: #120060;
}

.skill-profile-row.selected .skill-progress-track {
    background: #ffffff;
}

.skill-profile-row.selected .skill-progress-track span {
    background: #dedbf1;
}

.skill-detail-panel {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
    gap: 82px;
    padding: 34px 0 52px;
    color: #120060;
}

.skill-detail-panel h3 {
    margin: 0 0 28px;
    color: #120060;
    font-size: 27px;
    font-weight: 700;
}

.skill-detail-panel p {
    margin: 0 0 22px;
    color: #120060;
    font-size: 27px;
    line-height: 1.16;
}

.skill-detail-panel ul {
    margin: -18px 0 22px 28px;
    padding: 0;
    color: #120060;
    font-size: 26px;
    line-height: 1.12;
}

.skill-detail-panel li {
    padding-left: 3px;
}

@media (max-width: 1200px) {
    .skills-shell {
        width: calc(100% - 56px);
        padding: 32px 28px 0;
    }

    .skills-score-rings {
        gap: 24px;
        flex-wrap: wrap;
    }

    .skill-profile-row {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .skill-row-metrics {
        grid-column: 2;
        width: 100%;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .skill-row-icons {
        justify-content: flex-start;
    }

    .skill-detail-panel {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 760px) {
    .skills-overview-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .skills-divider {
        display: none;
    }

    .skills-profile-page .score-topbar-title h1 {
        font-size: 22px;
    }

    .skill-row-title,
    .skill-detail-panel h3,
    .skill-detail-panel p,
    .skill-detail-panel ul {
        font-size: 20px;
    }
}

/* ════════════════════════════════════════
   Re-book card  (dashboard)
════════════════════════════════════════ */
.rebook-card {
    padding: 24px 32px 28px;
    text-align: center;
}

.rebook-card h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.rebook-subtitle {
    margin: 0 0 8px;
    font-size: 14px;
    color: #49464f;
}

.rebook-test-name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--purple);
}

.rebook-center {
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.6;
}

.rebook-address {
    font-weight: 400;
    color: #49464f;
    display: block;
}

.rebook-center-name {
    display: block;
    font-weight: 700;
    color: var(--ink);
}

a.rebook-btn,
.rebook-btn {
    display: inline-block;
    min-height: 40px;
    padding: 10px 28px;
    border-radius: 999px;
    border: none;
    background: #f5a623;
    color: #171123;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}

a.rebook-btn:hover,
.rebook-btn:hover { background: #e6951a; color: #171123; text-decoration: none; }

/* ════════════════════════════════════════
   Book Test page
════════════════════════════════════════ */
.booking-shell {
    width: min(920px, calc(100% - 48px));
    margin: 0 auto;
    padding: 32px 0 66px;
}

.booking-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.booking-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e0dcea;
    color: var(--ink);
    text-decoration: none;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 6px;
    transition: border-color .15s;
}

.booking-back:hover { border-color: var(--purple); color: var(--purple); }

.booking-header h1 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
}

.booking-exam-label {
    margin: 0;
    color: var(--purple);
    font-size: 14px;
    font-weight: 600;
}

/* hint accordion */
.booking-hint {
    background: #f5f3fd;
    border: 1px solid #d8d3f0;
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
}

.booking-hint summary {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--purple);
    cursor: pointer;
    list-style: none;
}

.booking-hint summary::-webkit-details-marker { display: none; }

.booking-hint ul {
    padding: 0 18px 14px 36px;
    margin: 0;
    color: #49464f;
    font-size: 13px;
    line-height: 1.7;
}

/* search row */
.booking-search-form { margin-bottom: 24px; }

.booking-search-row {
    display: flex;
    gap: 10px;
}

.booking-search-input {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    border: 2px solid var(--purple);
    border-radius: 8px;
    font-size: 15px;
    color: var(--ink);
    outline: none;
    background: #fff;
}

.booking-search-input:focus {
    box-shadow: 0 0 0 3px rgba(81, 46, 171, .12);
}

.booking-search-btn {
    height: 46px;
    padding: 0 28px;
    border: none;
    border-radius: 8px;
    background: var(--purple);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}

.booking-search-btn:hover { background: var(--pearson-purple-color); }

.booking-advanced-btn {
    height: 46px;
    padding: 0 20px;
    border: 2px solid #c9c6cf;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
    transition: border-color .15s;
}

.booking-advanced-btn:hover { border-color: var(--purple); }

/* empty/helper state */
.booking-no-results {
    padding: 24px;
    border-radius: 10px;
    background: #f5f3fd;
    border: 1px solid #d8d3f0;
    color: #49464f;
    font-size: 14px;
    text-align: center;
}

/* result cards */
.booking-results {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(18, 0, 96, .07);
}

.booking-centre-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 22px 24px;
    background: #fff;
    border-bottom: 1px solid #f0eef8;
}

.booking-centre-card:last-child { border-bottom: none; }

.booking-centre-info {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.booking-pin-svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--purple);
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
    margin-top: 3px;
}

.booking-centre-name {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: var(--purple);
    margin-bottom: 4px;
}

.booking-centre-address {
    margin: 0 0 4px;
    font-size: 13px;
    color: #4b4851;
    line-height: 1.5;
}

.booking-distance {
    font-size: 12px;
    color: #696570;
    font-weight: 600;
}

.booking-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.booking-date-input {
    height: 40px;
    padding: 0 10px;
    border: 2px solid #c9c6cf;
    border-radius: 8px;
    font-size: 13px;
    color: var(--ink);
    min-width: 150px;
    cursor: pointer;
    background: #fff;
}

.booking-date-input:focus { outline: none; border-color: var(--purple); }

.booking-time-select {
    height: 40px;
    padding: 0 10px;
    border: 2px solid #c9c6cf;
    border-radius: 8px;
    font-size: 13px;
    color: var(--ink);
    min-width: 120px;
    cursor: pointer;
    background: #fff;
}

.booking-time-select:focus { outline: none; border-color: var(--purple); }

.booking-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--purple);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}

.booking-book-btn:hover { background: var(--pearson-purple-color); color: #fff; }

/* ════════════════════════════════════════
   Order History  (My Activity)
════════════════════════════════════════ */
.order-refresh {
    font-size: 18px;
    color: var(--purple);
    cursor: pointer;
    vertical-align: middle;
}

.order-payment-card {
    padding: 20px 24px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e8e6f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(18, 0, 96, .05);
}

.order-payment-card p {
    margin: 0 0 14px;
    font-size: 14px;
    color: #49464f;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e8e6f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(18, 0, 96, .05);
}

.order-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #696570;
    background: #fafafb;
    border-bottom: 2px solid #e8e6f0;
}

.order-table td {
    padding: 16px;
    font-size: 14px;
    color: var(--ink);
    border-bottom: 1px solid #f0eef8;
    vertical-align: middle;
}

.order-table tr:last-child td { border-bottom: none; }

.order-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--purple);
    border-radius: 50%;
    color: var(--purple);
    font-size: 15px;
    text-decoration: none;
    transition: background .15s;
}

.order-arrow:hover { background: var(--purple); color: #fff; }

.order-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e6faf0;
    color: #1a7a4a;
    font-size: 12px;
    font-weight: 700;
}

.order-empty-note {
    padding: 24px;
    text-align: center;
    color: #696570;
    font-size: 14px;
}

.order-return-note {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #696570;
}

/* ════════════════════════════════════════
   Upcoming Test card  (My Activity)
════════════════════════════════════════ */
.upcoming-test-card {
    width: 455px;
    max-width: 100%;
    min-height: 305px;
    display: block;
    background: #fff;
    border: 2px solid #bdb4ff;
    border-radius: 7px;
    color: #3f3a46;
    overflow: hidden;
    margin: 0 auto;
}

.upcoming-test-body {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 28px 28px 34px;
    color: #171123;
    text-align: center;
}

.upcoming-test-body h3,
.upcoming-test-body p {
    margin: 0;
}

.upcoming-test-body h3 {
    font-size: 18px;
    font-weight: 400;
    color: var(--ink);
}

.upcoming-appointment-title {
    font-size: 19px;
    font-weight: 400;
}

.upcoming-confirmed {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
}

.upcoming-date {
    font-size: 17px;
    color: var(--ink);
    line-height: 1.45;
}

.upcoming-ref {
    font-size: 12px;
    color: #696570;
}

.upcoming-centre {
    font-size: 13px;
    color: #49464f;
    line-height: 1.35;
}

.upcoming-centre a {
    color: #0b7f92;
    text-decoration: none;
}

.scoring-test-card {
    width: 455px;
    max-width: 100%;
    min-height: 300px;
    display: block;
    margin: 0 auto;
    border: 2px solid #dedbe7;
    border-radius: 7px;
    background: #ffffff;
    color: #171123;
    overflow: hidden;
}

.scoring-test-body {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 30px 24px 28px;
    text-align: center;
}

.scoring-test-body h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 400;
}

.scoring-test-icon {
    width: 118px;
    height: 72px;
}

.scoring-test-body p {
    max-width: 330px;
    margin: 0;
    color: #24202c;
    font-size: 15px;
    line-height: 1.4;
}

.scoring-learn-more {
    width: min(100%, 280px);
    min-height: 40px;
    display: inline-grid;
    place-items: center;
    border: 2px solid #078699;
    border-radius: 999px;
    color: #087b8c;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

/* ════════════════════════════════════════
   Activity alert / success message
════════════════════════════════════════ */
.activity-messages { margin-bottom: 20px; }

.activity-alert {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.activity-alert--success {
    background: #e6faf0;
    color: #1a7a4a;
    border: 1px solid #b2e8ce;
}

.activity-alert--error {
    background: #fff0f0;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* ════════════════════════════════════════
   Book Confirm page
════════════════════════════════════════ */
.confirm-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 720px) {
    .confirm-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .portal-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px 16px;
        padding: 16px 16px 0;
        align-items: center;
    }

    .portal-brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .portal-brand img {
        width: 172px;
        margin: 0;
    }

    .portal-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        justify-content: flex-end;
        gap: 22px;
    }

    .portal-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        width: calc(100% + 32px);
        min-height: 60px;
        justify-content: center;
        gap: 26px;
        margin: 0 -16px;
        padding: 0 16px;
        background: var(--purple);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .portal-nav::-webkit-scrollbar {
        display: none;
    }

    .portal-nav a {
        height: 60px;
        flex: 0 0 auto;
        color: rgba(255, 255, 255, .72);
        font-size: 16px;
    }

    .portal-nav a.active {
        color: #ffffff;
    }

    .portal-nav a.active::after {
        height: 4px;
    }

    .portal-shell,
    .activity-shell,
    .booking-shell {
        width: calc(100% - 32px);
    }

    .portal-grid,
    .left-column,
    .right-column,
    .portal-card,
    .activity-section,
    .booking-results,
    .booking-centre-info {
        min-width: 0;
    }

    .prep-banner {
        min-height: 56px;
        padding: 10px 14px;
        white-space: normal;
        overflow: visible;
        line-height: 1.25;
    }

    .prep-banner a {
        white-space: normal;
    }

    .rebook-card,
    .incomplete-card,
    .find-card,
    .feedback-card {
        padding-right: 18px;
        padding-left: 18px;
    }

    .rebook-center,
    .rebook-center-name,
    .rebook-address,
    .booking-centre-name,
    .booking-centre-address,
    .upcoming-centre {
        overflow-wrap: anywhere;
    }

    a.rebook-btn,
    .rebook-btn,
    .profile-steps a,
    .outline-button {
        width: min(100%, 274px);
        min-width: 0;
        white-space: normal;
        text-align: center;
    }

    .incomplete-title {
        align-items: flex-start;
        gap: 12px;
    }

    .incomplete-title h2 {
        min-width: 0;
        font-size: 24px;
        line-height: 1.12;
    }

    .profile-steps {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px 18px;
        padding-left: 0;
    }

    .profile-steps a {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .resource-row {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 14px;
    }

    .resource-icon {
        width: 52px;
        height: 52px;
    }

    .booking-search-row,
    .booking-centre-card,
    .booking-slot {
        display: grid;
        grid-template-columns: 1fr;
    }

    .booking-search-btn,
    .booking-advanced-btn,
    .booking-date-input,
    .booking-time-select,
    .booking-book-btn {
        width: 100%;
    }

    .booking-slot {
        gap: 12px;
    }

    .order-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .confirm-row,
    .confirm-row--stacked {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .confirm-value {
        text-align: left;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 760px) {
    .learn-tabs {
        height: 52px;
        gap: 30px;
        overflow-x: auto;
        padding: 0 18px;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .learn-tabs::-webkit-scrollbar {
        display: none;
    }

    .learn-tabs a {
        flex: 0 0 auto;
        font-size: 16px;
    }

    .learn-shell {
        width: calc(100% - 32px);
        padding-top: 18px;
    }

    .learn-hero {
        height: 155px;
        padding-left: 22px;
        background-size: cover;
    }

    .learn-hero div {
        max-width: 56%;
        padding: 12px 14px;
        border-radius: 10px;
    }

    .learn-hero h1 {
        font-size: 20px;
        line-height: 1.08;
    }

    .product-tabs,
    .resource-product-tabs {
        gap: 28px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .product-tabs::-webkit-scrollbar,
    .resource-product-tabs::-webkit-scrollbar {
        display: none;
    }

    .product-tabs button,
    .resource-product-tabs button {
        flex: 0 0 auto;
    }

    .product-panel,
    .empty-purchase {
        padding: 20px 16px;
    }

    .product-card {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        gap: 12px 14px;
        padding: 16px 0;
    }

    .product-thumb {
        grid-row: 1 / 3;
        width: 64px;
        height: 64px;
    }

    .product-card > div:not(.product-thumb):not(.product-controls) {
        grid-column: 2;
        grid-row: 1;
    }

    .product-controls {
        grid-column: 2;
        grid-row: 2;
        justify-content: start;
    }

    .product-card strong {
        grid-column: 1 / 2;
        grid-row: 3;
        justify-self: start;
        align-self: center;
    }

    .product-card .small-outline {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
    }

    .package-section {
        padding: 16px 14px;
    }

    .package-track {
        grid-template-columns: 1fr;
    }

    .package-card {
        min-height: 0;
    }

    .purchases-hero {
        height: 140px;
    }

    .access-grid {
        grid-template-columns: 1fr;
    }

    .free-intro {
        padding: 24px 24px;
    }

    .free-intro h1 {
        font-size: 30px;
    }

    .resource-product-tabs {
        padding: 0 24px;
    }

    .resource-panel {
        padding: 24px 16px;
    }

    .resource-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .resource-layout aside {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 0 0 4px;
        scrollbar-width: none;
    }

    .resource-layout aside::-webkit-scrollbar {
        display: none;
    }

    .resource-layout aside button,
    .resource-layout aside span.sidebar-divider {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .resource-list {
        padding: 18px 16px;
        border-radius: 10px;
    }

    .resource-list h3 {
        font-size: 28px;
    }

    .resource-list article {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .resource-art {
        width: 100%;
        height: 170px;
    }
}

/* --- summary card --- */
.confirm-card {
    background: #fff;
    border: 1px solid #e8e6f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(18, 0, 96, .06);
}

.confirm-card-title {
    margin: 0;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 1px solid #f0eef8;
    background: #faf9fd;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 13px 24px;
}

.confirm-row--stacked {
    align-items: flex-start;
}

.confirm-row--sub {
    padding-top: 8px;
    padding-bottom: 16px;
}

.confirm-label {
    font-size: 13px;
    color: #696570;
    white-space: nowrap;
    flex-shrink: 0;
}

.confirm-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
    line-height: 1.5;
}

.confirm-divider {
    height: 1px;
    background: #f0eef8;
    margin: 0 24px;
}

.confirm-price-row { padding-top: 16px; }

.confirm-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.confirm-price--total {
    font-size: 18px;
    color: var(--purple);
}

/* --- what to expect notes --- */
.confirm-notes {
    margin-top: 20px;
    padding: 20px 24px;
    background: #f5f3fd;
    border: 1px solid #e0dcea;
    border-radius: 14px;
}

.confirm-notes-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--purple);
}

.confirm-notes-title svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.confirm-notes-list {
    margin: 0;
    padding: 0 0 0 18px;
}

.confirm-notes-list li {
    font-size: 13px;
    color: #49464f;
    line-height: 1.6;
    margin-bottom: 6px;
}

/* --- aside / CTA card --- */
.confirm-aside-card {
    background: #fff;
    border: 1px solid #e8e6f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(18, 0, 96, .06);
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.confirm-aside-price {
    text-align: center;
    margin: 0;
}

.confirm-aside-currency {
    font-size: 14px;
    font-weight: 600;
    color: #696570;
    vertical-align: super;
    margin-right: 2px;
}

.confirm-aside-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -1px;
}

.confirm-aside-note {
    margin: 0;
    font-size: 12px;
    color: #9896a0;
    text-align: center;
}

.confirm-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #49464f;
    line-height: 1.5;
    cursor: pointer;
}

.confirm-terms input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--purple);
    cursor: pointer;
}

.confirm-terms a {
    color: var(--purple);
    text-decoration: underline;
}

a.confirm-proceed-btn,
button.confirm-proceed-btn,
.confirm-proceed-btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-radius: 999px;
    border: none;
    background: var(--purple);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, opacity .15s;
    box-sizing: border-box;
}

a.confirm-proceed-btn:hover,
button.confirm-proceed-btn:hover,
.confirm-proceed-btn:hover { background: var(--pearson-purple-color); text-decoration: none; color: #fff; }

a.confirm-proceed-btn--disabled,
button.confirm-proceed-btn--disabled,
.confirm-proceed-btn--disabled {
    opacity: .4;
    pointer-events: none;
    cursor: not-allowed;
}

button.confirm-proceed-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.confirm-change-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--purple);
    text-decoration: none;
}

.confirm-change-link:hover { text-decoration: underline; }

.order-return-note a { color: var(--purple); font-weight: 600; }

@media (max-width: 640px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .portal-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px 16px;
        padding: 16px 16px 0;
        align-items: center;
    }

    .portal-brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .portal-brand img {
        width: 172px;
        margin: 0;
    }

    .portal-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        justify-content: flex-end;
        gap: 22px;
    }

    .portal-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: calc(100% + 32px);
        min-height: 60px;
        justify-content: center;
        gap: 26px;
        margin: 0 -16px;
        padding: 0 16px;
        background: var(--purple);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .portal-nav::-webkit-scrollbar {
        display: none;
    }

    .portal-nav a {
        height: 60px;
        flex: 0 0 auto;
        color: rgba(255, 255, 255, .72);
        font-size: 16px;
    }

    .portal-nav a.active {
        color: #ffffff;
    }

    .portal-nav a.active::after {
        height: 4px;
    }

    .portal-shell,
    .activity-shell,
    .booking-shell {
        width: calc(100% - 32px);
    }

    .portal-grid,
    .left-column,
    .right-column,
    .portal-card,
    .activity-section,
    .booking-results,
    .booking-centre-info,
    .previous-test-list,
    .previous-test-card,
    .previous-test-body {
        min-width: 0;
        max-width: 100%;
    }

    .prep-banner {
        min-height: 56px;
        padding: 10px 14px;
        white-space: normal;
        overflow: visible;
        line-height: 1.25;
    }

    .prep-banner a {
        white-space: normal;
    }

    .rebook-card,
    .incomplete-card,
    .find-card,
    .feedback-card {
        padding-right: 18px;
        padding-left: 18px;
    }

    .rebook-card h2,
    .rebook-subtitle,
    .rebook-test-name,
    .rebook-center,
    .rebook-center-name,
    .rebook-address,
    .booking-centre-name,
    .booking-centre-address,
    .upcoming-centre,
    .previous-test-card p,
    .previous-test-card h3 {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    a.rebook-btn,
    .rebook-btn,
    .profile-steps a,
    .outline-button {
        width: min(100%, 274px);
        min-width: 0;
        white-space: normal;
        text-align: center;
    }

    .incomplete-title {
        align-items: flex-start;
        gap: 12px;
    }

    .incomplete-title h2 {
        min-width: 0;
        font-size: 24px;
        line-height: 1.12;
    }

    .profile-steps {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px 18px;
        padding-left: 0;
    }

    .profile-steps a {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .resource-row {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 14px;
    }

    .resource-icon {
        width: 52px;
        height: 52px;
    }

    .booking-search-row,
    .booking-centre-card,
    .booking-slot {
        display: grid;
        grid-template-columns: 1fr;
    }

    .booking-search-btn,
    .booking-advanced-btn,
    .booking-date-input,
    .booking-time-select,
    .booking-book-btn {
        width: 100%;
    }

    .booking-slot {
        gap: 12px;
    }

    .upcoming-test-card,
    .previous-test-card {
        width: min(100%, 455px);
    }

    .previous-test-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .previous-test-actions a + a {
        border-left: 1px solid #eeeeee;
        border-top: 0;
    }

    .send-score-header {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px 20px;
    }

    .send-score-logo img {
        width: 116px;
    }

    .send-score-candidate {
        text-align: left;
    }

    .send-score-shell {
        padding: 22px 16px 44px;
    }

    .send-score-shell h1 {
        margin: 10px 0 18px;
        font-size: 28px;
    }

    .send-score-steps {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: left;
    }

    .send-score-summary {
        grid-template-columns: 1fr;
    }

    .programme-search-card,
    .programme-results-card {
        padding: 22px 16px;
    }

    .programme-search-card h2,
    .programme-results-card h2 {
        font-size: 24px;
    }

    .programme-search-form label,
    .programme-search-submit,
    .programme-result {
        grid-template-columns: 1fr;
    }

    .programme-search-form label {
        align-items: stretch;
        gap: 8px;
        padding: 12px 0;
    }

    .programme-search-submit {
        gap: 10px;
    }

    .programme-result button,
    .programme-search-submit button {
        width: 100%;
    }

    .order-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .confirm-row,
    .confirm-row--stacked {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .confirm-value {
        text-align: left;
        overflow-wrap: anywhere;
    }
}
