﻿:root {
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --bg: #ffffff;
    --text: #24303a;
    --text-strong: #153650;
    --text-muted: #5b6c7a;
    --text-soft: #6b7782;
    --line: #d7e1e8;
    --line-soft: #edf2f5;
    --green: #b7d236;
    --green-soft: #dced88;
    --green-text: #556d16;
    --green-pill-bg: #eef4d8;
    --green-pill-text: #526617;
    --orange: #f28c28;
    --orange-deep: #c9660c;
    --hero-start: #23475c;
    --hero-mid: #486a44;
    --hero-end: #6f9625;
    --focus: #7fae2c;
    --focus-soft: rgba(127,174,44,.18);
    --success-bg: #edf7e8;
    --success-border: #5d8f2f;
    --success-text: #1f3d12;
    --error-bg: #fff1f1;
    --error-border: #c62828;
    --error-text: #4a1717;
    --info-bg: #f2f7ff;
    --info-border: #2b6cb0;
    --info-text: #163a63;
    --shadow-soft: 0 6px 16px rgba(17,53,83,.04);
    --shadow-sm: 0 4px 12px rgba(18,35,48,.05);
    --shadow-md: 0 10px 22px rgba(18,35,48,.08);
}

/* =========================
           BASE
        ========================= */

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

.box {
    width: 1280px;
    max-width: 100%;
}

#logoBox {
    width: 1280px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

    #logoBox .schoollogo,
    #logoBox .edutestlogo {
        display: flex;
        align-items: center;
    }

        #logoBox .schoollogo img,
        #logoBox .edutestlogo img {
            display: block;
            max-height: 90px;
            width: auto;
            height: auto;
            object-fit: contain;
        }

    #logoBox .schoollogo {
        flex: 0 1 auto;
        min-width: 0;
    }

    #logoBox > a {
        flex: 0 0 auto;
        margin-left: auto;
    }

    #logoBox .schoollogo img {
        max-height: 100px;
    }

.content {
    max-width: 1100px;
    margin: auto;
    padding: 10px;
}

.editor-label {
    width: 70px;
}

.editor-field {
    display: block;
    float: left;
    width: 100%;
}

.registerLink {
    font-size: 14px;
    font-weight: 700;
}

.boxContent {
    padding: 24px;
    background: #fff;
}

    .boxContent > p,
    .boxContent li,
    .boxContent span,
    .boxContent div {
        color: #20252a;
    }

    .boxContent p {
        margin: 0 0 14px;
        line-height: 1.65;
    }

    .boxContent ul,
    .boxContent ol {
        margin-top: 0;
        margin-bottom: 14px;
        padding-left: 22px;
    }

    .boxContent a,
    a {
        color: #0b57d0;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

        .boxContent a:hover,
        a:hover {
            text-decoration-thickness: 2px;
        }

        .boxContent a:focus,
        a:focus,
        button:focus,
        input:focus,
        select:focus,
        textarea:focus,
        [role="button"]:focus,
        .btn:focus,
        .studentLoginLink:focus,
        .copyIconBtn:focus,
        .quick-action-cover-link:focus,
        .soft-link-cover-link:focus {
            outline: 3px solid var(--focus);
            outline-offset: 3px;
            box-shadow: 0 0 0 4px var(--focus-soft);
        }

            a:focus:not(:focus-visible),
            button:focus:not(:focus-visible),
            input:focus:not(:focus-visible),
            select:focus:not(:focus-visible),
            textarea:focus:not(:focus-visible) {
                outline: none;
                box-shadow: none;
            }

        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        select:focus-visible,
        textarea:focus-visible,
        [role="button"]:focus-visible,
        .btn:focus-visible,
        .studentLoginLink:focus-visible,
        .copyIconBtn:focus-visible,
        .quick-action-cover-link:focus-visible,
        .soft-link-cover-link:focus-visible {
            outline: 3px solid var(--focus);
            outline-offset: 3px;
            box-shadow: 0 0 0 4px var(--focus-soft);
        }

.tbox {
    max-width: 1120px;
    margin: 24px auto 5px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg);
    overflow: hidden;
}

.highlight,
.bold {
    font-weight: 700;
}

.nols {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nolsmp {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

.separator {
    height: 1px;
    margin: 26px 0;
    background: #dde5ea;
    border: 0;
}

.test-question-page .separator {
    margin: 14px 0;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 10000;
    padding: 10px 14px;
    background: #ffffff;
    color: #0b57d0 !important;
    border: 2px solid #0b57d0;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    font-weight: 700;
}

    .skip-link:focus,
    .skip-link:focus-visible {
        top: 12px;
    }

/* === Logo responsive fixes (ADD THIS AT BOTTOM) === */

#logoBox {
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 12px;
}

    #logoBox .schoollogo {
        flex: 1 1 auto;
        min-width: 0;
    }

        #logoBox .schoollogo img {
            max-width: 100%;
            height: auto;
        }

/* Small screens */
@media (max-width: 640px) {
    #logoBox {
        gap: 8px;
    }

        #logoBox .schoollogo img {
            max-height: 54px;
        }

        #logoBox .edutestlogo img {
            max-height: 34px;
        }
}

/* Very small screens (360px) */
@media (max-width: 400px) {
    #logoBox .schoollogo img {
        max-height: 48px;
    }

    #logoBox .edutestlogo img {
        max-height: 28px;
    }
}

#logoBox .schoollogo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 70%; /* KEY: prevents it taking over */
}

    #logoBox .schoollogo img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

/* =========================
           HEADINGS
        ========================= */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-strong);
}

h2 {
    margin: 0 0 14px 0;
    font-size: 28px;
    line-height: 1.2;
    color: #1f252b;
}

h3 {
    background: linear-gradient(180deg, #c6dc00 0%, #b6cf16 100%);
    color: #111;
    padding: 10px 14px;
    margin: 24px 0 14px;
    font-size: 20px;
    font-weight: 700;
    border: 1px solid #aabd2d;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
}

/* =========================
           BUTTONS
        ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    min-width: 150px;
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
    text-align: center;
}

    .btn:hover,
    .btn:focus-visible {
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(1px);
    }

    .btn[disabled],
    .btn.disabled {
        opacity: .65;
        cursor: not-allowed;
        transform: none !important;
    }

    .btn.btn-orange {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #f6a94d;
        color: #2f1b05 !important;
        padding: 8px 14px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none !important;
        border: 1px solid #c9660c;
        transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

        .btn.btn-orange:hover,
        .btn.btn-orange:focus-visible {
            background: #ee9a38; /* subtle hover */
            border-color: #d87f1f;
            color: #2f1b05 !important;
        }

.btn-white {
    background: #ffffff;
    color: var(--text) !important;
    border-color: #bcc9d3;
    box-shadow: 0 6px 14px rgba(18,35,48,.06);
}

    .btn-white:hover,
    .btn-white:focus-visible {
        color: var(--text) !important;
        border-color: #9fb1bf;
        box-shadow: 0 8px 18px rgba(18,35,48,.09);
    }

    .btn-white.js-confirm-regenerate {
        opacity: 0.9;
    }

.btn-red {
    background: linear-gradient(180deg, #d9534f 0%, #b92b27 100%);
    color: #fff !important;
    border-color: #9f211d;
    box-shadow: 0 8px 16px rgba(217,83,79,.20);
}

    .btn-red:hover,
    .btn-red:focus-visible {
        color: #fff !important;
        box-shadow: 0 10px 18px rgba(217,83,79,.24);
    }

.btn-green {
    background: linear-gradient(180deg, #4f9f4f 0%, #3d833d 100%);
    color: #fff !important;
    border-color: #2f6f2f;
    box-shadow: 0 8px 16px rgba(92,184,92,.20);
}

    .btn-green:hover,
    .btn-green:focus-visible {
        color: #fff !important;
        box-shadow: 0 10px 18px rgba(92,184,92,.24);
    }

.button-row,
.studentAccessButtons,
.mfa-rollout-actions,
.manage-students-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.studentAccessForm,
.student-access-toggle-form {
    display: inline-block;
    margin: 0;
}

/* =========================
           HERO
        ========================= */

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    padding: 30px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 54%, var(--hero-end) 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 38px rgba(18,35,48,.10);
    color: #fff;
}

    .dashboard-hero::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 7px;
        background: linear-gradient(90deg, var(--green), var(--green-soft));
    }

    .dashboard-hero::after {
        content: "";
        position: absolute;
        right: -40px;
        top: -40px;
        width: 240px;
        height: 240px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(182,212,55,.16), transparent 68%);
        pointer-events: none;
    }

.dashboard-hero-left {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.dashboard-hero-right {
    flex: 0 0 180px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.dashboard-hero-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #eef7cf !important;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.dashboard-hero-title {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
    font-size: 38px;
    line-height: 1.14;
    letter-spacing: -.4px;
    font-weight: 700;
    color: #fff;
}

.dashboard-hero-text {
    margin: 0;
    max-width: 720px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,.95);
}

.dashboard-hero-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

    .dashboard-hero-actions ul,
    .dashboard-hero-actions ol {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .dashboard-hero-actions li {
        margin: 0;
    }

    .dashboard-hero-actions a,
    .dashboard-hero-actions input[type="submit"],
    .dashboard-hero-actions button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 11px 18px;
        border-radius: var(--radius-sm);
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        border: 1px solid rgba(255,255,255,.40);
        background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(245,247,248,.94) 100%);
        color: var(--text) !important;
        box-shadow: 0 8px 18px rgba(18,35,48,.10);
        transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

        .dashboard-hero-actions a:hover,
        .dashboard-hero-actions a:focus-visible,
        .dashboard-hero-actions input[type="submit"]:hover,
        .dashboard-hero-actions input[type="submit"]:focus-visible,
        .dashboard-hero-actions button:hover,
        .dashboard-hero-actions button:focus-visible {
            transform: translateY(-1px);
            box-shadow: 0 10px 20px rgba(18,35,48,.16);
            text-decoration: none;
        }

    .dashboard-hero-actions.logout-clean a,
    .dashboard-hero-actions.logout-clean button,
    .dashboard-hero-actions.logout-clean input[type="submit"] {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        color: rgba(255,255,255,0.92) !important;
        font-size: 14px;
        font-weight: 700;
        padding: 6px 8px;
        min-height: 0;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

        .dashboard-hero-actions.logout-clean a:hover,
        .dashboard-hero-actions.logout-clean a:focus-visible {
            color: #ffffff !important;
            opacity: 1;
            text-decoration-thickness: 2px;
        }

        .dashboard-hero-actions.logout-clean a::before {
            content: "⏻";
            margin-right: 6px;
            font-size: 13px;
            opacity: 0.9;
        }

.hero-alert {
    display: flex;
    max-width: 500px;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
}

    .hero-alert .alert-text {
        flex: 1 1 220px;
        min-width: 0;
        font-size: 14px;
        color: #fff;
        margin: 0;
    }

    .hero-alert .alert-btn {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--orange);
        color: #2f1b05 !important;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none !important;
        border: 1px solid var(--orange-deep);
        white-space: nowrap;
    }

        .hero-alert .alert-btn:hover,
        .hero-alert .alert-btn:focus-visible {
            background: var(--orange-deep);
        }

/* =========================
           DASHBOARD LAYOUT
        ========================= */

.dashboard-shell {
    display: block;
}

.dashboard-top-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 20px;
}

.dashboard-top-col {
    width: 50%;
    min-width: 0;
}

.dashboard-main-right {
    min-width: 0;
    width: 100%;
}

/* =========================
           CARDS
        ========================= */

.dashboard-card {
    margin-bottom: 20px;
}

.dashboard-card,
.student-profile-card {
    border: 1px solid #dbe5ec;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.dashboard-card--soft {
    background: #ffffff;    
}

.dashboard-card-header {
    position: relative;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 0;
    box-shadow: none;
}

    .dashboard-card-header::before {
        content: "";
        display: block;
        width: 86px;
        height: 6px;
        margin: 0 0 14px 0;
        background: linear-gradient(90deg, var(--green) 0%, var(--green-soft) 100%);
        border-top-left-radius: var(--radius-lg);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 8px;
        border-top-right-radius: 0;
    }

.dashboard-card-header-main {
    padding: 18px 20px 0 20px;
}

.dashboard-card-kicker {
    display: inline-block;
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .45px;
    text-transform: uppercase;
    color: #556c14 !important;
}

.dashboard-card-title {
    margin: 0 0 6px 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-strong);
}

.dashboard-card-subtitle {
    margin: 8px 0 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: #556876;
}

.dashboard-card-body {
    padding: 18px 20px 22px;
}

    .dashboard-card-body > :last-child {
        margin-bottom: 0;
    }

.dashboard-top-col .dashboard-card {
    height: 100%;
}

.dashboard-top-col .dashboard-card-body,
.student-access-card .dashboard-card-body,
.student-access-empty-card .dashboard-card-body {
    min-height: 0;
}

.manage-students-card .dashboard-card-body {
    padding-bottom: 20px;
}

.dashboard-card-title--with-help {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
}

.infoIconBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    border: 1px solid #b7c8d3;
    border-radius: 50%;
    background: #f3f8f4;
    color: #556876;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

    .infoIconBtn:hover,
    .infoIconBtn:focus-visible {
        background: #eaf4e4;
        border-color: #9fbb50;
        color: #153650;
    }

.helpPopover {
    position: absolute;
    top: 100%;
    left: 20px;
    z-index: 30;
    width: min(360px, calc(100vw - 48px));
    margin-top: 10px;
    padding: 16px 18px;
    border: 1px solid #d7e1e8;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(18,35,48,.12);
}

.helpPopover-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 700;
    color: #153650;
}

.helpPopover-list {
    margin: 0;
    padding-left: 18px;
}

    .helpPopover-list li {
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 1.6;
        color: #24303a;
    }

        .helpPopover-list li:last-child {
            margin-bottom: 0;
        }

@media (max-width: 640px) {
    .helpPopover {
        left: 0;
        width: min(340px, calc(100vw - 32px));
    }
}

/* =========================
           BADGES / ALERTS
        ========================= */

.newBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 10px;
    margin-left: 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #44580d !important;
    background: #edf4d8;
    vertical-align: middle;
    border: 1px solid #d8e6ae;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid transparent;
}

.pill-orange {
    background: #f7e7d8;
    color: #8b4c0d !important;
    border-color: #edc79d;
}

.mfa-rollout-alert {
    max-width: 1120px;
    margin: 22px auto 0;
    padding: 20px 22px;
    border-radius: 22px;
    background: #fff7ef;
    border: 1px solid #e7c49b;
    box-shadow: 0 8px 22px rgba(18,35,48,.06);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

    .mfa-rollout-alert::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 8px;
        background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
    }

.mfa-rollout-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-left: 6px;
    flex: 1;
}

.mfa-rollout-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(242,140,40,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #6a3d09;
}

.mfa-rollout-copy {
    flex: 1;
}

.mfa-rollout-title {
    margin: 0 0 6px 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #4d3726;
}

.mfa-rollout-copy p {
    margin: 0;
    color: #5e4b3c;
    font-size: 15px;
    line-height: 1.65;
}

    .mfa-rollout-copy p + p {
        margin-top: 4px;
    }

.mfa-rollout-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-end;
    flex-shrink: 0;
}

.infoMsgNewLarge,
.errorMsg,
.infoMsg {
    border-radius: var(--radius-md);
}

    .infoMsgNewLarge p {
        margin: 8px 0;
    }

.alert-box,
.errorMsg,
.infoMsg,
.infoMsgNewLarge,
.field-validation-error,
.validation-summary-errors {
    border-radius: 10px;
    padding: 14px 16px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.6;
    border-left: 5px solid;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.alert-error,
.errorMsg,
.field-validation-error,
.validation-summary-errors {
    background: var(--error-bg);
    border-left-color: var(--error-border);
    color: var(--error-text);
}

.alert-success {
    background: var(--success-bg);
    border-left-color: var(--success-border);
    color: var(--success-text);
}

.infoMsg,
.infoMsgNewLarge {
    background: var(--info-bg);
    border-left-color: var(--info-border);
    color: var(--info-text);
}

    .alert-box p,
    .errorMsg p,
    .infoMsg p,
    .infoMsgNewLarge p,
    .field-validation-error p,
    .validation-summary-errors p {
        margin: 0 0 6px 0;
    }

        .alert-box p:last-child,
        .errorMsg p:last-child,
        .infoMsg p:last-child,
        .infoMsgNewLarge p:last-child,
        .field-validation-error p:last-child,
        .validation-summary-errors p:last-child {
            margin-bottom: 0;
        }

        .alert-box p:first-child,
        .field-validation-error p:first-child,
        .validation-summary-errors p:first-child {
            font-weight: 700;
        }

.muted-text {
    color: #4e5f6d;
}

/* =========================
           PRACTICE TEST ROWS
        ========================= */

.quick-action-list,
.soft-link-list {
    display: grid;
    gap: 14px;
}

.quick-action-row,
.soft-link-item {
    position: relative;
    display: block;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    overflow: hidden;
}

.quick-action-row {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #cfdce5;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, var(--shadow-sm);
}

    .quick-action-row::before {
        content: "";
        display: block;
        height: 6px;
        width: calc(100% + 36px);
        margin: -18px -18px 14px -18px;
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
        background: linear-gradient(90deg, var(--green) 0%, var(--green-soft) 100%);
    }

    .quick-action-row:hover,
    .quick-action-row:focus-within {
        transform: translateY(-2px);
        border-color: #b7c8d3;
        box-shadow: var(--shadow-md);
        text-decoration: none;
    }

.quick-action-row-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--green-text);
    margin-bottom: 6px;
}

.quick-action-row-desc {
    font-size: 14px;
    color: #556876;
    line-height: 1.6;
}

.quick-action-row-meta {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 6px; /* not pill */
    background: #f3f8d9;
    border: 0; /* remove border = less button feel */
    font-size: 12px;
    font-weight: 700;
    color: #3e4f0f;
}

.quick-action-row--cardlink,
.soft-link-item--cardlink {
    position: relative;
}

    .quick-action-row--cardlink .quick-action-row-title,
    .quick-action-row--cardlink .quick-action-row-desc,
    .quick-action-row--cardlink .quick-action-row-meta,
    .soft-link-item--cardlink .soft-link-title,
    .soft-link-item--cardlink .soft-link-desc {
        position: relative;
        z-index: 1;
    }

.soft-link-item {
    padding: 16px 18px;
    border: 1px solid #d7e1e8;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

    .soft-link-item::before {
        content: "";
        display: block;
        height: 6px;
        width: calc(100% + 36px);
        margin: -16px -18px 14px -18px;
        background: linear-gradient(90deg, var(--green) 0%, var(--green-soft) 100%);
    }

    .soft-link-item:hover,
    .soft-link-item:focus-within {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(17,53,83,.08);
        border-color: #c1d0d9;
        text-decoration: none;
    }

.soft-link-title {
    display: block;
    margin: 0 0 6px 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #16354d;
}

.soft-link-desc {
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.card-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #f3f7ff;
    border: 1px solid #c5d6ee;
    color: #153650 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .card-action-link:hover,
    .card-action-link:focus-visible {
        background: #eaf1ff;
        border-color: #adc7ea;
        color: #153650 !important;
        text-decoration: none !important;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(18,35,48,.08);
    }

    .card-action-link::after {
        content: "";
        font-size: 14px;
        line-height: 1;
    }


/* =========================
           STUDENT PRACTICE ACCESS
        ========================= */

.student-access-empty-panel,
.student-access-panel {
    padding: 18px;
    border: 1px solid #d7e1e8;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

    .student-access-empty-panel::before,
    .student-access-panel::before {
        content: "";
        display: block;
        height: 6px;
        width: calc(100% + 36px);
        margin: -18px -18px 16px -18px;
        background: linear-gradient(90deg, #b7d236 0%, #dced88 100%);
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }

.student-access-empty-list.compact {
    margin: 6px 0 12px 16px;
    line-height: 1.6;
}

.student-access-empty-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #eef4d8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #4c6111;
}

.student-access-empty-text {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.65;
    color: #24303a;
    font-weight: 700;
}

.student-access-empty-list {
    margin: 0 0 16px 18px;
    padding: 0;
    color: #556876;
    font-size: 14px;
    line-height: 1.75;
}

.student-access-empty-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.student-access-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.student-access-label {
    font-weight: 700;
    font-size: 15px;
    color: #153650;
}

.student-access-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #b8c6d0;
    background: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #24303a;
}

    .student-access-toggle:hover,
    .student-access-toggle:focus-visible {
        background: #f7fafc;
    }

    .student-access-toggle .toggle-track {
        position: relative;
        width: 42px;
        height: 24px;
        border-radius: 999px;
        background: #8d99a3;
        display: inline-block;
        transition: all .2s ease;
    }

    .student-access-toggle .toggle-thumb {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        transition: all .2s ease;
    }

    .student-access-toggle.is-on .toggle-track {
        background: #2e7d32;
    }

    .student-access-toggle.is-on .toggle-thumb {
        left: 21px;
    }

    .student-access-toggle.is-off .toggle-track {
        background: #7f8b95;
    }

    .student-access-toggle.is-off .toggle-thumb {
        left: 3px;
    }

    .student-access-toggle .toggle-text {
        min-width: 64px;
        text-align: left;
    }

.student-access-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

    .student-access-actions .btn {
        flex: 1;
        min-width: 0;
    }

.studentAccessValue {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: baseline;
    color: #16222c;
}

.studentPinValue {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: baseline;
    color: #16222c;
}

.studentLoginDetailsPanel {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #d9e5c8;
    background: #f8fbeb;
    border-radius: var(--radius-md);
}

.studentLoginDetailsTitle {
    position: relative;
    padding-left: 0;
    font-size: 18px !important;
    font-weight: 700;
    margin-bottom: 8px;
    color: #22320a;
}

.studentLoginDetailRow {
    display: flex;
    align-items: baseline;
    margin: 6px 0;
}

.studentLoginDetailLabel {
    display: inline-block;
    width: 110px;
    min-width: 110px;
    font-weight: 700;
    font-size: 14px;
    color: #111;
    text-align: left;
    vertical-align: top;
}

.studentLoginDetailRowLink {
    align-items: flex-start;
}

.studentLoginLinkWrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    max-width: 100%;
}

.studentLoginLink {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 11px;
    padding: 6px 10px;
    word-break: break-all;
    max-width: 100%;
    font-weight: 700;
    color: #0b57d0;
    background: #f3f7ff;
    border: 1px solid #c5d6ee;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    .studentLoginLink:hover,
    .studentLoginLink:focus-visible {
        background: #eaf1ff;
        border-color: #adc7ea;
        text-decoration-thickness: 2px;
    }

.studentLoginDetailsFoot {
    margin-bottom: 0;
    margin-top: 18px !important;
}

/* =========================
           COPY BUTTONS
        ========================= */

.copyIconBtn {
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: 1px solid #adbcc7;
    border-radius: var(--radius-xs);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .copyIconBtn:hover,
    .copyIconBtn:focus-visible {
        background: #f6f8fa;
        border-color: #879aa8;
    }

    .copyIconBtn.copied {
        border-color: #3e7d2c;
        background: #f3fff3;
    }

    .copyIconBtn::after {
        content: attr(data-tooltip);
        position: absolute;
        top: -32px;
        left: 50%;
        transform: translateX(-50%);
        background: #1f2933;
        color: #fff;
        font-size: 11px;
        padding: 4px 7px;
        border-radius: 6px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .copyIconBtn.copied::after,
    .copyIconBtn:hover::after,
    .copyIconBtn:focus-visible::after {
        opacity: 1;
        transform: translateX(-50%) translateY(-2px);
    }

.copyIcon {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 14px;
}

    .copyIcon:before,
    .copyIcon:after {
        content: "";
        position: absolute;
        box-sizing: border-box;
        border: 1.6px solid #475866;
        background: #fff;
        border-radius: 0;
    }

    .copyIcon:before {
        width: 10px;
        height: 12px;
        top: 0;
        left: 3px;
    }

    .copyIcon:after {
        width: 10px;
        height: 12px;
        top: 3px;
        left: 0;
    }

.copyIconBtn.copied .copyIcon:before,
.copyIconBtn.copied .copyIcon:after {
    border-color: #3e7d2c;
}

/* =========================
           MANAGE STUDENTS
        ========================= */
.external-link::after {
    content: "↗";
    margin-left: 6px;
    font-size: 14px;
    line-height: 1;
    opacity: 0.7;
}

.student-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.student-name-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dff1e7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #1b5e20;
}

.manage-students-intro {
    margin-bottom: 16px;
    color: #4b5258;
    line-height: 1.65;
}

.manage-students-actions {
    margin-bottom: 18px;
}

.manage-students-intro-row {
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #dbe5ec;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(18,35,48,.05);
    position: relative;
}

    .manage-students-intro-row::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        background: linear-gradient(90deg, var(--green) 0%, var(--green-soft) 100%);
    }

.manage-students-intro-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.65;
    color: #4b5258;
}

    .manage-students-intro-text strong {
        color: #153650;
        font-weight: 700;
    }

.manage-students-intro-action {
    flex-shrink: 0;
}

.manage-students-intro-row--info {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

    .manage-students-intro-row--info::before {
        background: linear-gradient(90deg, #cfdce5 0%, #e6eef4 100%);
    }

.student-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.student-profile-card {
    position: relative;
    border: none;
    border-radius: 16px;
    background: #fbfcfb;
    box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, var(--shadow-sm);
    overflow: hidden;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .student-profile-card::before {
        content: "";
        display: block;
        height: 6px;
        width: 100%;
        background: linear-gradient(90deg, var(--green) 0%, var(--green-soft) 100%);
    }

    .student-profile-card:hover,
    .student-profile-card:focus-within {
        transform: translateY(-2px);
        border-color: #c4d3dd;
        box-shadow: 0 1px 0 rgba(255,255,255,.92) inset, var(--shadow-md);
    }

.student-profile-card-header {
    padding: 18px 18px 8px;
    border-bottom: 0;
    background: transparent;
}

.student-profile-card-body {
    padding: 0 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .student-profile-card-body .btn {
        align-self: flex-start;
    }

.student-profile-card h3 {
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    font-size: 18px;
    font-weight: 700;
    color: #153650;
    margin: 0;
}

.student-profile-card p {
    margin: 0 0 12px;
}

.student-profile-card ul {
    margin-top: 0;
    margin-bottom: 0;
}

.student-profile-card li {
    background: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

.student-profile-card .nols,
.student-profile-card .nolsmp {
    margin-bottom: 0;
}

.student-profile-card .highlight,
.student-profile-card .bold {
    color: #1f252b;
}

.student-primary-link {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

    .student-primary-link li {
        margin: 0;
    }

    .student-primary-link a {
        min-width: 145px;
        border-radius: var(--radius-sm);
    }

.dashboard-main-right .manage-students-card {
    margin-top: 0;
}

.student-action-block {
    margin-top: 6px;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #d9e4eb;
    background: #fbfcfd;
}

    .student-action-block + .student-action-block {
        margin-top: 10px;
    }

.student-action-block--apply {
    border-color: #cfe3a6;
    background: #f7fce9;
    box-shadow: 0 4px 12px rgba(106,129,38,.08);
}

.student-action-block--registered {
    border-color: #d7e1e8;
    background: #f7fafc;
}

.student-action-block--warning {
    border-color: #efc79e;
    background: #fff7ef;
}

.student-action-label {
    display: inline-block;
    margin: 0 0 8px 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.student-action-block--apply .student-action-label {
    background: #e9f3c8;
    color: #4f6512;
}

.student-action-block--registered .student-action-label {
    background: #eaf0f5;
    color: #445764;
}

.student-action-block--warning .student-action-label {
    background: #fde3c9;
    color: #8d4c11;
}

.student-action-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #24303a;
}

.student-action-link {
    font-size: 15px;
    font-weight: 600;
    color: #0b57d0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .student-action-link:hover,
    .student-action-link:focus-visible {
        text-decoration-thickness: 2px;
    }

.student-registered-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #24303a;
}

.student-year-group {
    margin-top: 10px;
}

.student-year-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #153650;
}

.student-history-list,
.student-apply-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .student-history-list li,
    .student-apply-list li {
        margin: 0;
        padding: 6px 0;
        border-radius: 8px;
        background: none;
    }

        .student-history-list li + li,
        .student-apply-list li + li {
            margin-top: 8px;
        }

.student-history-link {
    font-weight: 600;
    color: #1f4fbf;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .student-history-link:hover,
    .student-history-link:focus-visible {
        text-decoration-thickness: 2px;
    }

/* =========================
           CONFIRM MODAL
        ========================= */

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

    .confirm-modal.is-open {
        display: block;
    }

.confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 35, 48, 0.48);
    backdrop-filter: blur(2px);
}

.confirm-modal__dialog {
    position: relative;
    width: calc(100% - 32px);
    max-width: 520px;
    margin: 10vh auto 0;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%);
    border: 1px solid #d7e1e8;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(18,35,48,.18);
    overflow: hidden;
}

.confirm-modal__accent {
    height: 6px;
    background: linear-gradient(90deg, #b7d236 0%, #dced88 100%);
}

.confirm-modal__content {
    padding: 22px 22px 20px;
}

.confirm-modal__kicker {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .45px;
    text-transform: uppercase;
    color: #556c14;
}

.confirm-modal__title {
    margin: 0 0 12px 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    color: #153650;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.confirm-modal__text {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #556876;
}

.confirm-modal__text--strong {
    color: #24303a;
    font-weight: 700;
}

.confirm-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

    .confirm-modal__actions .btn {
        min-width: 130px;
    }

/* =========================
           FOOTER
        ========================= */

footer.centered {
    background: #ffffff;
    border: none;
    box-shadow: none;
    border-top: 1px solid #e6edf2;
    position: relative;
    padding-top: 16px;
}

    footer.centered::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #b7d12a, #a2bb24);
    }

    footer.centered p {
        margin: 0 0 10px;
        font-size: 14px;
        line-height: 1.7;
        color: #586b79;
    }

        footer.centered p:last-of-type {
            margin-bottom: 0;
        }

    footer.centered a {
        color: #153650;
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

        footer.centered a:hover,
        footer.centered a:focus-visible {
            text-decoration-thickness: 2px;
        }

    footer.centered img {
        display: block;
        margin: 18px auto 0;
        width: 72px;
        height: auto;
        opacity: 0.98;
    }

.footer-badge {
    margin-top: 8px; 
}

/* =========================
           FORM / VALIDATION HELPERS
        ========================= */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    max-width: 100%;
}

    input.input-validation-error,
    select.input-validation-error,
    textarea.input-validation-error {
        border-color: #c62828 !important;
        box-shadow: 0 0 0 3px rgba(198,40,40,.12);
    }

.field-validation-valid {
    display: none;
}

/* =========================
           MOTION / ACCESSIBILITY
        ========================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .btn:hover,
    .btn:focus-visible,
    .quick-action-row:hover,
    .quick-action-row:focus-within,
    .soft-link-item:hover,
    .soft-link-item:focus-within,
    .student-profile-card:hover,
    .student-profile-card:focus-within {
        transform: none !important;
    }
}

/* =========================
           RESPONSIVE
        ========================= */

@media (max-width: 900px) {
    .btn {
        width: 100%;
        min-width: 0;
    }

    .button-row,
    .studentAccessButtons,
    .mfa-rollout-actions,
    .manage-students-actions,
    .student-access-empty-actions,
    .student-access-actions,
    .confirm-modal__actions {
        display: block;
    }

        .button-row > *,
        .studentAccessButtons > *,
        .mfa-rollout-actions > *,
        .manage-students-actions > *,
        .student-access-empty-actions > *,
        .student-access-actions > *,
        .confirm-modal__actions > * {
            display: block;
            margin-bottom: 10px;
            width: 100%;
        }

    .dashboard-top-row {
        display: block;
        margin-bottom: 0;
    }

    .dashboard-top-col {
        width: 100%;
        margin-bottom: 20px;
    }

    .dashboard-hero {
        display: block;
        padding: 24px 20px;
    }

    .dashboard-hero-right {
        display: block;
        margin-top: 18px;
    }

    .dashboard-hero-title {
        font-size: 30px;
    }

    .mfa-rollout-alert {
        display: block;
    }

    .mfa-rollout-actions {
        margin-top: 16px;
    }

    .manage-students-intro-row {
        display: block;
    }

    .manage-students-intro-action {
        margin-top: 12px;
    }

    .student-card-grid {
        grid-template-columns: 1fr;
    }

    .studentLoginDetailRow {
        display: block;
    }

    .studentLoginDetailLabel {
        width: auto;
        min-width: 0;
        display: block;
        margin-bottom: 4px;
    }

    .studentLoginLinkWrap {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .app-shell .boxContent {
        padding-left: 0;
        padding-right: 0;
    }

    .app-shell .tbox {
        margin-top: 16px;
        border-radius: 0;
        box-shadow: none;
        border-left: none;
        border-right: none;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 18px;
    }

    .dashboard-hero-title {
        font-size: 28px;
    }

    .studentAccessValue,
    .studentPinValue {
        font-size: 20px;
        letter-spacing: 2px;
        word-break: break-word;
    }

    .studentPinValue {
        letter-spacing: 5px;
    }

    .copyIconBtn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .hero-alert {
        flex-direction: column;
        align-items: stretch;
    }

        .hero-alert .alert-text {
            flex: none;
            width: 100%;
        }

        .hero-alert .alert-btn {
            display: flex;
            width: 100%;
            justify-content: center;
        }
}

/* =========================
   PRACTICE TEST SUMMARY
========================= */

.prac-summary-page .boxTitle {
    margin-bottom: 0;
}

.prac-summary-card {
    border: 1px solid #dbe5ec;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.prac-summary-top-actions {
    margin-bottom: 18px;
}

.prac-summary-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 8px;
    border: 1px solid #d7e1e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.prac-summary-table {
    width: 100%;
    min-width: 920px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

    .prac-summary-table caption {
        caption-side: top;
    }

    .prac-summary-table thead th {
        padding: 14px 14px;
        font-size: 13px;
        line-height: 1.4;
        font-weight: 700;
        color: #153650;
        background: #f7fafc;
        border-bottom: 1px solid #d7e1e8;
        text-align: left;
        vertical-align: middle;
        white-space: nowrap;
    }

    .prac-summary-table thead tr.prac-summary-table-group th {
        background: #e8f0c8;
        color: #3e4f0f;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .3px;
        text-align: center;
        font-weight: 700;
    }

    .prac-summary-table tbody td {
        padding: 14px 14px;
        font-size: 14px;
        line-height: 1.5;
        color: #24303a;
        border-bottom: 1px solid #edf2f5;
        vertical-align: middle;
        background: #fff;
    }

    .prac-summary-table tbody tr:nth-child(even) td {
        background: #fbfcfd;
    }

    .prac-summary-table tbody tr:hover td,
    .prac-summary-table tbody tr:focus-within td {
        background: #f6faf1;
    }

    .prac-summary-table tbody tr:last-child td {
        border-bottom: none;
    }

    .prac-summary-table .rightedText {
        text-align: right;
    }

    .prac-summary-table .centeredText {
        text-align: center;
    }

.prac-summary-action {
    min-width: 110px;
}

.prac-summary-footer-action {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.prac-summary-footer-text {
    margin: 0;
    font-size: 15px;
    color: #4e5f6d;
}

@media (max-width: 900px) {
    .prac-summary-top-actions .btn {
        width: 100%;
    }

    .prac-summary-footer-action {
        display: block;
    }
}

@media (max-width: 640px) {
    .prac-summary-table-wrap {
        border-radius: 14px;
    }

    .prac-summary-table {
        min-width: 760px;
    }

        .prac-summary-table thead th,
        .prac-summary-table tbody td {
            padding: 12px 12px;
            font-size: 13px;
        }

    .prac-summary-action {
        min-width: 96px;
        font-size: 13px;
        min-height: 40px;
        padding: 9px 12px;
    }

    .prac-summary-footer-text {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* =========================
   APP NAV BAR
========================= */

.app-nav {
    border: none;
    background: #fff;
    margin-bottom: 10px;
}

.app-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2px 0 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 0;
}

.app-nav-left a,
.app-nav-right a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #153650 !important;
    text-decoration: none !important;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

    .app-nav-left a::before,
    .app-nav-right a::before {
        content: "⏻";
        font-size: 13px;
        opacity: 0.7;
    }

    .app-nav-left a:hover,
    .app-nav-left a:focus-visible,
    .app-nav-right a:hover,
    .app-nav-right a:focus-visible {
        background: #f3f8d9;
        color: #4f6512 !important;
        text-decoration: none !important;
    }

/* =========================
   PRACTICE TEST INIT / B VIEW
========================= */

.prac-init-card {
    border: 1px solid #dbe5ec;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.prac-init-top-actions {
    margin-bottom: 18px;
}

.prac-init-copy {
    margin-bottom: 18px; 
    line-height: 1.7; 
}

.prac-init-copy p {
    margin-bottom: 12px;
}

.prac-init-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    margin: 18px 0 22px;
    margin-bottom: 26px;
}

.prac-init-label {
    min-width: 180px;
    font-size: 15px;
    font-weight: 700;
    color: #153650;
    padding-top: 10px;
}

.prac-init-copy p:last-child {
    margin-bottom: 22px; 
}

.prac-init-field {
    flex: 1 1 260px;
    min-width: 260px;
}

.prac-init-input {
    width: 100%;
    max-width: 340px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #bcc9d3;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.4;
    color: #24303a;
    background: #fff;
}

.prac-init-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 12px;
    border: 1px solid #d7e1e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.prac-init-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

    .prac-init-table thead th {
        padding: 14px;
        font-size: 13px;
        line-height: 1.4;
        font-weight: 700;
        color: #153650;
        background: #f7fafc;
        border-bottom: 1px solid #d7e1e8;
        text-align: left;
        vertical-align: middle;
        white-space: nowrap;
    }

    .prac-init-table thead tr.prac-init-table-group th {
        background: #e8f0c8;
        color: #3e4f0f;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .3px;
        text-align: center;
    }

    .prac-init-table tbody td {
        padding: 14px;
        font-size: 14px;
        line-height: 1.5;
        color: #24303a;
        border-bottom: 1px solid #edf2f5;
        vertical-align: middle;
        background: #fff;
    }

    .prac-init-table tbody tr:nth-child(even) td {
        background: #fbfcfd;
    }

    .prac-init-table tbody tr:hover td,
    .prac-init-table tbody tr:focus-within td {
        background: #f6faf1;
    }

    .prac-init-table tbody tr:last-child td {
        border-bottom: none;
    }

.prac-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.prac-status--progress {
    background: #fff1df;
    color: #8b4c0d;
}

.prac-status--notstarted {
    background: #eef4f8;
    color: #465a67;
}

.prac-status--complete {
    background: #edf7e8;
    color: #2d5d17;
}

.prac-status--invalid {
    background: #fff1f1;
    color: #8a1f1f;
}

.prac-expired {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #8a1f1f;
    background: #fff1f1;
}

.prac-init-action {
    min-width: 110px;
}

.prac-inline-error {
    margin: 0;
    text-align: left;
}

.prac-init-footer-note {
    margin-top: 18px;
    text-align: center;
    color: #556876;
}

@media (max-width: 900px) {
    .prac-init-top-actions .btn {
        width: 100%;
    }

    .prac-init-form-row {
        display: block;
    }

    .prac-init-label {
        display: block;
        min-width: 0;
        padding-top: 0;
        margin-bottom: 6px;
    }

    .prac-init-field {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .prac-init-table {
        min-width: 720px;
    }

        .prac-init-table thead th,
        .prac-init-table tbody td {
            padding: 12px;
            font-size: 13px;
        }

    .prac-init-action {
        min-width: 96px;
        min-height: 40px;
        font-size: 13px;
        padding: 9px 12px;
    }
}

.prac-info-box {
    background: #f3f8f4;
    border-left: 5px solid #4CAF50;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
    color: #2f3e34;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.prac-info-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2e7d32; /* your green theme */
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 6px;
}

    .prac-info-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 3px;
        background: #ff9800; /* orange accent */
        border-radius: 2px;
    }

    /* spacing */
    .prac-info-box p {
        margin: 0 0 8px 0;
        line-height: 1.5;
    }

        .prac-info-box p:last-child {
            margin-bottom: 0;
        }

    /* links */
    .prac-info-box a {
        color: #1f5fbf;
        font-weight: 500;
        text-decoration: underline;
    }

        .prac-info-box a:hover {
            text-decoration: none;
        }

.prac-init-input {
    transition: all .18s ease;
}

    .prac-init-input:hover {
        border-color: #9fb1bf;
    }

    .prac-init-input:focus {
        background: #fbfdf5; /* very subtle green tint */
    }

    .prac-init-input.input-validation-error {
        border: 2px solid #d32f2f !important;
        background: #fff8f8;
        box-shadow: none;
    }

.field-validation-error-inline {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #b42318;
    font-weight: 600;
}

.field-validation-valid.field-validation-error-inline {
    display: none;
}

.prac-init-field {
    margin-bottom: 18px;
}

/* =========================
   PRACTICE TEST SELECTION / PRAC VIEW
========================= */
.prac-user {
    font-weight: 700;
    color: #0b2230;
    margin: 0 4px;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: #7fa63a;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .prac-user {
        font-weight: inherit;
        color: inherit;
        margin: 0;
        text-decoration: none;
        margin: 0 4px;
    }
}

.prac-select-card {
    border: 1px solid #dbe5ec;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.prac-select-top-actions {
    margin-bottom: 18px;
}

.prac-select-copy {
    margin-bottom: 18px;
    line-height: 1.7;
}

    .prac-select-copy p {
        margin-bottom: 12px;
    }

.prac-select-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 12px;
    border: 1px solid #d7e1e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.prac-select-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

    .prac-select-table thead th {
        padding: 14px;
        font-size: 13px;
        line-height: 1.4;
        font-weight: 700;
        color: #153650;
        background: #f7fafc;
        border-bottom: 1px solid #d7e1e8;
        text-align: left;
        vertical-align: middle;
        white-space: nowrap;
    }

    .prac-select-table tbody td {
        padding: 14px;
        font-size: 14px;
        line-height: 1.5;
        color: #24303a;
        border-bottom: 1px solid #edf2f5;
        vertical-align: middle;
        background: #fff;
    }

    .prac-select-table tbody tr:nth-child(even) td {
        background: #fbfcfd;
    }

    .prac-select-table tbody tr:hover td,
    .prac-select-table tbody tr:focus-within td {
        background: #f6faf1;
    }

    .prac-select-table tbody tr:last-child td {
        border-bottom: none;
    }

.prac-select-group-row th {
    padding: 14px;
    background: #e8f0c8;
    color: #3e4f0f;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .3px;
    text-align: center;
    font-weight: 700;
    border-bottom: 1px solid #d7e1e8;
}

.prac-select-action {
    min-width: 110px;
}

.prac-select-muted {
    display: inline-block;
    font-size: 13px;
    color: #5b6c7a;
    line-height: 1.5;
}

/* =========================
   TAKE TEST QUESTION VIEW
========================= */

.test-question-shell {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.test-question-sidebar {
    width: 300px;
    min-width: 300px;
}

.test-question-main {
    flex: 1 1 auto;
    min-width: 0;
}

.test-question-nav-card,
.test-question-card {
    border: 1px solid #dbe5ec;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    background: #ffffff;
}

.test-question-nav-table {
    width: 100%;
    border-collapse: collapse;
}

    .test-question-nav-table td {
        padding: 10px 8px;
        border-bottom: 1px solid #d7e1e8;
        vertical-align: middle;
    }

    .test-question-nav-table tr:hover {
        background: #f6faf1;
    }

    .test-question-nav-table tr.header td {
        font-weight: 700;
        color: #153650;
        background: #f7fafc;
    }

    .test-question-nav-table tr.question td {
        border-top: 1px solid #edf2f5;
    }

.currentQ {
    background: #fff8d6 !important;
}

.test-question-score {
    padding: 14px 18px 18px;
    border-top: 1px solid #d7e1e8;
    font-size: 15px;
    color: #24303a;
}

.test-section-title {
    margin: 0 0 14px 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
    color: #153650;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.qText {
    font-size: 15px;
    line-height: 1.75;
    color: #24303a;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.test-mandatory-message {
    color: #b42318;
    font-weight: 700;
    margin-bottom: 14px;
}

.test-option-row {
    padding: 2px 0;
}

.answer-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
    padding: 6px 8px;
}

.test-option-label {
    display: inline-flex;
    width: 26px;
    min-width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef4d8;
    color: #44580d;
    font-weight: 700;
    font-size: 13px;
    margin-top: 1px;
}

.answer-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    flex: 0 0 auto;
}

.answer-content {
    cursor: pointer;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 10px;
}

    .answer-content:hover {
        border: none;
        background: transparent;
        box-shadow: none;
    }

.highlightOption {
    background: #f6faf1;
    border-radius: 8px;
}

    .highlightOption .answer-content {
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .highlightOption .qText {
        font-weight: 600;
    }

.answerResult {
    font-weight: 700;
    font-size: 18px;
}

.correct {
    font-size: 16px;
    font-weight: 700;
    color: #2d7d32;
}

.incorrect {
    font-size: 16px;
    font-weight: 700;
    color: #c62828;
}

.unanswered {
    font-size: 16px;
    font-weight: 700;
    color: #8b4c0d;
}

#questionleftMenu p {
    margin: 0 0 5px 0;
}

.question {
    cursor: pointer;
}

#divMandatory {
    color: #c62828;
    font-weight: 700;
}

.qImage {
    width: auto;
    max-width: 100%;
    height: auto;
}

.width100pc {
    width: 100%;
}

.vaw {
    vertical-align: top;
    width: 150px;
}

.displayblock {
    display: block;
}

.ptop {
    padding-top: 8px;
}

.vatop {
    vertical-align: top;
}

.mrmt {
    margin-right: 5px;
    margin-top: 5px;
}

.mtmr {
    margin-top: 5px;
    margin-right: 20px;
}

.mtop {
    margin-top: 5px;
}

.test-question-actions {
    margin-top: 16px;
}

input.button.next,
a.button.next,
input.button.submit,
input.button.complete,
a.button.complete,
a.button.pause,
a.button.submit,
a.button,
input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    min-width: 140px;
    padding: 11px 18px;
    margin: 0;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
    border: 1px solid transparent;
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
    text-align: center;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    a.button:hover,
    a.button:focus-visible,
    input.button:hover,
    input.button:focus-visible {
        transform: translateY(-1px);
    }

    a.button.next,
    input.button.next,
    a.button.resume,
    input.button.submit {
        background: linear-gradient(180deg, #4f9f4f 0%, #3d833d 100%);
        color: #fff !important;
        border-color: #2f6f2f;
        box-shadow: 0 8px 16px rgba(92,184,92,.20);
    }

    a.button.complete,
    input.button.complete,
    a.button.review {
        background: #f6a94d;
        color: #2f1b05 !important;
        border: 1px solid #c9660c;
    }

    a.button.pause {
        background: #ffffff;
        color: var(--text) !important;
        border-color: #bcc9d3;
        box-shadow: 0 6px 14px rgba(18,35,48,.06);
    }

.centeredPanel {
    margin-top: 8px;
}

.topRightPanel {
    margin-bottom: 12px;
}

.ui-dialog .ui-dialog-buttonpane button {
    margin-right: 22px;
}

/* =========================================
   TAKE TEST - ANSWER ROW SPACING FIX
   Drop-in override
   ========================================= */

.test-question-page .test-option-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 0;
}

.test-question-page .answer-option {
    display: flex;
    align-items: center;
    gap: 12px; 
    margin: 0;
    flex: 0 0 auto;
}

.test-question-page .test-option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-width: 26px;
    height: 26px;
    margin: 0;
}

.test-question-page .answer-option input[type="radio"],
.test-question-page .answer-option input[name="OptionSelected"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
}

.test-question-page .answer-content {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.test-question-page .qText,
.test-question-page .qText p {
    margin: 0;
}

.test-question-page .highlightOption {
    padding: 10px 12px;
    border-radius: 8px;
}

@media (max-width: 980px) {
    .test-question-shell {
        display: block;
    }

    .test-question-sidebar {
        width: 100%;
        min-width: 0;
        margin-bottom: 20px;
    }
}

.test-outro-title {
    font-size: 18px;
    font-weight: 700;  
    position: relative;
    display: inline-block;
}

@media screen and (max-width: 700px) {
    .qImage {
        width: auto;
        max-width: 90%;
        height: auto;
    }

    .qText {
        font-size: 14px;
    }

    .question-content {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .test-section-title {
        font-size: 18px;
    }

    a.button,
    input.button {
        width: 100%;
        min-width: 0;
    }

    .mrmt,
    .mtmr,
    .mtop {
        margin-right: 0;
        margin-top: 10px;
    }
}

.test-question-page .boxContent .correct {
    color: #2d7d32 !important;
}

.test-question-page .boxContent .incorrect {
    color: #c62828 !important;
}

.test-question-page .boxContent .unanswered {
    color: #8b4c0d !important;
}

.test-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px 0;
    min-width: 0;
    padding: 10px 14px;
}

.test-nav-toggle__text {
    line-height: 1;
}

.test-nav-toggle__icon {
    position: relative;
    width: 20px;
    height: 16px;
    display: inline-block;
    flex: 0 0 auto;
}

    .test-nav-toggle__icon span {
        position: absolute;
        left: 0;
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: #153650;
        transition: transform .2s ease, opacity .2s ease, top .2s ease;
    }

        .test-nav-toggle__icon span:nth-child(1) {
            top: 0;
        }

        .test-nav-toggle__icon span:nth-child(2) {
            top: 7px;
        }

        .test-nav-toggle__icon span:nth-child(3) {
            top: 14px;
        }

.test-nav-toggle.is-active .test-nav-toggle__icon span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

.test-nav-toggle.is-active .test-nav-toggle__icon span:nth-child(2) {
    opacity: 0;
}

.test-nav-toggle.is-active .test-nav-toggle__icon span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

.test-question-shell {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.test-question-sidebar {
    width: 300px;
    min-width: 300px;
    transition: width .18s ease, min-width .18s ease, opacity .18s ease;
}

.test-question-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* Sticky sidebar */
.test-question-sidebar .test-question-nav-card {
    position: sticky;
    top: 18px;
}

.test-question-actions {
    position: static;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 0;
}

/* Collapsed nav */
.test-question-sidebar.is-collapsed {
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
}

    .test-question-sidebar.is-collapsed .test-question-nav-card {
        display: none;
    }

@media (max-width: 1100px) {
    .test-nav-toggle {
        display: inline-flex;
    }

    .test-question-sidebar {
        width: 280px;
        min-width: 280px;
    }
}

@media (max-width: 980px) {
    .test-nav-toggle {
        display: inline-flex;
        width: auto;
    }

    .test-question-shell {
        display: block;
    }

    .test-question-sidebar {
        width: 100%;
        min-width: 0;
        margin-bottom: 16px;
    }

        .test-question-sidebar .test-question-nav-card {
            position: static;
        }

        .test-question-sidebar.is-collapsed {
            width: 100%;
            min-width: 0;
            opacity: 1;
            overflow: visible;
            margin-bottom: 0;
        }

            .test-question-sidebar.is-collapsed .test-question-nav-card {
                display: none;
            }

    .test-question-actions {
        bottom: 8px;
        padding: 10px 12px;
    }
}

.nav-collapsed #questionleftMenuWrap {
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
}

    .nav-collapsed #questionleftMenuWrap .test-question-nav-card {
        display: none;
    }

.nav-open #testNavToggle .test-nav-toggle__icon span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

.nav-open #testNavToggle .test-nav-toggle__icon span:nth-child(2) {
    opacity: 0;
}

.nav-open #testNavToggle .test-nav-toggle__icon span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

.test-nav-toggle__label {
    display: none;
}

.test-nav-toggle__label--hide {
    display: inline;
}

/* Early state from <html> */
html.nav-collapsed .test-nav-toggle__label--show {
    display: inline;
}

html.nav-collapsed .test-nav-toggle__label--hide {
    display: none;
}

html.nav-open .test-nav-toggle__label--show {
    display: none;
}

html.nav-open .test-nav-toggle__label--hide {
    display: inline;
}

/* =========================================
   TAKE TEST - COMPACT DENSITY OVERRIDES
   ========================================= */

.test-question-page .test-question-shell {
    gap: 14px;
}

.test-question-page .test-question-sidebar {
    width: 220px;
    min-width: 220px;
}

.test-question-page .test-question-nav-table td {
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.2;
}

.test-question-page .test-question-score {
    padding: 10px 12px 12px;
    font-size: 14px;
}

.test-question-page .test-section-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.test-question-page .qText {
    line-height: 1.55;
}

.test-question-page .test-option-row {
    padding: 0;
}

.test-question-page .answer-option {
    gap: 5px;
}

.test-question-page .highlightOption {
    padding: 4px 6px;
}

.test-question-page .test-question-actions {
    margin-top: 12px;
    gap: 8px;
}

.test-question-page a.button,
.test-question-page input.button {
    min-height: 40px;
    min-width: 120px;
    padding: 9px 14px;
    font-size: 13px;
}

/* Top nav toggle styling */
.test-nav-toggle--top {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
}

/* Align nicely with logout */
.app-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Top app nav: keep test toggle inline with logout */
.app-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.test-nav-toggle--top {
    width: auto !important;
    min-width: 0;
    min-height: 34px;
    padding: 6px 10px;
    margin: 0 !important;
    flex: 0 0 auto;
    font-size: 13px;
    border-radius: 8px;
}

    .test-nav-toggle--top .test-nav-toggle__text {
        white-space: nowrap;
    }

    .test-nav-toggle--top.btn {
        width: auto !important;
    }

/* keep logout inline too */
.app-nav-left a,
.app-nav-left .logout,
.app-nav-left form {
    flex: 0 0 auto;
}

/* FORCE compact nav title */
.test-question-page .test-question-nav-card .dashboard-card-title {
    font-size: 14px !important;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

/* mobile: still inline, not full-width */
@media (max-width: 900px) {
    .app-nav-left .test-nav-toggle--top {
        width: auto !important;
    }
}

.test-nav-toggle__progress {
    display: none;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef4d8;
    color: #44580d;
}

/* only show when nav is hidden */
html.nav-collapsed .test-nav-toggle__progress {
    display: inline-block;
}

/* =========================================
   SIDEBAR FULL WIDTH ON SMALL SCREENS
   ========================================= */

@media (max-width: 768px) {
    .test-question-page .test-question-sidebar {
        width: 100% !important;
        min-width: 0;
        max-width: none;
    }

    .test-question-page .test-question-nav-card {
        width: 100%;
    }
}

/* =========================
   APP LAYOUT SHELL OVERRIDES
   Parent / student pages using _AppLayout
========================= */

.app-shell .tbox {
    max-width: none;
    margin: 22px 0 24px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
}

.app-shell .boxContent {
    padding: 0;
    background: transparent;
}

/* =========================================
   TAKE TEST - WIDER PAGE LAYOUT
   ========================================= */

.app-shell--test-page {
    max-width: 1320px;
}

.app-nav--test-page .app-nav-inner {
    max-width: 1320px;
}

.app-shell--test-page #logoBox {
    width: 1320px;
    max-width: 100%;
}

/* App layout (flex-based) */
.app-nav-right .logout-wrapper {
    float: none;
    display: flex;
    align-items: center;
}

.test-options-group {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

    .test-options-group > legend.test-section-title {
        position: relative;
        padding-bottom: 8px;
        margin-bottom: 16px;
    }

        .test-options-group > legend.test-section-title::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 3px;
            background-color: #7ac143;
        }

.result-panel,
.result-explanation-panel {
    border: 1px solid #d7e1e8;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.result-panel {
    margin-top: 6px;
}

.result-panel__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f5;
}

    .result-panel__row:last-child {
        border-bottom: none;
    }

.result-panel__label {
    font-size: 14px;
    font-weight: 700;
    color: #153650;
}

.result-panel__value {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    text-align: right;
    color: #24303a;
}

.result-panel .answerResult {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.result-panel__status {
    font-size: 20px;
    line-height: 1;
}

.result-explanation-panel {
    padding: 16px 18px;
}

    .result-explanation-panel .qText > :last-child {
        margin-bottom: 0;
    }

@media (max-width: 640px) {
    .result-panel__row {
        display: block;
    }

    .result-panel__label {
        margin-bottom: 6px;
    }

    .result-panel__value {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (min-width: 981px) {
    .nav-collapsed .test-nav-toggle--top {
        margin-left: 14px !important;
    }
}

@media (max-width: 980px) {
    .test-question-page .test-question-shell {
        display: block;
    }

    .test-question-page .test-question-sidebar {
        width: 100%;
        min-width: 0;
        max-width: none;
        margin-bottom: 16px;
    }

        .test-question-page .test-question-sidebar .test-question-nav-card {
            width: 100%;
            position: static;
        }

        .test-question-page .test-question-sidebar.is-collapsed {
            width: 100%;
            min-width: 0;
            max-width: none;
            opacity: 1;
            overflow: visible;
            margin-bottom: 0;
        }

            .test-question-page .test-question-sidebar.is-collapsed .test-question-nav-card {
                display: none;
            }
}

.test-nav-jump-link {
    background: none;
    border: none;
    padding: 6px 4px;
    margin-left: 6px;
    color: #153650; /* your main text colour */
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

    .test-nav-jump-link:hover,
    .test-nav-jump-link:focus-visible {
        color: #153650; 
        border-bottom: 2px solid #7cc242; 
        outline: none;
    }

    .test-nav-jump-link::before {
        content: "↘";
        margin-right: 4px;
        font-weight: 700;
    }

.test-question-nav {
    display: block;
    width: 100%;
}

.test-question-nav-intro,
.test-question-nav-footer {
    text-align: center;
    padding: 10px 8px;
}

.test-question-nav-footer {
    padding-top: 8px;
    border-top: 1px solid #d7e1e8;
}

.test-question-nav-head {
    display: grid;
    grid-template-columns: 1fr 88px;
    gap: 12px;
    align-items: center;
    padding: 10px 8px;
    font-weight: 700;
    color: #153650;
    background: #f7fafc;
    border-bottom: 1px solid #d7e1e8;
}

.test-question-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.test-question-nav-item {
    display: grid;
    grid-template-columns: 1fr 88px;
    gap: 12px;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid #d7e1e8;
    cursor: pointer;
    background: #fff;
}

    .test-question-nav-item:hover {
        background: #f6faf1;
    }

    .test-question-nav-item:last-child {
        border-bottom: none;
    }

.test-question-nav-link,
.test-question-nav-status {
    min-width: 0;
}

    .test-question-nav-link p,
    .test-question-nav-status p {
        margin: 0;
    }

.test-question-nav-status {
    text-align: center;
}

.test-question-nav-item.currentQ {
    background: #fff8d6 !important;
}

.test-question-nav-intro a,
.test-question-nav-link a,
.test-question-nav-footer a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .test-question-nav-intro a:hover,
    .test-question-nav-link a:hover,
    .test-question-nav-footer a:hover,
    .test-question-nav-intro a:focus,
    .test-question-nav-link a:focus,
    .test-question-nav-footer a:focus {
        text-decoration-thickness: 2px;
    }

/* match your old compact density overrides */
.test-question-page .test-question-nav-intro,
.test-question-page .test-question-nav-footer,
.test-question-page .test-question-nav-head,
.test-question-page .test-question-nav-item {
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.2;
}

.test-question-page .test-question-nav-head {
    grid-template-columns: 1fr 72px;
}

.test-question-page .test-question-nav-item {
    grid-template-columns: 1fr 72px;
}

.test-question-page .result-explanation-panel,
.test-question-page .result-explanation-panel .qText,
.test-question-page .result-explanation-panel .qText p,
.test-question-page .result-explanation-panel .qText span,
.test-question-page .result-explanation-panel .qText li {
    font-size: 15px !important;
    line-height: 1.65 !important;
}

.test-question-page .test-question-nav-status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    line-height: 1;
}

    .test-question-page .test-question-nav-status .correct,
    .test-question-page .test-question-nav-status .incorrect,
    .test-question-page .test-question-nav-status .unanswered {
        display: inline-block;
        font-size: 13px;
        line-height: 1;
    }

.btn-inactive {
    opacity: .55;
    cursor: default;
    pointer-events: none;
    box-shadow: none !important;
    filter: grayscale(15%);
}

    .btn-inactive:hover,
    .btn-inactive:focus,
    .btn-inactive:focus-visible {
        transform: none !important;
        box-shadow: none !important;
        text-decoration: none !important;
    }

/* =========================================
   MOBILE: MOVE NAV BELOW QUESTION
   ========================================= */
@media (max-width: 980px) {
    .test-question-page .test-question-shell {
        display: flex;
        flex-direction: column;
    }

    .test-question-page .test-question-main {
        order: 1;
    }

    .test-question-page .test-question-sidebar {
        order: 2;
        margin-top: 16px;
        margin-bottom: 0;
    }
}

/* =========================================
   MOBILE: FULL-WIDTH TEST CARD
   ========================================= */
@media (max-width: 980px) {
    .test-question-page .test-question-main {
        order: 1;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .test-question-page #mainTestContent {
        width: 100%;
        max-width: none;
    }

    .test-question-page .test-question-card {
        width: 100%;
        max-width: none;
    }

    .test-question-page .test-question-sidebar {
        order: 2;
        width: 100%;
        min-width: 0;
        max-width: none;
        margin-top: 16px;
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .test-question-page .dashboard-card-body {
        padding: 16px 14px 18px;
    }

    .test-question-page .dashboard-card-header-main {
        padding: 16px 14px 0 14px;
    }
}

/* =========================
   PARENT / CHILD DETAILS
   ========================= */

.parent-child-login-help {
    margin-top: -6px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff7ef;
    border-left: 5px solid var(--orange);
    color: #4d3726;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .parent-child-login-help a {
        color: #0b57d0;
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

        .parent-child-login-help a:hover,
        .parent-child-login-help a:focus-visible {
            text-decoration-thickness: 2px;
        }

.parent-child-page-shell {
    max-width: 1120px;
}

.parent-child-page {
    display: grid;
    gap: 20px;
}

.parent-child-card {
    margin-bottom: 0;
}

.parent-child-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.parent-child-required-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f7fbeb;
    border: 1px solid #dbe8b7;
    color: #44580d;
    font-size: 13px;
    font-weight: 700;
}

.parent-child-validation-summary {
    margin-top: 0;
    margin-bottom: 18px;
}

.parent-child-section + .parent-child-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
}

.parent-child-section-title {
    margin: 0 0 16px 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    font-size: 18px;
    line-height: 1.3;
    color: #153650;
}

.parent-child-form-row {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 16px 20px;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid var(--line-soft);
}

.parent-child-section > .parent-child-form-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.parent-child-form-row--read {
    align-items: center;
}

.parent-child-form-row--nested {
    padding: 10px 0 0;
    border-top: 0;
}

.parent-child-form-label-wrap .editor-label,
.parent-child-form-label-wrap .editor-label span {
    width: auto;
    display: block;
    margin: 0;
    color: var(--text-strong);
    font-weight: 700;
}

.parent-child-form-label-wrap .instruction {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted) !important;   
}

.parent-child-form-row .editor-field {
    float: none;
    width: 100%;
}

    .parent-child-form-row .editor-field input[type="text"],
    .parent-child-form-row .editor-field input[type="password"],
    .parent-child-form-row .editor-field textarea,
    .parent-child-form-row .editor-field select {
        width: 100%;
        max-width: 480px;
    }

    .parent-child-form-row .editor-field textarea {
        min-height: 140px;
    }

.parent-child-static-value {
    display: inline-block;
    padding: 11px 0;
    color: var(--text);
    font-weight: 600;
}

.parent-child-inline-action {
    margin: 4px 0 16px;
}

    .parent-child-inline-action a {
        font-weight: 700;
    }

.parent-child-password-panel {
    margin-top: 10px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #dbe5ec;
    background: #fbfcfd;
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 18px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #c7d3db;
    border-radius: 10px;
    background: #fff;
    color: #556876;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .toggle-password:hover,
    .toggle-password:focus-visible {
        background: #f7fafc;
        border-color: #9fb1bf;
    }

.validation-message {
    margin-top: 8px;
}

#DisplayEmailError,
#DisplayPasswordError {
    color: var(--error-text);
    font-weight: 600;
}

.parent-child-split-field {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr);
    gap: 12px;
    align-items: start;
}

.parent-child-split-secondary label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-strong);
}

.parent-child-inline-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

    .parent-child-inline-fields select {
        max-width: 220px;
    }

    .parent-child-inline-fields .phoneTextBox {
        max-width: 220px;
    }

.parent-child-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    align-items: center;
}

    .parent-child-radio-group span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.parent-child-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
}

.parent-child-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 12px;
    border: 1px solid #dbe5ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.parent-child-data-table--compact {
    min-width: 0;
    width: auto;
}

.parent-child-empty-table {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fbfcfd;
    border: 1px solid #dbe5ec;
}

.parent-child-staff-panel {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #e7c49b;
    border-radius: 16px;
    background: #fff7ef;
    box-shadow: var(--shadow-soft);
}

.parent-child-credit-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 14px;
}

.parent-child-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.wide-textbox {
    width: 100%;
    max-width: 380px;
}

.DOBdisplay {
    display: none;
}

@media (max-width: 860px) {
    .parent-child-form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .parent-child-split-field {
        grid-template-columns: 1fr;
    }

    .parent-child-form-row .editor-field input[type="text"],
    .parent-child-form-row .editor-field input[type="password"],
    .parent-child-form-row .editor-field textarea,
    .parent-child-form-row .editor-field select,
    .parent-child-inline-fields .phoneTextBox,
    .parent-child-inline-fields select,
    .wide-textbox {
        max-width: 100%;
    }
}

.practice-summary-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 18px;
    border: 1px solid #e3e8ee;
    max-width: 420px;
}

.practice-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f6;
}

    .practice-summary-row:last-child {
        border-bottom: none;
    }

    .practice-summary-row .label {
        font-size: 14px;
        color: #5b6c7a;
    }

    .practice-summary-row .value {
        font-size: 16px;
        font-weight: 600;
        color: #2c3e50;
    }

        .practice-summary-row .value.highlight {
            color: #6fa800;
        }
.practice-summary-row {
    position: relative;
    padding-left: 14px;
}

    .practice-summary-row::before {
        content: "";
        position: absolute;
        left: 0;
        top: 8px;
        bottom: 8px;
        width: 3px;
        border-radius: 2px;
    }

    .practice-summary-row:nth-child(1)::before {
        background: #4a90e2; /* blue */
    }

    .practice-summary-row:nth-child(2)::before {
        background: #9aa7b2; /* grey */
    }

    .practice-summary-row:nth-child(3)::before {
        background: #6fa800; /* green */
    }


/* TABLE WRAPPER (card) */
.parent-child-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 12px;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* TABLE BASE */
.parent-child-data-table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
}

    /* HEADER */
    .parent-child-data-table thead th {
        padding: 14px 16px;
        font-size: 14px;
        font-weight: 600;
        color: #2c3e50;
        background: #f7fafc;
        border-bottom: 1px solid #e3e8ee;
        text-align: left;
    }

    .parent-child-data-table tbody tr {
        transition: background 0.2s ease;
    }

    .parent-child-data-table tbody td {
        padding: 14px 16px;
        font-size: 14px;
        color: #2c3e50;
        border-bottom: 1px solid #eef2f6;
        background: #fff;
    }

    .parent-child-data-table tbody tr:nth-child(even) td {
        background: #fafbfc;
    }

    .parent-child-data-table tbody tr:hover td {
        background: #f4f8f1;
    }

    /* LAST ROW */
    .parent-child-data-table tbody tr:last-child td {
        border-bottom: none;
    }

    .parent-child-data-table a {
        color: #2f63d8;
        text-decoration: none;
        font-weight: 500;
    }

        .parent-child-data-table a:hover {
            text-decoration: underline;
        }

/* Practice test usage table only */
#PTusage.parent-child-data-table {
    min-width: 980px;
    table-layout: auto;
}

#PTusage thead th {
    background: #f4f8fb;
    color: #153650;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
}

#PTusage tbody td {
    font-size: 13px;
    line-height: 1.55;
    vertical-align: top;
}

    #PTusage tbody td:nth-child(1) {
        min-width: 170px; /* Test Set */
        font-weight: 600;
        color: #153650;
    }

    #PTusage tbody td:nth-child(2) {
        min-width: 150px; /* Test */
    }

    #PTusage tbody td:nth-child(3) {
        min-width: 96px; /* Test Taker */
    }

    #PTusage tbody td:nth-child(4),
    #PTusage tbody td:nth-child(5) {
        min-width: 115px; /* dates */
        color: #4f6472;
        white-space: nowrap;
    }

    #PTusage tbody td:nth-child(6) {
        min-width: 60px; /* score */
        text-align: center;
        font-weight: 700;
        color: #153650;
    }

#PTusage tbody tr:hover td {
    background: #f7fafc;
}

/* slightly softer alternating rows for large table */
#PTusage tbody tr:nth-child(even) td {
    background: #fcfdfd;
}

#PTusage tbody td:nth-child(6) {
    text-align: center;
}

    #PTusage tbody td:nth-child(6) span {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 10px;
        background: #eef4f8;
    }

.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    cursor: grab;
    -webkit-overflow-scrolling: touch; 
}

    .table-wrapper.dragging {
        cursor: grabbing;
        user-select: none;
    }

    .table-wrapper table {
        margin-bottom: 0;
    }


/* =========================
   PRACTICE TEST POPUP
   Match newer themed dialogs
   ========================= */

.parent-child-modern-dialog {
    border: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 20px 50px rgba(18,35,48,.18) !important;
}

    .parent-child-modern-dialog .ui-dialog-titlebar {
        position: relative;
        padding: 16px 52px 14px 20px !important;
        border: 0 !important;
        border-bottom: 1px solid #edf2f5 !important;
        background: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%) !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

        .parent-child-modern-dialog .ui-dialog-titlebar::before {
            content: attr(data-kicker);
            display: block;
            order: 1;
            margin: 0 0 6px 0;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: .45px;
            text-transform: uppercase;
            color: #556c14;
        }

    .parent-child-modern-dialog .ui-dialog-title {
        order: 2;
        float: none !important;
        margin: 0 !important;
        font-size: 24px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        color: #153650 !important;
    }

    .parent-child-modern-dialog .ui-dialog-title {
        float: none !important;
        margin: 0 !important;
        font-size: 24px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        color: #153650 !important;
    }

    .parent-child-modern-dialog .ui-dialog-titlebar-close {
        right: 14px !important;
        top: 16px !important;
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
        border: 1px solid #d87f1f !important;
        border-radius: 8px !important;
        background: #f6a94d !important;
        box-shadow: none !important;
    }

        .parent-child-modern-dialog .ui-dialog-titlebar-close:hover,
        .parent-child-modern-dialog .ui-dialog-titlebar-close:focus {
            background: #ee9a38 !important;
            border-color: #c87410 !important;
        }

        .parent-child-modern-dialog .ui-dialog-titlebar-close .ui-icon {
            background-image: none !important;
            text-indent: 0 !important;
            overflow: visible !important;
            width: auto !important;
            height: auto !important;
            margin: 0 !important;
            position: static !important;
        }

            .parent-child-modern-dialog .ui-dialog-titlebar-close .ui-icon::before {
                content: "×";
                color: #ffffff;
                font-size: 20px;
                line-height: 1;
                font-weight: 700;
            }

    .parent-child-modern-dialog .ui-dialog-content {
        padding: 22px 20px 18px !important;
        background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%) !important;
        color: #24303a !important;
        overflow: visible !important;
    }

        .parent-child-modern-dialog .ui-dialog-content p {
            color: #556876;
            line-height: 1.7;
        }

    .parent-child-modern-dialog .ui-dialog-buttonpane {
        margin: 0 !important;
        padding: 0 20px 20px !important;
        border: 0 !important;
        background: transparent !important;
    }

    .parent-child-modern-dialog .ui-dialog-buttonset {
        float: none !important;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

    .parent-child-modern-dialog .ui-dialog-buttonpane button {
        margin: 0 !important;
        min-width: 130px;
        min-height: 46px;
        padding: 11px 18px;
        border-radius: 12px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

        /* Close button in footer */
        .parent-child-modern-dialog .ui-dialog-buttonpane button.btn,
        .parent-child-modern-dialog .ui-dialog-buttonpane button.btn-white {
            background: #ffffff !important;
            color: #24303a !important;
            border: 1px solid #a9bac6 !important;
            box-shadow: none !important;
        }

            .parent-child-modern-dialog .ui-dialog-buttonpane button.btn:hover,
            .parent-child-modern-dialog .ui-dialog-buttonpane button.btn-white:hover,
            .parent-child-modern-dialog .ui-dialog-buttonpane button.btn:focus,
            .parent-child-modern-dialog .ui-dialog-buttonpane button.btn-white:focus {
                background: #ffffff !important;
                border-color: #91a4b0 !important;
            }

/* Notes label/input area */
#divPracticeTest label,
#divPracticeTest .editor-label,
#divPracticeTest strong {
    color: #153650;
    font-weight: 700;
}

#AddPracTestNote,
#ParentChild_AddPracTestNote {
    width: 250px;
    max-width: 250px;
    min-height: 50px;
    height: 50px;
    padding: 10px 12px;
    border: 1px solid #b7c8d3;
    border-radius: 12px;
    background: #f8fafb;
    color: #24303a;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    box-shadow: inset 0 1px 2px rgba(18,35,48,.04);
}

    #AddPracTestNote:hover,
    #ParentChild_AddPracTestNote:hover {
        border-color: #9fb4c2;
    }

    #AddPracTestNote:focus,
    #ParentChild_AddPracTestNote:focus {
        background: #ffffff;
        border-color: #7fae2c;
        box-shadow: 0 0 0 3px rgba(127,174,44,.14);
        outline: none;
    }

.parent-child-modern-dialog {
    max-width: 720px !important;
}

@media (max-width: 768px) {
    .parent-child-modern-dialog {
        width: calc(100% - 24px) !important;
        max-width: none !important;
    }

    .parent-child-credit-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .btnPracTest {
        width: 100%;
        max-width: 280px;
    }
}


.btnPracTest {
    min-width: 170px;
}

.parent-child-credit-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btnPracTest {
    min-width: 180px;
}

.parent-child-modern-dialog {
    border: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 20px 50px rgba(18,35,48,.18) !important;
    position: relative;
}

    .parent-child-modern-dialog::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, #b7d236 0%, #dced88 100%);
        z-index: 2;
    }

@media (max-width: 640px) {
    .parent-child-modern-dialog {
        width: calc(100% - 24px) !important;
        max-width: none !important;
    }

        .parent-child-modern-dialog .ui-dialog-content {
            padding: 20px 16px 16px !important;
        }

        .parent-child-modern-dialog .ui-dialog-titlebar {
            padding: 16px 46px 12px 16px !important;
        }

        .parent-child-modern-dialog .ui-dialog-title {
            font-size: 22px !important;
        }

        .parent-child-modern-dialog .ui-dialog-buttonset {
            display: block;
        }

        .parent-child-modern-dialog .ui-dialog-buttonpane button,
        .btnPracTest {
            width: 100%;
            min-width: 0;
            margin-top: 10px !important;
        }
}

.parent-child-modern-dialog .ui-dialog-titlebar-close {
    display: none !important;
}

.parent-child-textarea {
    width: 100%;
    max-width: 320px; /* controls width */
    height: 90px; /* nice compact height */
    padding: 10px 12px;
    border: 1px solid #b7c8d3;
    border-radius: 12px;
    background: #f8fafb;
    color: #24303a;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    box-shadow: inset 0 1px 2px rgba(18,35,48,.04);
}

    .parent-child-textarea:focus {
        background: #ffffff;
        border-color: #7fae2c;
        box-shadow: 0 0 0 3px rgba(127,174,44,.14);
        outline: none;
    }

/* =========================
   PARENT / CHILD FORM INPUTS
   ========================= */

.parent-child-card.dashboard-card {
    background: #fbfcfb;
    overflow: hidden;
}

.parent-child-card .dashboard-card-header,
.parent-child-card .dashboard-card-header-main,
.parent-child-card .dashboard-card-body {
    background: transparent;
}

    .parent-child-card .dashboard-card-header::before {
        width: 86px;
        height: 6px;
        margin: 0 0 14px 0;
        border-top-left-radius: var(--radius-lg);
        border-bottom-right-radius: 8px;
    }

.parent-child-required-note {
    background: #f4f7ea;
    border: 1px solid #cfdcaf;
    color: #3f5310;
}

    .parent-child-required-note .mandatory {
        color: #8b3d12 !important;
        font-size: 1em !important;
        line-height: 1;
        font-weight: 700;
    }

.parent-child-section-title {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #153650;
}

.parent-child-form-row {
    padding: 18px 0;
    border-top: 1px solid #dfe8ee;
}

.parent-child-form-label-wrap .editor-label,
.parent-child-form-label-wrap .editor-label span {
    color: #14364f;
    font-weight: 700;
    text-shadow: none;
}

.parent-child-form-row .editor-field {
    display: block;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

    .parent-child-form-row .editor-field input[type="text"],
    .parent-child-form-row .editor-field input[type="password"],
    .parent-child-form-row .editor-field input[type="email"],
    .parent-child-form-row .editor-field input[type="tel"],
    .parent-child-form-row .editor-field select,
    .parent-child-form-row .editor-field textarea {
        width: 100%;
        max-width: 520px;
        min-height: 46px;
        padding: 10px 14px;
        border: 1px solid #b7c8d3;
        border-radius: 12px;
        background: #ffffff;
        color: #24303a;
        font-size: 15px;
        line-height: 1.35;
        box-shadow: inset 0 1px 2px rgba(18,35,48,.04);
        transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
        -webkit-appearance: none;
    }

    .parent-child-form-row .editor-field textarea {
        min-height: 140px;
        resize: vertical;
    }

        .parent-child-form-row .editor-field input[type="text"]:hover,
        .parent-child-form-row .editor-field input[type="password"]:hover,
        .parent-child-form-row .editor-field input[type="email"]:hover,
        .parent-child-form-row .editor-field input[type="tel"]:hover,
        .parent-child-form-row .editor-field select:hover,
        .parent-child-form-row .editor-field textarea:hover {
            border-color: #9fb4c2;
        }

        .parent-child-form-row .editor-field input[type="text"]:focus,
        .parent-child-form-row .editor-field input[type="password"]:focus,
        .parent-child-form-row .editor-field input[type="email"]:focus,
        .parent-child-form-row .editor-field input[type="tel"]:focus,
        .parent-child-form-row .editor-field select:focus,
        .parent-child-form-row .editor-field textarea:focus {
            border-color: #7fae2c;
            background: #fff;
        }

    .parent-child-form-row .editor-field .smallTextBox {
        max-width: 140px;
    }

    .parent-child-form-row .editor-field .phoneTextBox {
        max-width: 220px;
    }

    .parent-child-form-row .editor-field .dateTextBox {
        max-width: 220px;
    }

    .parent-child-form-row .editor-field .longTextBox {
        max-width: 520px;
    }

.parent-child-static-value {
    padding: 12px 0;
    font-size: 16px;
    color: #24303a;
    font-weight: 600;
}

.parent-child-password-panel {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #d8e4cb;
    border-radius: 16px;
    background: #f8fbef;
}

.password-field {
    position: relative;
    max-width: 520px;
}

    .password-field .longTextBox {
        width: 100%;
        max-width: none;
        padding-right: 92px !important;
    }

.toggle-password {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    min-width: 70px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #9fbb50;
    border-radius: 10px;
    background: #edf4d8;
    color: #36470d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
}

    .toggle-password:hover,
    .toggle-password:focus-visible {
        background: #e4efc2;
        border-color: #84a432;
        color: #2d3b0d;
    }

.toggle-password__text {
    display: inline-block;
}

.field-validation-error,
.validation-message .field-validation-error,
.parent-child-form-row .field-validation-error {
    display: block;
    margin-top: 6px;
    color: #8f1d1d;
    font-size: 13px;
    font-weight: 700;
}

#DisplayEmailError,
#DisplayPasswordError {
    display: block;
    margin-top: 6px;
    color: #8f1d1d;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 860px) {
    .parent-child-form-row .editor-field input[type="text"],
    .parent-child-form-row .editor-field input[type="password"],
    .parent-child-form-row .editor-field input[type="email"],
    .parent-child-form-row .editor-field input[type="tel"],
    .parent-child-form-row .editor-field select,
    .parent-child-form-row .editor-field textarea,
    .parent-child-form-row .editor-field .longTextBox {
        max-width: 100%;
    }

    .password-field {
        max-width: 100%;
    }
}

.parent-child-section-heading {
    margin-bottom: 8px;
}

.parent-child-section-copy {
    margin: 0 0 10px 0;
    max-width: 720px;
    color: #556876;
    font-size: 14px;
    line-height: 1.65;
}

.parent-child-inline-action--soft {
    margin-top: 2px;
    margin-bottom: 6px;
}

    .parent-child-inline-action--soft a {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
        padding: 8px 14px;
        border-radius: 10px;
        background: #f3f7ff;
        border: 1px solid #c8d9eb;
        color: #153650 !important;
        text-decoration: none !important;
        font-size: 14px;
        font-weight: 700;
    }

        .parent-child-inline-action--soft a:hover,
        .parent-child-inline-action--soft a:focus-visible {
            background: #eaf1ff;
            border-color: #adc7ea;
            text-decoration: none !important;
        }

.parent-child-password-intro {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.72);
    border: 1px solid #dce8c9;
    color: #304212;
    font-size: 13px;
    line-height: 1.55;
}

.parent-child-form-row--password {
    border-top-color: #dfe8cf;
}

/* =========================
   PARENT CHILD FIXES (UI POLISH)
   ========================= */

/* 1. Mandatory asterisk styling */
.parent-child-form-label-wrap .mandatory,
.parent-child-form-label-wrap .required,
.parent-child-form-label-wrap .asterisk,
.parent-child-form-label-wrap label span[style*="color"] {
    color: #c62828 !important; /* accessible red */
    font-weight: 700;
}

/* fallback: if just plain "*" */
.parent-child-form-label-wrap label::after {
    content: "";
}

/* 2. Fix phone/mobile field sizing */
.parent-child-inline-fields {
    gap: 14px;
}

    .parent-child-inline-fields .phoneTextBox,
    .parent-child-inline-fields input[type="tel"] {
        max-width: 280px; /* increased from 220 */
        width: 100%;
    }

    /* 3. Make paired fields feel balanced */
    .parent-child-inline-fields select {
        max-width: 160px;
    }

/* 4. Improve visual weight of all inputs slightly */
.parent-child-form-row .editor-field input,
.parent-child-form-row .editor-field select {
    min-height: 40px; /* slightly taller */
}

/* 5. Better spacing between label + required */
.parent-child-form-label-wrap .editor-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 6. Ensure required star is not pushed to next line */
.parent-child-form-label-wrap .mandatory {
    display: inline;
    margin-left: 2px;
}

/* =========================
   FIX PHONE / MOBILE WIDTH
   ========================= */

.parent-child-inline-fields {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

    /* Keep dropdown compact */
    .parent-child-inline-fields select {
        flex: 0 0 150px; /* fixed width */
        max-width: 150px;
    }

    /* Let input EXPAND */
    .parent-child-inline-fields .phoneTextBox,
    .parent-child-inline-fields input[type="tel"] {
        flex: 1; /* this is the key */
        min-width: 200px;
        max-width: 100%;
        width: auto;
    }

/* =========================
   FIX PHONE / MOBILE WIDTH
   ========================= */

.parent-child-inline-fields {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

    /* Keep dropdown compact */
    .parent-child-inline-fields select {
        flex: 0 0 150px; /* fixed width */
        max-width: 150px;
    }

    /* Let input EXPAND */
    .parent-child-inline-fields .phoneTextBox,
    .parent-child-inline-fields input[type="tel"] {
        flex: 1; /* this is the key */
        min-width: 200px;
        max-width: 100%;
        width: auto;
    }

/* =========================
   FORCE MODERN INPUT STYLE (override publicsite2)
   ========================= */

.parent-child-form-row .editor-field input,
.parent-child-form-row .editor-field select,
.parent-child-form-row .editor-field textarea {
    background: #f8fafb !important;
    border: 1px solid #b7c8d3 !important;
    border-radius: 12px !important;
    min-height: 40px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.4;
    color: #24303a;
    box-shadow: inset 0 1px 2px rgba(18,35,48,.04);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

    /* Hover */
    .parent-child-form-row .editor-field input:hover,
    .parent-child-form-row .editor-field select:hover,
    .parent-child-form-row .editor-field textarea:hover {
        background: #f3f7f9 !important;
        border-color: #9fb4c2 !important;
    }

    /* Focus */
    .parent-child-form-row .editor-field input:focus,
    .parent-child-form-row .editor-field select:focus,
    .parent-child-form-row .editor-field textarea:focus {
        background: #ffffff !important;
        border-color: #7fae2c !important;
        box-shadow: 0 0 0 3px rgba(127,174,44,0.14) !important;
        outline: none;
    }

/* Textarea refinement */
.parent-child-form-row .editor-field textarea {
    min-height: 120px;
    resize: vertical;
}

/* =========================
   SHARED INPUT STYLE (Prac + Parent)
   ========================= */

.parent-child-input {
    background: #f8fafb !important;
    border: 1px solid #b7c8d3 !important;
    border-radius: 12px !important;
    min-height: 46px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.4;
    color: #24303a;
    box-shadow: inset 0 1px 2px rgba(18,35,48,.04);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    width: 100%;
    max-width: 520px;
}

    /* hover */
    .parent-child-input:hover {
        background: #f3f7f9 !important;
        border-color: #9fb4c2 !important;
    }

    /* focus */
    .parent-child-input:focus {
        background: #ffffff !important;
        border-color: #7fae2c !important;
        box-shadow: 0 0 0 3px rgba(127,174,44,0.14) !important;
        outline: none;
    }

/* =========================
   PARENT / CHILD RESPONSIVE STABILITY FIXES
   ========================= */

/* Make the card feel more centered and cohesive */
.parent-child-page {
    gap: 18px;
}

.parent-child-card .dashboard-card-header-main {
    padding: 20px 24px 0 24px;
}

.parent-child-card .dashboard-card-body {
    padding: 18px 24px 24px;
}

/* Keep the top intro/actions visually grouped */
.parent-child-top-actions {
    margin-bottom: 14px;
}

.parent-child-required-note {
    margin-bottom: 20px;
}

/* More fluid desktop/tablet form grid */
.parent-child-form-row {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 14px 24px;
}

/* Labels align better and do not feel pushed */
.parent-child-form-label-wrap {
    min-width: 0;
}

    .parent-child-form-label-wrap .editor-label,
    .parent-child-form-label-wrap .editor-label span {
        line-height: 1.45;
    }

/* Keep fields from feeling squeezed */
.parent-child-form-row .editor-field {
    min-width: 0;
}

    .parent-child-form-row .editor-field input[type="text"],
    .parent-child-form-row .editor-field input[type="password"],
    .parent-child-form-row .editor-field input[type="email"],
    .parent-child-form-row .editor-field input[type="tel"],
    .parent-child-form-row .editor-field select,
    .parent-child-form-row .editor-field textarea,
    .parent-child-form-row .editor-field .longTextBox {
        width: 100%;
        max-width: 560px;
    }

/* Better two-part field behaviour */
.parent-child-split-field {
    grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr);
    gap: 12px;
    width: 100%;
}

.parent-child-split-main,
.parent-child-split-secondary {
    min-width: 0;
}

/* Phone/mobile rows wrap more naturally */
.parent-child-inline-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

    .parent-child-inline-fields select {
        flex: 0 0 150px;
        max-width: 150px;
    }

    .parent-child-inline-fields .phoneTextBox,
    .parent-child-inline-fields input[type="tel"] {
        flex: 1 1 260px;
        min-width: 220px;
        max-width: 360px;
        width: auto;
    }

/* Password rows stay balanced */
.password-field {
    width: 100%;
    max-width: 560px;
}

/* Static values align better with inputs */
.parent-child-static-value {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 0;
}

/* Tablet: collapse earlier so it stops looking shifted */
@media (max-width: 980px) {
    .parent-child-card .dashboard-card-header-main {
        padding: 18px 20px 0 20px;
    }

    .parent-child-card .dashboard-card-body {
        padding: 16px 20px 20px;
    }

    .parent-child-form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .parent-child-split-field {
        grid-template-columns: 1fr;
    }

    .parent-child-form-row .editor-field input[type="text"],
    .parent-child-form-row .editor-field input[type="password"],
    .parent-child-form-row .editor-field input[type="email"],
    .parent-child-form-row .editor-field input[type="tel"],
    .parent-child-form-row .editor-field select,
    .parent-child-form-row .editor-field textarea,
    .parent-child-form-row .editor-field .longTextBox,
    .password-field {
        max-width: 100%;
    }

    .parent-child-inline-fields select {
        flex: 0 0 140px;
        max-width: 140px;
    }

    .parent-child-inline-fields .phoneTextBox,
    .parent-child-inline-fields input[type="tel"] {
        flex: 1 1 220px;
        max-width: 100%;
    }
}

/* Small screens: keep everything clean and stacked */
@media (max-width: 640px) {
    .parent-child-card .dashboard-card-header-main {
        padding: 16px 16px 0 16px;
    }

    .parent-child-card .dashboard-card-body {
        padding: 14px 16px 18px;
    }

    .parent-child-top-actions .btn,
    .parent-child-form-actions .btn {
        width: 100%;
    }

    .parent-child-inline-fields {
        display: block;
    }

        .parent-child-inline-fields select,
        .parent-child-inline-fields .phoneTextBox,
        .parent-child-inline-fields input[type="tel"] {
            width: 100%;
            max-width: 100%;
            min-width: 0;
            margin-bottom: 10px;
        }

    .parent-child-required-note {
        width: auto;
        max-width: 100%;
    }
}

/* DESKTOP: keep in one line */
.parent-child-inline-fields {
    display: flex;
    flex-wrap: nowrap; /* prevent wrapping */
    align-items: center;
    gap: 12px;
    width: 100%;
}

    /* dropdown */
    .parent-child-inline-fields select {
        flex: 0 0 150px;
        max-width: 150px;
    }

    /* phone input */
    .parent-child-inline-fields .phoneTextBox,
    .parent-child-inline-fields input[type="tel"] {
        flex: 1;
        min-width: 200px;
        max-width: 340px; /* slightly smaller = better balance */
        width: auto;
    }

/* =========================
   MOBILE: allow stacking
   ========================= */

@media (max-width: 640px) {
    .parent-child-inline-fields {
        flex-wrap: wrap; /* now allow wrapping */
    }

        .parent-child-inline-fields select,
        .parent-child-inline-fields .phoneTextBox,
        .parent-child-inline-fields input[type="tel"] {
            max-width: 100%;
            width: 100%;
        }
}

/* =========================
   FINAL PASSWORD FIELD / TOGGLE FIX
   ========================= */

.parent-child-password-panel .parent-child-form-row--password .editor-field.password-field {
    position: relative;
    display: block;
    width: 100%;
    max-width: 560px;
    min-width: 0;
}

    /* Force SAME size whether input is text or password */
    .parent-child-password-panel .parent-child-form-row--password .editor-field.password-field input,
    .parent-child-password-panel .parent-child-form-row--password .editor-field.password-field input.longTextBox,
    .parent-child-password-panel .parent-child-form-row--password .editor-field.password-field input[type="password"],
    .parent-child-password-panel .parent-child-form-row--password .editor-field.password-field input[type="text"] {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        min-height: 52px !important;
        height: 52px !important;
        padding: 10px 92px 10px 14px !important;
        border-radius: 12px !important;
    }

/* Keep the validation below without affecting field width */
.parent-child-password-panel .parent-child-form-row--password .validation-message {
    margin-top: 8px;
}

/* Fixed-size toggle so Show/Hide does not resize */
.parent-child-password-panel .parent-child-form-row--password .toggle-password {
    position: absolute;
    top: 7px;
    right: 8px;
    transform: none;
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
}

.parent-child-password-panel .parent-child-form-row--password .toggle-password__text {
    display: inline-block;
    min-width: 0;
    line-height: 1;
}

/* Mobile */
@media (max-width: 640px) {
    .parent-child-password-panel .parent-child-form-row--password .editor-field.password-field {
        max-width: 100%;
    }

        .parent-child-password-panel .parent-child-form-row--password .editor-field.password-field input,
        .parent-child-password-panel .parent-child-form-row--password .editor-field.password-field input.longTextBox,
        .parent-child-password-panel .parent-child-form-row--password .editor-field.password-field input[type="password"],
        .parent-child-password-panel .parent-child-form-row--password .editor-field.password-field input[type="text"] {
            padding-right: 88px !important;
        }

    .parent-child-password-panel .parent-child-form-row--password .toggle-password {
        width: 68px;
        min-width: 68px;
        max-width: 68px;
        height: 36px;
        min-height: 36px;
        right: 6px;
    }
}

/* =========================
   PAYMENT PAGE
   ========================= */

.payment-page .boxContent {
    padding: 0;
}

.payment-card {
    border: 1px solid #dbe5ec;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

    .payment-card .dashboard-card-header-main {
        padding: 20px 24px 0 24px;
    }

.payment-card-body {
    padding: 18px 24px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.payment-form {
    display: grid;
    gap: 16px;
}

.payment-message,
.payment-validation-summary {
    margin-top: 0;
    margin-bottom: 0;
}

.payment-top-actions {
    margin-bottom: 12px;
}

.payment-section {
    display: grid;
    gap: 10px;
}

    .payment-section + .payment-section {
        border-top: 1px solid var(--line-soft);
    }

.payment-section-heading {
    margin-bottom: 0;
    padding-top: 12px;
}

.payment-section-title {
    margin: 0 0 6px 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #153650;
}

.payment-section-copy {
    margin: 0;
    max-width: 760px;
    color: #556876;
    font-size: 14px;
    line-height: 1.55;
}

.payment-form-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 10px 24px;
    align-items: start;
    padding: 12px 0;
    border-top: 1px solid #dfe8ee;
}

.payment-section > .payment-form-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.payment-form-row--read {
    align-items: center;
}

.payment-form-row--stack {
    align-items: start;
}

.payment-form-row--total {
    border-top-color: #dfe8cf;
}

.payment-form-label-wrap {
    min-width: 0;
}

.payment-label {
    display: block;
    margin: 0;
    color: #14364f;
    font-weight: 700;
    line-height: 1.45;
}

.payment-instruction {
    display: block;
    margin-top: 4px;
    color: #4f6472;
    font-size: 12px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.55;
}

.payment-form-field,
.payment-form-value {
    min-width: 0;
}

.payment-form-value {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    color: #24303a;
    font-size: 16px;
    font-weight: 600;
}

.payment-total-amount {
    display: inline-block;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #153650;
}

.payment-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 2px;
    border: 1px solid #dbe5ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.payment-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    background: #fff;
}

    .payment-table th,
    .payment-table td {
        padding: 12px 14px;
        border-top: 1px solid #edf2f5;
        vertical-align: top;
    }

    .payment-table thead th {
        border-top: 0;
        background: #f8fbeb;
        color: #36470d;
        font-weight: 700;
        text-align: left;
    }

    .payment-table tbody tr:first-child td {
        border-top: 0;
    }

.payment-remove-link {
    font-weight: 700;
}

.payment-empty-panel {
    padding: 14px 16px;
    border-radius: 12px;
    background: #fbfcfd;
    border: 1px solid #dbe5ec;
}

    .payment-empty-panel p {
        margin: 0;
    }

.payment-fieldset {
    border: none;
    margin: 0;
    padding: 0 0 12px 0;
}

    .payment-fieldset legend {
        border: none;
        margin: 0;
        padding: 0 0 6px 0;
    }

.payment-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    margin-top: 6px;
}

.payment-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .payment-radio-option input[type="radio"] {
        width: 20px;
        height: 20px;
    }

.payment-form-field input[type="text"],
.payment-form-field input[type="password"],
.payment-form-field input[type="email"],
.payment-form-field input[type="tel"],
.payment-form-field select,
.payment-form-field textarea {
    width: 100%;
    max-width: 560px;
    background: #f8fafb !important;
    border: 1px solid #b7c8d3 !important;
    border-radius: 12px !important;
    min-height: 46px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.4;
    color: #24303a;
    box-shadow: inset 0 1px 2px rgba(18,35,48,.04);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    -webkit-appearance: none;
    box-sizing: border-box;
}

    .payment-form-field input[type="text"]:hover,
    .payment-form-field input[type="password"]:hover,
    .payment-form-field input[type="email"]:hover,
    .payment-form-field input[type="tel"]:hover,
    .payment-form-field select:hover,
    .payment-form-field textarea:hover {
        background: #f3f7f9 !important;
        border-color: #9fb4c2 !important;
    }

    .payment-form-field input[type="text"]:focus,
    .payment-form-field input[type="password"]:focus,
    .payment-form-field input[type="email"]:focus,
    .payment-form-field input[type="tel"]:focus,
    .payment-form-field select:focus,
    .payment-form-field textarea:focus {
        background: #ffffff !important;
        border-color: #7fae2c !important;
        box-shadow: 0 0 0 3px rgba(127,174,44,0.14) !important;
        outline: none;
    }

.payment-form-field .field-validation-error,
.payment-acknowledgement .field-validation-error,
.payment-fieldset .field-validation-error {
    display: block;
    margin-top: 6px;
    color: #8f1d1d;
    font-size: 13px;
    font-weight: 700;
}

.payment-form-field input.cardNumberTextBox {
    width: 96px;
    max-width: 96px;
}

.payment-expiry-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-expiry-field select {
    min-width: 120px;
    max-width: 160px;
}

.payment-expiry-separator {
    color: #556876;
    font-weight: 700;
    font-size: 16px;
}

.payment-info-box {
    margin-bottom: 0;
}

.payment-terms-panel {
    width: 100%;
    height: 340px;
    max-height: 340px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 18px 20px;
    border: 1px solid #d7e1e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    box-sizing: border-box;
}

    .payment-terms-panel h1,
    .payment-terms-panel h2,
    .payment-terms-panel h3 {
        background: none;
        border: 0;
        box-shadow: none;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .payment-terms-panel h1 {
        margin-top: 0;
        margin-bottom: 14px;
        font-size: 24px;
        line-height: 1.2;
        color: #153650;
    }

    .payment-terms-panel h2 {
        margin-top: 22px;
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 1.3;
        color: #153650;
    }

    .payment-terms-panel p,
    .payment-terms-panel li {
        color: #24303a;
        line-height: 1.7;
    }

    .payment-terms-panel ul,
    .payment-terms-panel ol {
        padding-left: 22px;
    }

.payment-acknowledgement {
    display: grid;
    gap: 8px;
}

.payment-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .payment-checkbox-row input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-top: 2px;
        flex: 0 0 auto;
    }

    .payment-checkbox-row label {
        margin: 0;
        color: #24303a;
        line-height: 1.6;
    }

.payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 4px;
}

.payment-processing-message {
    margin: 0;
    color: #153650;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 700;
}

.payment-ui-dialog--loading .payment-dialog-body {
    text-align: center;
    padding: 32px 24px;
}

.payment-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #4a5a66;
}

    /* spinner */
    .payment-loading::before {
        content: "";
        width: 36px;
        height: 36px;
        border: 4px solid #e3ecf2;
        border-top-color: var(--green);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 980px) {
    .payment-card .dashboard-card-header-main {
        padding: 18px 20px 0 20px;
    }

    .payment-card-body {
        padding: 16px 20px 20px;
    }

    .payment-form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .payment-form-field input[type="text"],
    .payment-form-field input[type="password"],
    .payment-form-field input[type="email"],
    .payment-form-field input[type="tel"],
    .payment-form-field select,
    .payment-form-field textarea {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .payment-card .dashboard-card-header-main {
        padding: 16px 16px 0 16px;
    }

    .payment-card-body {
        padding: 14px 16px 18px;
    }

    .payment-top-actions .btn,
    .payment-actions .btn {
        width: 100%;
    }

    .payment-actions {
        align-items: stretch;
    }

    .payment-table {
        min-width: 520px;
    }

    .payment-total-amount {
        font-size: 24px;
    }

    .payment-checkbox-row {
        gap: 10px;
    }

    .payment-terms-panel {
        height: 300px;
        max-height: 300px;
        padding: 16px;
    }
}

/* =========================
   PAYMENT DIALOGS
   ========================= */

.payment-ui-dialog {
    border: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 22px 54px rgba(18,35,48,.22) !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: #ffffff !important;
}

    .payment-ui-dialog .ui-dialog-titlebar {
        display: none !important;
    }

    .payment-ui-dialog .ui-dialog-content {
        padding: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

.payment-dialog-shell {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%);
}

.payment-dialog-accent {
    height: 6px;
    display: block !important;
    background: linear-gradient(90deg, #b7d236 0%, #dced88 100%);
}

/* =========================
   PAYMENT DIALOGS
   Match practice test modal look
   ========================= */

.payment-ui-dialog {
    border: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 20px 50px rgba(18,35,48,.18) !important;
}

    .payment-ui-dialog .ui-dialog-titlebar {
        display: none !important;
    }

    .payment-ui-dialog .ui-dialog-content {
        padding: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

.payment-dialog-shell {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%);
}

.payment-dialog-accent {
    height: 6px;
    display: block !important; /* important: show the green bar */
    background: linear-gradient(90deg, #b7d236 0%, #dced88 100%);
}

.payment-dialog-body {
    padding: 22px 22px 20px;
}

.payment-dialog-kicker {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .45px;
    text-transform: uppercase;
    color: #556c14;
}

.payment-dialog-title {
    margin: 0 0 12px 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    color: #153650;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.payment-dialog-message {
    margin: 0;
    color: #556876;
    font-size: 15px;
    line-height: 1.7;
}

    .payment-dialog-message p {
        margin: 0 0 12px 0;
    }

        .payment-dialog-message p:last-child {
            margin-bottom: 0;
        }

.payment-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

    .payment-dialog-actions .btn {
        min-width: 130px;
        min-height: 46px;
    }

        /* Continue button */
        .payment-dialog-actions .btn.btn-orange {
            background: #e9ab51;
            border: 1px solid #cc7e1a;
            color: #2f1b05 !important;
            box-shadow: none;
        }

            .payment-dialog-actions .btn.btn-orange:hover,
            .payment-dialog-actions .btn.btn-orange:focus-visible {
                background: #e29f3c;
                border-color: #c87410;
            }

        /* Secondary button */
        .payment-dialog-btn-secondary,
        .payment-dialog-actions .btn.btn-white {
            background: #ffffff;
            border: 1px solid #a9bac6;
            color: #24303a !important;
            box-shadow: none;
        }

            .payment-dialog-btn-secondary:hover,
            .payment-dialog-btn-secondary:focus-visible,
            .payment-dialog-actions .btn.btn-white:hover,
            .payment-dialog-actions .btn.btn-white:focus-visible {
                background: #ffffff;
                border-color: #91a4b0;
            }

            /* nice visible keyboard focus like your screenshot */
            .payment-dialog-btn-secondary:focus-visible,
            .payment-dialog-actions .btn.btn-white:focus-visible,
            .payment-dialog-actions .btn.btn-orange:focus-visible {
                outline: 3px solid #7fae2c;
                outline-offset: 3px;
                box-shadow: 0 0 0 4px rgba(127,174,44,.18);
            }

@media (max-width: 640px) {
    .payment-ui-dialog {
        width: calc(100% - 24px) !important;
        max-width: none !important;
    }

    .payment-dialog-body {
        padding: 20px 16px 18px;
    }

    .payment-dialog-title {
        font-size: 22px;
    }

    .payment-dialog-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .payment-dialog-actions .btn {
            width: 100%;
            min-width: 0;
        }
}

/* =========================
   PRACTICE TEST PURCHASE
   ========================= */

.pt-page-shell .boxContent {
    padding: 0;
}

.pt-purchase-card {
    margin-bottom: 0;
    border: 1px solid #dbe5ec;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

    .pt-purchase-card .dashboard-card-header-main {
        padding: 20px 24px 0 24px;
    }

.pt-purchase-card-body {
    padding: 18px 24px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.pt-purchase-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

    .pt-purchase-top-actions .logout-wrapper,
    .pt-purchase-top-actions form,
    .pt-purchase-top-actions .logout {
        margin: 0;
    }

.pt-purchase-validation-summary {
    margin-top: 0;
    margin-bottom: 18px;
}

.pt-purchase-intro-note {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fbef;
    border: 1px solid #d8e4cb;
    color: #304212;
}

    .pt-purchase-intro-note p {
        margin: 0;
        line-height: 1.65;
    }

.pt-purchase-balance-card {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid #d8e4cb;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbef 0%, #f3f8e5 100%);
    box-shadow: var(--shadow-soft);
}

.pt-purchase-balance-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #556c14;
}

.pt-purchase-balance-value {
    color: #24303a;
    font-size: 15px;
    line-height: 1.6;
}

.pt-purchase-section {
    display: grid;
    gap: 16px;
}

    .pt-purchase-section + .pt-purchase-section {
        margin-top: 6px;
        padding-top: 22px;
        border-top: 1px solid var(--line-soft);
    }

.pt-purchase-section-heading {
    margin-bottom: 2px;
}

.pt-purchase-section-title {
    margin: 0 0 8px 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #153650;
}

.pt-purchase-section-copy {
    margin: 0;
    max-width: 760px;
    color: #556876;
    font-size: 14px;
    line-height: 1.65;
}

.pt-purchase-info-box {
    margin-bottom: 0;
}

.pt-purchase-copy p {
    margin: 0 0 14px;
    color: #24303a;
    line-height: 1.7;
}

    .pt-purchase-copy p:last-child {
        margin-bottom: 0;
    }

.pt-purchase-feature-list {
    margin: 0 0 14px 0;
    padding-left: 22px;
    color: #24303a;
}

    .pt-purchase-feature-list li {
        margin-bottom: 8px;
        line-height: 1.65;
    }

        .pt-purchase-feature-list li:last-child {
            margin-bottom: 0;
        }

.pt-purchase-options {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 12px;
}

.pt-purchase-option {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border: 1px solid #d7e1e8;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .pt-purchase-option:hover,
    .pt-purchase-option:focus-within {
        border-color: #c1d0d9;
        background: #fbfcfd;
        box-shadow: var(--shadow-md);
        transform: translateY(-1px);
    }

.pt-purchase-option-control {
    padding-top: 2px;
}

    .pt-purchase-option-control input[type="radio"] {
        width: 20px;
        height: 20px;
        margin: 0;
    }

.pt-purchase-option-content {
    display: grid;
    gap: 4px;
}

.pt-purchase-option-title {
    display: block;
    color: #153650;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.pt-purchase-option-copy {
    display: block;
    color: #556876;
    font-size: 14px;
    line-height: 1.55;
}

.pt-purchase-inline-validation {
    margin-top: 2px;
}

    .pt-purchase-inline-validation .field-validation-error {
        display: block;
        margin-top: 0;
        color: #8f1d1d;
        font-size: 13px;
        font-weight: 700;
    }

.pt-purchase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 4px;
}

@media (max-width: 980px) {
    .pt-purchase-card .dashboard-card-header-main {
        padding: 18px 20px 0 20px;
    }

    .pt-purchase-card-body {
        padding: 16px 20px 20px;
    }
}

@media (max-width: 640px) {
    .pt-purchase-card .dashboard-card-header-main {
        padding: 16px 16px 0 16px;
    }

    .pt-purchase-card-body {
        padding: 14px 16px 18px;
    }

    .pt-purchase-top-actions {
        align-items: stretch;
    }

        .pt-purchase-top-actions .btn,
        .pt-purchase-actions .btn {
            width: 100%;
        }

    .pt-purchase-option {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 14px;
    }

    .pt-purchase-option-title {
        font-size: 15px;
    }
}

/* =========================
   APPLICATION PAGE
   ========================= */

.application-page .boxContent {
    padding: 24px;
}

.application-page-card,
.application-section-card {
    margin-bottom: 20px;
}

.application-top-actions {
    margin-bottom: 18px;
}

.application-detail-row {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
}

    .application-detail-row:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

.application-detail-label {
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    color: #153650;
}

.application-detail-value {
    min-width: 0;
    color: var(--text);
}

    .application-detail-value input[type="text"],
    .application-detail-value textarea,
    .application-detail-value select,
    .application-input,
    .application-textarea,
    .application-select {
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        border: 1px solid #c8d5de;
        border-radius: 10px;
        font: inherit;
        color: var(--text);
        background: #fff;
    }

.application-textarea {
    min-height: 120px;
    resize: vertical;
}

.application-help-text {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

.application-fee-value {
    font-size: 24px;
    line-height: 1.2;
    color: #22320a;
}

.application-question-block {
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid #d7e1e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.application-question-title {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 700;
    color: #153650;
}

.application-question-number {
    margin-right: 6px;
}

.application-question-input > input[type="text"],
.application-question-input > textarea,
.application-question-input > select {
    width: 100%;
    max-width: 100%;
}

.application-options-group {
    margin: 0;
    padding: 0;
    border: 0;
}

.application-option-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
}

    .application-option-row input[type="radio"],
    .application-option-row input[type="checkbox"] {
        margin-top: 3px;
        flex: 0 0 auto;
    }

    .application-option-row label {
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
        color: var(--text);
    }

.application-terms-list {
    padding-left: 22px;
}

.application-staff-card {
    border-color: #d9e1ea;
}

.application-staff-subsection + .application-staff-subsection {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
}

.application-staff-subtitle {
    margin: 0 0 12px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    font-size: 18px;
    color: #153650;
}

.application-staff-action-block {
    padding: 16px;
    margin: 0 0 16px;
    border: 1px solid #d7e1e8;
    border-radius: 14px;
    background: #fff;
}

.application-staff-controls p {
    margin-bottom: 14px;
}

.application-table-wrap {
    overflow-x: auto;
}

.application-staff-table {
    margin-top: 10px;
}

    .application-staff-table th,
    .application-staff-table td {
        vertical-align: top;
    }

.mandatoryTC {
    color: #b42318;
    font-size: 18px;
    font-weight: bold;
}

@media (max-width: 900px) {
    .application-detail-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .application-page .boxContent {
        padding: 16px;
    }
}

@media (max-width: 700px) {
    .application-terms-scroll {
        max-height: 300px;
        padding: 14px;
    }

    .application-question-block {
        padding: 14px;
    }
}

/* =========================
   APPLICATION TRANSFER NOTICE
   ========================= */

.application-transfer-notice {
    position: relative;
    margin: 0 0 18px 0;
    padding: 18px 20px 18px 24px;
    border: 1px solid #e5c38f;
    border-radius: 18px;
    background: #f9f4ed;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

    .application-transfer-notice::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        background: linear-gradient(180deg, #f28c28 0%, #c9660c 100%);
    }

.application-transfer-notice__title {
    margin: 0 0 10px 0;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    color: #2f2418;
}

.application-transfer-notice__body,
.application-transfer-notice__body p,
.application-transfer-notice__body li {
    color: #4f3d2d;
    line-height: 1.7;
}

    .application-transfer-notice__body p {
        margin: 0 0 8px 0;
    }

        .application-transfer-notice__body p:last-child {
            margin-bottom: 0;
        }

    .application-transfer-notice__body a {
        font-weight: 700;
    }

@media (max-width: 640px) {
    .application-transfer-notice {
        padding: 16px 16px 16px 20px;
        border-radius: 16px;
    }
}

/* =========================
   APPLICATION PAGE LAYOUT FIX
   ========================= */

.tbox.application-page {
    max-width: 100%;
    margin: 24px 0 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
}

    .tbox.application-page > .boxContent {
        padding: 0;
    }

    .tbox.application-page .application-page-card {
        margin-bottom: 0;
    }

    /* keep inner section cards spaced nicely */
    .tbox.application-page .application-section-card {
        margin-top: 20px;
    }

/* mobile tidy-up */
@media (max-width: 700px) {
    .tbox.application-page {
        margin-top: 16px;
    }
}

/* =========================
   PAYMENT TABLE FIXES
   ========================= */

.payment-table th:nth-child(2),
.payment-table td:nth-child(2) {
    text-align: right;
}

.payment-table th:nth-child(3),
.payment-table td:nth-child(3) {
    text-align: right;
}

.payment-table td:nth-child(2) {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.payment-remove-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-decoration: none;
    color: #1f5fa8;
}

    .payment-remove-link::before {
        content: "🗑";
        font-size: 14px;
        line-height: 1;
    }

    .payment-remove-link:hover,
    .payment-remove-link:focus-visible {
        text-decoration: underline;
    }

.payment-table tbody tr:hover {
    background: #f8fafc;
}

/* =========================
   APPLICATION TERMS / INFO
   Match payment page styling
   ========================= */

.application-info-box {
    margin-bottom: 18px;
}

.application-terms-shell {
    display: grid;
    gap: 14px;
}

.application-terms-heading-wrap {
    margin-bottom: 0;
}

.application-terms-panel {
    height: 340px;
    max-height: 340px;
}

    .application-terms-panel h1,
    .application-terms-panel h2,
    .application-terms-panel h3 {
        background: none;
        border: 0;
        box-shadow: none;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .application-terms-panel h1 {
        margin-top: 0;
        margin-bottom: 14px;
        font-size: 24px;
        line-height: 1.2;
        color: #153650;
    }

    .application-terms-panel h2 {
        margin-top: 22px;
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 1.3;
        color: #153650;
    }

    .application-terms-panel p,
    .application-terms-panel li {
        color: #24303a;
        line-height: 1.7;
    }

    .application-terms-panel ul,
    .application-terms-panel ol {
        padding-left: 22px;
    }

.application-terms-acknowledgement {
    gap: 8px;
}

@media (max-width: 640px) {
    .application-terms-panel {
        height: 300px;
        max-height: 300px;
        padding: 16px;
    }
}

/* Normalize select to match input */
select.form-control,
select,
.form-control select {
    border: 1px solid #d0d7de;
    border-radius: 10px;
    height: 42px;
    padding: 8px 12px;
    box-shadow: none;
    outline: none;
}

    /* Focus state (match your green style, but NOT thicker) */
    select.form-control:focus,
    select:focus {
        border-color: #7cb342;
        box-shadow: 0 0 0 2px rgba(124, 179, 66, 0.15); /* soft glow only */
        outline: none;
    }

/* =========================
   APPLICATION CUSTOM QUESTION INPUT FOCUS FIX
   ========================= */

.application-question-block .application-question-input > input[type="text"].application-input,
.application-question-block .application-question-input > textarea.application-textarea {
    outline: none;
    outline-offset: 0;
}

    /* Custom-question single-line answer */
    .application-question-block .application-question-input > input[type="text"].application-input:focus,
    .application-question-block .application-question-input > input[type="text"].application-input:focus-visible {
        background: #ffffff !important;
        border-color: #7fae2c !important;
        outline: none !important;
        outline-offset: 0 !important;
        box-shadow: 0 0 0 2px rgba(127,174,44,0.18) !important;
    }

    /* Custom-question textarea answer */
    .application-question-block .application-question-input > textarea.application-textarea:focus,
    .application-question-block .application-question-input > textarea.application-textarea:focus-visible {
        background: #ffffff !important;
        border-color: #7fae2c !important;
        outline: none !important;
        outline-offset: 0 !important;
        box-shadow: 0 0 0 2px rgba(127,174,44,0.18) !important;
    }

/* Custom-question single-line text input */
.application-question-text-input {
    outline: none;
}

    .application-question-text-input:focus,
    .application-question-text-input:focus-visible {
        background: #ffffff !important;
        border-color: #7fae2c !important;
        outline: none !important;
        outline-offset: 0 !important;
        box-shadow: 0 0 0 2px rgba(127,174,44,0.18) !important;
    }

/* =========================
   ASSESSMENT ENTRY POINT
   ========================= */

.entry-point-page .boxContent {
    padding: 0;
}

.entry-point-card {
    margin-bottom: 0;
    background: #fbfcfb;
}

    .entry-point-card .dashboard-card-header,
    .entry-point-card .dashboard-card-header-main,
    .entry-point-card .dashboard-card-body {
        background: transparent;
    }

.entry-point-alert {
    margin-top: 0;
    margin-bottom: 0;
}

.entry-point-detail-grid {
    display: grid;
    gap: 0;
}

.entry-point-detail-row {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid #eef1f3;
}

    .entry-point-detail-row:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .entry-point-detail-row:last-child {
        border-bottom: none;
    }

.entry-point-detail-label {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    color: #153650;
}

.entry-point-detail-value {
    min-width: 0;
    color: var(--text);
}

    .entry-point-detail-value .highlight {
        display: inline-block;
    }

.entry-point-support-copy {
    margin: 8px 0 0 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.entry-point-richtext p,
.entry-point-richtext li,
.entry-point-richtext span {
    color: inherit;
}

.entry-point-richtext > :last-child {
    margin-bottom: 0;
}

.entry-point-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--line-soft);
}

@media (max-width: 900px) {
    .entry-point-detail-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Fix datepicker dropdown (month/year) */
.ui-datepicker select {
    border-radius: 4px !important;
    padding: 2px 4px !important;
    height: auto !important;
    font-size: 14px !important;
    -webkit-appearance: menulist !important;
}

/* Fix layout alignment */
.ui-datepicker .ui-datepicker-title select {
    width: auto !important;
    margin: 0 2px !important;
}

/* Prevent weird flex/centering issues */
.ui-datepicker-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

/* =========================
   DATEPICKER - MODERN THEME
   Scoped to jQuery UI datepicker only
========================= */

.ui-datepicker {
    width: 19rem;
    padding: 0;
    border: 1px solid #d7e1e8;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(18,35,48,.12);
    overflow: hidden;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    z-index: 9999 !important;
}

    /* Top header */
    .ui-datepicker .ui-datepicker-header {
        position: relative;
        padding: 12px 40px;
        border: 0;
        border-bottom: 1px solid #edf2f5;
        background: linear-gradient(135deg, #23475c 0%, #486a44 54%, #6f9625 100%);
        color: #fff;
        border-radius: 0;
    }

        /* Decorative top strip to match your cards */
        .ui-datepicker .ui-datepicker-header::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, #b7d236 0%, #dced88 100%);
        }

    /* Prev / next buttons */
    .ui-datepicker .ui-datepicker-prev,
    .ui-datepicker .ui-datepicker-next {
        top: 50%;
        width: 30px;
        height: 30px;
        transform: translateY(-50%);
        border: 1px solid rgba(255,255,255,.28);
        border-radius: 999px;
        background: rgba(255,255,255,.14);
        transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
        cursor: pointer;
    }

    .ui-datepicker .ui-datepicker-prev {
        left: 10px;
    }

    .ui-datepicker .ui-datepicker-next {
        right: 10px;
    }

        .ui-datepicker .ui-datepicker-prev:hover,
        .ui-datepicker .ui-datepicker-next:hover,
        .ui-datepicker .ui-datepicker-prev:focus,
        .ui-datepicker .ui-datepicker-next:focus {
            background: rgba(255,255,255,.22);
            border-color: rgba(255,255,255,.42);
            outline: none;
            box-shadow: 0 0 0 3px rgba(255,255,255,.14);
        }

        /* arrow icons */
        .ui-datepicker .ui-datepicker-prev span,
        .ui-datepicker .ui-datepicker-next span {
            background-image: none !important;
            text-indent: 0;
            overflow: visible;
            width: auto;
            height: auto;
            margin: 0;
            left: 0;
            top: 0;
            position: static;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 0;
            line-height: 1;
        }

            .ui-datepicker .ui-datepicker-prev span::before {
                content: "‹";
                font-size: 18px;
                font-weight: 700;
            }

            .ui-datepicker .ui-datepicker-next span::before {
                content: "›";
                font-size: 18px;
                font-weight: 700;
            }

    /* Title row */
    .ui-datepicker .ui-datepicker-title {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 0;
        line-height: 1.2;
    }

    /* Month / year dropdowns */
    .ui-datepicker select.ui-datepicker-month,
    .ui-datepicker select.ui-datepicker-year {
        min-width: 84px;
        height: 36px;
        padding: 6px 10px;
        border: 1px solid #cfdce5;
        border-radius: 10px;
        background: #fff;
        color: #24303a;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(18,35,48,.06);
        -webkit-appearance: menulist;
    }

    .ui-datepicker select.ui-datepicker-year {
        min-width: 76px;
    }

        .ui-datepicker select.ui-datepicker-month:focus,
        .ui-datepicker select.ui-datepicker-year:focus {
            outline: 3px solid rgba(127,174,44,.22);
            outline-offset: 1px;
            border-color: #7fae2c;
        }

    /* Calendar table wrapper spacing */
    .ui-datepicker table {
        width: calc(100% - 20px);
        margin: 10px;
        border-collapse: separate;
        border-spacing: 0;
    }

    /* Day names */
    .ui-datepicker th {
        padding: 8px 4px 10px;
        font-size: 12px;
        font-weight: 600;
        color: #556876;
        text-transform: none;
    }

    /* Cells */
    .ui-datepicker td {
        padding: 3px;
    }

        /* General day button */
        .ui-datepicker td a,
        .ui-datepicker td span {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            margin: 0 auto;
            border-radius: 10px;
            border: 1px solid transparent;
            text-align: center;
            text-decoration: none;
            font-size: 13px;
            font-weight: 700;
        }

        /* Default days */
        .ui-datepicker td a {
            background: #ffffff;
            color: #24303a;
            transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
        }

            .ui-datepicker td a:hover,
            .ui-datepicker td a:focus {
                background: #f3f8d9;
                border-color: #d7e7a4;
                color: #43560f;
                outline: none;
            }

    /* Today */
    .ui-datepicker .ui-datepicker-today a {
        border-color: #b7d236;
        background: #f7fce9;
        color: #4f6512;
        box-shadow: inset 0 0 0 1px rgba(183,210,54,.18);
    }

    /* Selected day */
    .ui-datepicker .ui-state-active,
    .ui-datepicker .ui-widget-content .ui-state-active,
    .ui-datepicker .ui-widget-header .ui-state-active {
        background: linear-gradient(180deg, #4f9f4f 0%, #3d833d 100%);
        border-color: #2f6f2f;
        color: #fff !important;
        box-shadow: 0 6px 14px rgba(61,131,61,.22);
    }

        /* Selected + hover */
        .ui-datepicker .ui-state-active:hover,
        .ui-datepicker .ui-state-active:focus {
            background: linear-gradient(180deg, #4a964a 0%, #367736 100%);
            border-color: #2a652a;
            color: #fff !important;
        }

    /* Disabled / unselectable */
    .ui-datepicker .ui-state-disabled,
    .ui-datepicker .ui-datepicker-unselectable span {
        opacity: .4;
        background: #f5f7f9;
        color: #93a1ac;
        border-color: transparent;
    }

    /* Other month days */
    .ui-datepicker .ui-priority-secondary,
    .ui-datepicker .ui-datepicker-other-month a {
        color: #9aa7b2;
    }

    /* Remove old jQuery UI corner styles */
    .ui-datepicker .ui-corner-all,
    .ui-datepicker .ui-corner-top,
    .ui-datepicker .ui-corner-left,
    .ui-datepicker .ui-corner-right,
    .ui-datepicker .ui-corner-bottom {
        border-radius: inherit;
    }

/* Mobile */
@media (max-width: 640px) {
    .ui-datepicker {
        width: 17.5rem;
    }

        .ui-datepicker .ui-datepicker-header {
            padding: 12px 36px;
        }

        .ui-datepicker select.ui-datepicker-month,
        .ui-datepicker select.ui-datepicker-year {
            min-width: 72px;
            font-size: 13px;
            height: 34px;
        }

        .ui-datepicker td a,
        .ui-datepicker td span {
            width: 32px;
            height: 32px;
            font-size: 12px;
        }
}

/* Phone/mobile fields — balanced ratio layout*/

.parent-child-form-row .parent-child-inline-fields {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 420px; 
}

    .parent-child-form-row .parent-child-inline-fields select,
    .parent-child-form-row .parent-child-inline-fields input {
        flex: none;
        width: auto !important;
    }

    .parent-child-form-row .parent-child-inline-fields select {
        width: 350px !important;
    }

    .parent-child-form-row .parent-child-inline-fields .phoneTextBox {
        width: 200px !important;
    }

/* Email fields: wider, but not full row width */
.parent-child-form-row .editor-field .longTextBox {
    width: 100% !important;
    max-width: 560px !important;
}

/* Highlight Australia option (value = 14) */
select option[value="14"] {
    background-color: #e8f5e9; 
    color: #1b1b1b;
    font-weight: 600;
}

#otherStateWrap {
    display: none;
}

/* Improve spacing for "Other" field */
#otherStateWrap {
    margin-top: 8px;
}

    #otherStateWrap label {
        display: block;
        margin-bottom: 6px;
    }

    #otherStateWrap input {
        margin-top: 0;
    }

.dashboard-card.dashboard-card--soft.application-page-card {
    background: #fbfcfb;
}

    .dashboard-card.dashboard-card--soft.application-page-card .dashboard-card-header,
    .dashboard-card.dashboard-card--soft.application-page-card .dashboard-card-header-main,
    .dashboard-card.dashboard-card--soft.application-page-card .dashboard-card-body {
        background: transparent;
    }

.parent-child-inline-validation {
    margin-top: 6px;
    max-width: 560px;
}

    .parent-child-inline-validation .field-validation-error,
    .parent-child-inline-validation .field-validation-valid {
        display: block;
    }

.editor-field .field-validation-error,
.editor-field .field-validation-valid {
    display: block;
    max-width: 560px; 
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
}

/* =========================
   CONFIRMATION PAGE
========================= */

.confirmation-page .dashboard-card {
    margin-top: 24px;
}

.confirmation-card {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.confirmation-content-flow {
    display: grid;
    gap: 18px;
}

.confirmation-student-access-panel {
    margin-top: 0;
    margin-bottom: 18px;
    border: 1px solid #d9e5c8;
    background: linear-gradient(180deg, #fbfdf4 0%, #f6fbe8 100%);
    box-shadow: 0 6px 16px rgba(17,53,83,.05);
}

    .confirmation-student-access-panel .studentLoginDetailsTitle {
        margin: 0 0 12px 0;
        font-size: 22px;
        line-height: 1.25;
        color: #22320a;
    }

    .confirmation-student-access-panel .studentLoginDetailsFoot {
        margin-top: 16px !important;
        padding-top: 12px;
        border-top: 1px solid #dce8c6;
        color: #44542a;
        font-size: 14px;
        line-height: 1.65;
    }

.confirmation-section-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #153650;
}

.confirmation-info-block {
    padding: 18px 18px 16px;
    border: 1px solid #d7e1e8;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

    .confirmation-info-block::before {
        content: "";
        display: block;
        height: 6px;
        width: calc(100% + 36px);
        margin: -18px -18px 14px -18px;
        background: linear-gradient(90deg, var(--green) 0%, var(--green-soft) 100%);
    }

.confirmation-list {
    margin: 0 0 0 18px;
    padding: 0;
    color: #4f6170;
    line-height: 1.75;
}

    .confirmation-list li + li {
        margin-top: 6px;
    }

.confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.confirmation-print-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #153650 !important;
    background: #f3f7ff;
    border: 1px solid #c5d6ee;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

    .confirmation-print-btn:hover,
    .confirmation-print-btn:focus-visible {
        background: #eaf1ff;
        border-color: #adc7ea;
        text-decoration: none !important;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(18,35,48,.08);
    }

@media (max-width: 767px) {
    .confirmation-page .dashboard-card {
        margin-top: 16px;
    }

    .confirmation-student-access-panel .studentLoginDetailsTitle {
        font-size: 20px;
    }

    .confirmation-actions .btn {
        width: 100%;
    }

    .confirmation-print-btn {
        width: 100%;
        justify-content: center;
    }
}

.confirmation-paragraph {
    margin: 0 0 10px 0;
    color: #24303a;
    line-height: 1.7;
}

    .confirmation-paragraph:last-child {
        margin-bottom: 0;
    }

.confirmation-info-block--access {
    background: linear-gradient(180deg, #fbfdf4 0%, #f6fbe8 100%);
    border-color: #d9e5c8;
}

    .confirmation-info-block--access::before {
        background: linear-gradient(90deg, var(--green) 0%, var(--green-soft) 100%);
    }

    .confirmation-info-block--access .studentLoginDetailRow {
        margin: 10px 0;
    }

    .confirmation-info-block--access .studentLoginDetailLabel {
        width: 110px;
        min-width: 110px;
    }

.confirmation-access-note {
    color: #44542a;
}

.confirmation-actions .btn.btn-orange {
    min-width: 220px;
}