:root {
    --cda-cursor-gold: #EDB700;
    --cda-cursor-edge: #3E3E3E;
}

/* Shared cursor effect: gold remains visible on light, purple and dark surfaces. */
.cursor-outer,
.cursor-outer.cursor-color-light,
.cursor-outer.cursor-color-dark {
    border: 2px solid var(--cda-cursor-gold) !important;
    box-shadow: 0 0 0 1px rgba(62, 62, 62, 0.72),
        0 0 9px rgba(237, 183, 0, 0.36);
}

.cursor-inner:not(.cursor-inner-plus),
.cursor-inner.cursor-color-light:not(.cursor-inner-plus),
.cursor-inner.cursor-color-dark:not(.cursor-inner-plus) {
    background-color: var(--cda-cursor-gold) !important;
    box-shadow: 0 0 0 1px rgba(62, 62, 62, 0.78),
        0 0 6px rgba(237, 183, 0, 0.45);
}

.cursor-inner.cursor-inner-plus,
.cursor-inner.cursor-color-light.cursor-inner-plus,
.cursor-inner.cursor-color-dark.cursor-inner-plus {
    background-color: transparent !important;
    box-shadow: none;
}

.cursor-inner.cursor-inner-plus::before,
.cursor-inner.cursor-color-light.cursor-inner-plus::before,
.cursor-inner.cursor-color-dark.cursor-inner-plus::before {
    color: var(--cda-cursor-gold) !important;
    text-shadow: 0 1px 2px var(--cda-cursor-edge),
        0 0 5px rgba(237, 183, 0, 0.45);
}

@media (hover: none) and (pointer: coarse) {
    .cursor-outer,
    .cursor-inner {
        display: none !important;
    }

    .hide-mouse-cursor,
    .hide-mouse-cursor a,
    .hide-mouse-cursor button,
    .hide-mouse-cursor input,
    .hide-mouse-cursor textarea,
    .hide-mouse-cursor .mfp-auto-cursor .mfp-content {
        cursor: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cursor-outer,
    .cursor-inner {
        transition: none !important;
    }
}

/* Shared registration form: based on the existing BOOK ONLINE form system. */
.registration-page,
.registration-page input,
.registration-page select,
.registration-page button,
.registration-page textarea {
    font-family: "Sarabun", sans-serif;
}

.registration-header-logo {
    display: block;
    width: 68px;
    max-width: 100%;
    height: 68px;
    object-fit: contain;
}

.registration-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.75rem) 0;
    color: #FFFFFF;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.14), transparent 30%),
        linear-gradient(135deg, #572052 0%, #6F2869 48%, #8F4B9D 100%);
}

.registration-hero-content {
    max-width: 820px;
}

.registration-eyebrow {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: #F2D5EF;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.registration-hero h1 {
    margin: 0 0 0.65rem;
    color: #FFFFFF;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
}

.registration-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.75;
}

.registration-section {
    padding: clamp(1.5rem, 3.5vw, 2.75rem) 0 !important;
}

.registration-notice {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(111, 40, 105, 0.18);
    border-radius: 0.75rem;
    color: #3E3E3E;
    background: #FFFFFF;
    box-shadow: 0 0.5rem 1.5rem rgba(62, 62, 62, 0.06);
}

.registration-notice > i {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #6F2869;
    background: rgba(111, 40, 105, 0.1);
    border-radius: 50%;
}

.registration-notice strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #572052;
}

.registration-notice p {
    margin: 0;
    line-height: 1.7;
}

.registration-form {
    display: grid;
    gap: clamp(0.85rem, 1.5vw, 1.15rem);
}

.registration-panel {
    min-width: 0;
    margin: 0;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid #E1D7E0;
    border-radius: 0.9rem;
    background: #FFFFFF;
    box-shadow: 0 0.5rem 1.5rem rgba(62, 62, 62, 0.055);
}

.registration-panel-title {
    display: flex;
    width: auto;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
    padding: 0;
    color: #572052;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 700;
    line-height: 1.35;
}

.registration-step {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: #6F2869;
    border-radius: 50%;
    font-size: 1rem;
}

.registration-panel-description {
    margin: -0.15rem 0 0.85rem;
    color: #6E6E6E;
    line-height: 1.65;
}

.registration-form .form-group {
    margin-bottom: 0.8rem;
}

.registration-form label {
    margin-bottom: 0.4rem;
    color: #3E3E3E;
    font-weight: 600;
}

.registration-control,
.registration-file-input {
    min-height: 44px;
    border: 1px solid #D8D8D8;
    border-radius: 0.45rem;
    color: #2F2F2F;
    background-color: #FFFFFF;
    box-shadow: none;
}

.registration-control:focus,
.registration-file-input:focus {
    border-color: #8F4B9D;
    box-shadow: 0 0 0 0.2rem rgba(111, 40, 105, 0.14);
}

.registration-form small {
    display: block;
    margin-top: 0.35rem;
    color: #707070;
    line-height: 1.45;
}

.registration-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.registration-upload-card {
    min-width: 0;
    padding: 0.9rem;
    border: 1px dashed #C9B3C7;
    border-radius: 0.7rem;
    background: #FCF9FC;
}

.registration-upload-card label {
    display: block;
    color: #572052;
    font-size: 1.02rem;
}

.registration-upload-card p {
    min-height: 3.2em;
    margin-bottom: 0.85rem;
    color: #666666;
    line-height: 1.6;
}

.registration-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.registration-choice {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.6rem;
    margin: 0 !important;
    padding: 0.6rem 0.8rem;
    border: 1px solid #D8D8D8;
    border-radius: 0.55rem;
    background: #FFFFFF;
    cursor: pointer;
}

.registration-choice:has(input:checked) {
    border-color: #6F2869;
    color: #572052;
    background: rgba(111, 40, 105, 0.07);
}

.registration-choice input,
.registration-checklist input,
.registration-confirm-choice input,
.registration-inline-check input {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    accent-color: #6F2869;
}

.registration-subsection {
    margin-top: 0.35rem;
    padding-top: 0.9rem;
    border-top: 1px solid #ECE5EB;
}

.registration-subsection-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.registration-subsection-heading h2 {
    margin: 0;
    color: #572052;
    font-size: 1.05rem;
    font-weight: 700;
}

.registration-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 !important;
    font-size: 0.9rem;
}

.registration-certification,
.registration-exam-note,
.registration-warning {
    margin-bottom: 0.8rem;
    padding: 0.85rem;
    border-radius: 0.55rem;
    line-height: 1.7;
}

.registration-certification {
    color: #4B4B4B;
    background: #F7F4F7;
}

.registration-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.registration-exam-note {
    border-left: 4px solid #6F2869;
    background: #FCF9FC;
}

.registration-exam-note ul {
    margin: 0.4rem 0 0;
    padding-left: 1.25rem;
}

.registration-checklist,
.registration-confirm-options {
    display: grid;
    gap: 0.6rem;
}

.registration-confirm-options--single {
    max-width: 760px;
}

.registration-confirm-options--single .registration-confirm-choice {
    min-height: 64px;
    align-items: center;
}

.registration-checklist label,
.registration-confirm-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 !important;
    padding: 0.7rem 0.85rem;
    border: 1px solid #E1D7E0;
    border-radius: 0.55rem;
    color: #444444;
    background: #FFFFFF;
}

.registration-confirm-choice {
    cursor: pointer;
}

.registration-confirm-choice:has(input:checked) {
    border-color: #6F2869;
    background: rgba(111, 40, 105, 0.06);
}

.registration-confirm-choice strong {
    display: block;
    margin-bottom: 0.15rem;
    color: #572052;
}

.registration-warning {
    margin-top: 0.8rem;
    color: #6A4A00;
    background: #FFF7DF;
    border: 1px solid #F1D88A;
}

.registration-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.registration-secondary-button,
.registration-submit-button {
    min-height: 44px;
    padding: 0.65rem 1.35rem;
    border-radius: 0.45rem;
}

.registration-submit-button {
    color: #FFFFFF;
    background: #6F2869;
}

.registration-submit-button:hover,
.registration-submit-button:focus-visible {
    color: #FFFFFF;
    background: #572052;
}

.registration-submit-button:disabled,
.registration-submit-button[aria-disabled="true"] {
    color: #777777;
    background: #D8D8D8;
    cursor: not-allowed;
    opacity: 1;
}

.registration-submit-hint {
    margin: 0.65rem 0 0;
    color: #725100;
    font-size: 0.9rem;
}

.registration-submit-hint.is-ready {
    color: #35633A;
}

@media (max-width: 991.98px) {
    .registration-header-logo {
        width: 58px;
        height: 58px;
    }

    .registration-upload-grid {
        grid-template-columns: 1fr;
    }

    .registration-upload-card p {
        min-height: 0;
    }

    .registration-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .registration-hero {
        padding-block: 1.25rem;
    }

    .registration-section {
        padding-block: 1.15rem !important;
    }

    .registration-notice {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }

    .registration-notice > i {
        width: 36px;
        height: 36px;
    }

    .registration-panel {
        padding: 0.95rem;
    }

    .registration-subsection-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .registration-choice-grid {
        grid-template-columns: 1fr;
    }

    .registration-confirm-options--single {
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .registration-page #header .header-top .header-column:first-child {
        display: none;
    }

    .registration-page #header .header-top .header-column:last-child {
        width: 100%;
        align-items: center;
    }

    .registration-page #header .header-top .header-row {
        justify-content: center;
    }

    .registration-header-logo {
        width: 52px;
        height: 52px;
    }

    .registration-panel-title {
        align-items: flex-start;
    }

    .registration-choice-group {
        display: grid;
    }

    .registration-choice {
        width: 100%;
    }

    .registration-actions {
        flex-direction: column-reverse;
    }

    .registration-secondary-button,
    .registration-submit-button {
        width: 100%;
    }
}

@media (max-width: 359.98px) {
    .registration-panel {
        padding-inline: 0.75rem;
    }

    .registration-step {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
}

/* Applicant verification: shared BOOK ONLINE form styling */
.verification-section {
    padding-block: clamp(1.5rem, 4vw, 3rem);
}

.verification-layout {
    display: grid;
    max-width: 1040px;
    grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.35fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: stretch;
    margin-inline: auto;
}

.verification-guide,
.verification-form-card {
    border-radius: 0.9rem;
}

.verification-guide {
    padding: clamp(1.25rem, 3vw, 2rem);
    color: #FFFFFF;
    background: linear-gradient(145deg, #572052, #6F2869);
}

.verification-guide-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    color: #572052;
    background: #FFFFFF;
    font-size: 1.2rem;
}

.verification-guide h2 {
    margin: 0 0 0.65rem;
    color: #FFFFFF;
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}

.verification-guide p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.65;
}

.verification-guide-list {
    display: grid;
    gap: 0.7rem;
    margin: 1.25rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    list-style: none;
}

.verification-guide-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.9);
}

.verification-guide-list i {
    margin-top: 0.3rem;
    color: #F4C85A;
}

.verification-form-card {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #E1D7E0;
    background: #FFFFFF;
    box-shadow: 0 0.75rem 2rem rgba(62, 62, 62, 0.07);
}

.verification-form-heading {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ECE5EB;
}

.verification-form-heading > span {
    color: #8F4B9D;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.verification-form-heading h2 {
    margin: 0.2rem 0;
    color: #572052;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.verification-form-heading p {
    margin: 0;
    color: #777777;
    font-size: 0.85rem;
}

.verification-form-heading p span,
.verification-field label span {
    color: #B42318;
}

.verification-form {
    display: grid;
    gap: 1rem;
}

.verification-stage {
    display: grid;
    gap: 1rem;
}

.verification-stage[hidden] {
    display: none;
}

.verification-stage-header {
    margin-bottom: 0.1rem;
}

.verification-stage-header > span {
    color: #8F4B9D;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.verification-stage-header h3 {
    margin: 0.15rem 0 0.25rem;
    color: #572052;
    font-size: 1.15rem;
}

.verification-stage-header p {
    margin: 0;
    color: #777777;
    font-size: 0.85rem;
    line-height: 1.55;
}

.verification-name-grid,
.verification-password-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.verification-progress {
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.verification-field {
    min-width: 0;
    margin: 0;
}

.verification-field label {
    display: block;
    margin-bottom: 0.4rem;
    color: #3F3F3F;
    font-weight: 600;
}

.verification-control {
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    color: #333333;
    background-color: #F6F4F6;
    border-radius: 0.45rem;
}

.verification-control:focus {
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(111, 40, 105, 0.14) !important;
}

.verification-control::placeholder {
    color: #929292;
}

.verification-field small {
    display: block;
    margin-top: 0.35rem;
    color: #777777;
    font-size: 0.78rem;
}

.verification-error {
    color: #B42318 !important;
    font-weight: 600;
}

.verification-error[hidden] {
    display: none;
}

.verification-check-success {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.8rem 0.9rem;
    color: #35633A;
    background: #E9F6EA;
    border: 1px solid #CFE6D1;
    border-radius: 0.6rem;
}

.verification-check-success > i {
    margin-top: 0.2rem;
    font-size: 1.1rem;
}

.verification-check-success div {
    display: grid;
    gap: 0.1rem;
}

.verification-check-success span {
    color: #4F6F52;
    font-size: 0.82rem;
}

.verification-password-method {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.verification-password-method legend {
    width: auto;
    margin-bottom: 0.55rem;
    color: #3F3F3F;
    font-size: 0.95rem;
    font-weight: 700;
}

.verification-password-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.verification-password-option {
    display: grid;
    min-width: 0;
    grid-template-columns: 18px 38px minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
    margin: 0;
    padding: 0.75rem;
    color: #493748;
    background: #FAF8FA;
    border: 1px solid #DED4DD;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.verification-password-option:hover,
.verification-password-option:focus-within,
.verification-password-option.is-selected {
    background: #F7EDF8;
    border-color: #8F4B9D;
    box-shadow: 0 0 0 3px rgba(111, 40, 105, 0.08);
}

.verification-password-option input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #6F2869;
}

.verification-password-option-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #6F2869;
    background: #FFFFFF;
    border-radius: 50%;
}

.verification-password-option > span:last-child {
    display: grid;
    min-width: 0;
    gap: 0.1rem;
}

.verification-password-option strong {
    color: #572052;
    line-height: 1.35;
}

.verification-password-option small {
    color: #777777;
    font-size: 0.76rem;
    line-height: 1.4;
}

.verification-password-panel {
    padding: 0.85rem;
    background: #F8F6F8;
    border: 1px solid #E7DFE6;
    border-radius: 0.6rem;
}

.verification-password-panel[hidden] {
    display: none;
}

.verification-confirmation {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid #E1D7E0;
    border-radius: 0.55rem;
    color: #4A3B49;
    background: #FAF8FA;
    line-height: 1.55;
}

.verification-confirmation input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 0.18rem;
    accent-color: #6F2869;
}

.verification-confirmation span {
    min-width: 0;
}

.verification-privacy-note {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
    border: 1px solid #DCE6DC;
    border-radius: 0.55rem;
    color: #426A46;
    background: #F3F8F3;
    font-size: 0.85rem;
}

.verification-privacy-note i {
    margin-top: 0.2rem;
}

.verification-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.2rem;
}

.verification-reset-button,
.verification-submit-button {
    min-height: 46px;
    padding: 0.7rem 1.25rem;
    border-radius: 0.45rem;
}

.verification-submit-button {
    min-width: 180px;
}

.verification-actions--split {
    justify-content: space-between;
}

@media (max-width: 991.98px) {
    .verification-layout {
        grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    }
}

@media (max-width: 767.98px) {
    .verification-section {
        padding-block: 1.25rem;
    }

    .verification-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .verification-guide,
    .verification-form-card {
        padding: 1rem;
    }

    .verification-guide-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 0.75rem;
    }

    .verification-password-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 479.98px) {
    .verification-name-grid,
    .verification-password-grid {
        grid-template-columns: 1fr;
    }

    .verification-actions {
        flex-direction: column-reverse;
    }

    .verification-reset-button,
    .verification-submit-button {
        width: 100%;
    }
}

/* Registration summary and online payment */
.summary-hero {
    padding: clamp(1.4rem, 3vw, 2.4rem) 0;
    color: #FFFFFF;
    background: linear-gradient(135deg, #572052, #6F2869 55%, #8F4B9D);
}

.summary-hero .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-success-mark {
    display: inline-flex;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    color: #35633A;
    background: #FFFFFF;
    border-radius: 50%;
    font-size: 1.35rem;
    box-shadow: 0 0.5rem 1.4rem rgba(38, 18, 36, 0.2);
}

.summary-hero h1 {
    margin: 0 0 0.35rem;
    color: #FFFFFF;
    font-size: clamp(1.75rem, 4vw, 2.7rem);
    font-weight: 700;
}

.summary-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.summary-section {
    padding: clamp(1.5rem, 4vw, 3rem) 0;
    background: #F7F5F7;
}

.summary-empty-state {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid #E1D7E0;
    border-radius: 0.75rem;
    background: #FFFFFF;
}

.summary-empty-state[hidden] {
    display: none;
}

.summary-empty-state > i {
    color: #6F2869;
    font-size: 1.35rem;
    text-align: center;
}

.summary-empty-state strong {
    color: #572052;
}

.summary-empty-state p {
    margin: 0.15rem 0 0;
    color: #6E6E6E;
}

.summary-progress {
    display: grid;
    max-width: 650px;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto 1.5rem;
}

.summary-progress-item {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    color: #777777;
    font-size: 0.8rem;
    text-align: center;
}

.summary-progress-item > span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 2px solid #CFCFCF;
    border-radius: 50%;
    background: #FFFFFF;
    font-weight: 700;
}

.summary-progress-item.is-complete {
    color: #572052;
}

.summary-progress-item.is-complete > span {
    border-color: #6F2869;
    color: #FFFFFF;
    background: #6F2869;
}

.summary-progress-line {
    height: 2px;
    margin-top: -1.35rem;
    background: #D8D8D8;
}

.summary-progress-line.is-complete {
    background: #6F2869;
}

.summary-progress--four {
    max-width: 820px;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
}

.summary-progress-item.is-current {
    color: #572052;
}

.summary-progress-item.is-current > span {
    border-color: #6F2869;
    color: #6F2869;
    box-shadow: 0 0 0 4px rgba(111, 40, 105, 0.1);
}

.registration-progress {
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.summary-layout {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.summary-card,
.payment-card {
    height: 100%;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid #E1D7E0;
    border-radius: 0.9rem;
    background: #FFFFFF;
    box-shadow: 0 0.7rem 1.8rem rgba(62, 62, 62, 0.07);
}

.summary-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #ECE5EB;
}

.summary-card-heading span:first-child {
    color: #777777;
    font-size: 0.8rem;
}

.summary-card-heading h2 {
    margin: 0.2rem 0 0;
    color: #572052;
    font-size: 1.35rem;
}

.summary-status {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: #35633A;
    background: #E9F6EA;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.summary-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
}

.summary-detail-grid > div {
    min-width: 0;
    padding: 0.75rem;
    border-bottom: 1px solid #EFEAEF;
}

.summary-detail-grid > div:nth-child(odd) {
    border-right: 1px solid #EFEAEF;
}

.summary-detail-grid dt {
    margin-bottom: 0.25rem;
    color: #777777;
    font-size: 0.78rem;
    font-weight: 500;
}

.summary-detail-grid dd {
    margin: 0;
    color: #333333;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.summary-detail-grid .summary-detail-wide {
    grid-column: 1 / -1;
    border-right: 0;
}

.summary-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.summary-outline-button,
.summary-print-button {
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 0.45rem;
}

.summary-outline-button {
    border: 1px solid #6F2869;
    color: #6F2869;
    background: #FFFFFF;
}

.summary-outline-button:hover,
.summary-outline-button:focus-visible {
    color: #FFFFFF;
    background: #6F2869;
}

.summary-print-button {
    border: 1px solid #D8D8D8;
    color: #444444;
    background: #F7F7F7;
}

.payment-card {
    border-top: 4px solid #6F2869;
}

.payment-card-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.payment-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: #6F2869;
    border-radius: 0.6rem;
}

.payment-card-heading span {
    color: #777777;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.payment-card-heading h2 {
    margin: 0.1rem 0 0;
    color: #572052;
    font-size: 1.2rem;
}

.payment-amount {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 1rem;
    padding: 0.9rem;
    border-radius: 0.65rem;
    background: #F7F4F7;
}

.payment-amount > span,
.payment-amount small {
    color: #777777;
    font-size: 0.78rem;
}

.payment-amount strong {
    color: #572052;
    font-size: 1.15rem;
}

.payment-method {
    display: grid;
    grid-template-columns: 18px 36px minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid #D8D8D8;
    border-radius: 0.6rem;
}

.payment-method.is-selected {
    border-color: #6F2869;
    background: rgba(111, 40, 105, 0.05);
}

.payment-method-radio {
    width: 16px;
    height: 16px;
    border: 4px solid #6F2869;
    border-radius: 50%;
    background: #FFFFFF;
}

.payment-method > i {
    color: #6F2869;
    font-size: 1.5rem;
    text-align: center;
}

.payment-method div {
    display: grid;
}

.payment-method div > span {
    color: #777777;
    font-size: 0.78rem;
}

.payment-start-button {
    width: 100%;
    min-height: 46px;
    margin-bottom: 1rem;
    color: #FFFFFF;
    background: #6F2869;
    border-radius: 0.45rem;
    font-weight: 700;
}

.payment-start-button:hover,
.payment-start-button:focus-visible {
    color: #FFFFFF;
    background: #572052;
}

.payment-qr-panel {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #D8D8D8;
    border-radius: 0.65rem;
    text-align: center;
}

.payment-qr-panel[hidden] {
    display: none;
}

.payment-qr-placeholder {
    display: inline-flex;
    width: 180px;
    height: 180px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    border: 10px solid #FFFFFF;
    color: #111111;
    background:
        linear-gradient(45deg, #F2F2F2 25%, transparent 25%),
        linear-gradient(-45deg, #F2F2F2 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #F2F2F2 75%),
        linear-gradient(-45deg, transparent 75%, #F2F2F2 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
    box-shadow: 0 0 0 1px #D8D8D8;
}

.payment-qr-placeholder i {
    padding: 0.5rem;
    background: #FFFFFF;
    font-size: 7rem;
}

.payment-qr-panel h3 {
    margin: 0 0 0.4rem;
    color: #572052;
    font-size: 1rem;
}

.payment-qr-panel p {
    margin: 0;
    color: #666666;
    font-size: 0.85rem;
    line-height: 1.55;
}

.payment-demo-note {
    margin-top: 0.75rem;
    padding: 0.6rem;
    color: #725100;
    background: #FFF7DF;
    border-radius: 0.4rem;
    font-size: 0.76rem;
    line-height: 1.5;
}

.payment-confirm-button {
    width: 100%;
    min-height: 46px;
    margin-top: 0.8rem;
    color: #FFFFFF;
    background: #35633A;
    border-radius: 0.45rem;
    font-weight: 700;
}

.payment-confirm-button:hover,
.payment-confirm-button:focus-visible {
    color: #FFFFFF;
    background: #294F2E;
}

.payment-security-list {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    color: #666666;
    font-size: 0.82rem;
    list-style: none;
}

.payment-security-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.payment-security-list i {
    width: 20px;
    color: #6F2869;
    text-align: center;
}

@media (max-width: 991.98px) {
    .summary-layout > div {
        min-width: 0;
    }

    .payment-card {
        height: auto;
    }
}

@media (max-width: 767.98px) {
    .summary-hero {
        padding-block: 1.2rem;
    }

    .summary-success-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .summary-section {
        padding-block: 1.25rem;
    }

    .summary-empty-state {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .summary-empty-state .btn {
        grid-column: 1 / -1;
    }

    .summary-progress {
        gap: 0.4rem;
    }

    .summary-progress-item strong {
        font-size: 0.72rem;
    }

    .summary-detail-grid {
        grid-template-columns: 1fr;
    }

    .summary-detail-grid > div,
    .summary-detail-grid > div:nth-child(odd) {
        grid-column: auto;
        border-right: 0;
    }

    .summary-card-actions {
        display: grid;
    }
}

@media (max-width: 399.98px) {
    .summary-hero .container {
        align-items: flex-start;
    }

    .summary-success-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .summary-card,
    .payment-card {
        padding: 0.9rem;
    }

    .summary-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-progress-item > span {
        width: 30px;
        height: 30px;
    }

    .summary-progress-line {
        margin-top: -1.25rem;
    }

    .payment-qr-placeholder {
        width: 160px;
        height: 160px;
    }

    .payment-qr-placeholder i {
        font-size: 6rem;
    }
}

@media print {
    .summary-page #header,
    .summary-page #footer,
    .summary-progress,
    .summary-card-actions,
    .payment-card,
    .scroll-to-top {
        display: none !important;
    }

    .summary-section {
        padding: 0;
        background: #FFFFFF;
    }

    .summary-layout > .col-lg-7 {
        width: 100%;
    }

    .summary-card {
        border: 0;
        box-shadow: none;
    }
}

/* CDA purple accent: class-level rules shared by every page. */
.icons.text-color-tertiary,
i.text-color-tertiary,
.text-color-tertiary,
.text-tertiary {
    color: #6F2869 !important;
}

.text-color-hover-tertiary:hover,
.text-hover-tertiary:hover,
a.text-color-tertiary:hover,
a.text-tertiary:hover {
    color: #6F2869 !important;
}

/* #6F2869 is too dark on #3E3E3E; use accessible lighter derivatives. */
#footer .icons.text-color-tertiary,
#footer i.text-color-tertiary,
.bg-color-dark .icons.text-color-tertiary,
.bg-dark .icons.text-color-tertiary {
    color: #D798D1 !important;
}

#footer a.text-color-hover-tertiary,
#footer a.text-color-tertiary,
.bg-color-dark a.text-color-hover-tertiary,
.bg-dark a.text-color-hover-tertiary {
    color: #D798D1 !important;
}

#footer a.text-color-hover-tertiary:hover,
#footer a.text-color-hover-tertiary:focus-visible,
#footer a.text-color-tertiary:hover,
.bg-color-dark a.text-color-hover-tertiary:hover,
.bg-dark a.text-color-hover-tertiary:hover {
    color: #F2D5EF !important;
}

/* Shared Dental Council footer */
#footer.tdc-footer {
    margin-top: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.82);
}

.tdc-footer-contact {
    padding-block: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.tdc-footer-contact-row {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
}

.tdc-footer-contact-name,
.tdc-footer-contact-link {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
}

.tdc-footer-contact-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.tdc-footer-contact-link {
    min-height: 44px;
    text-decoration: none;
}

.tdc-footer-contact-row .icons {
    flex: 0 0 auto;
    font-size: 1.35rem;
}

.tdc-footer-main {
    padding: clamp(2rem, 4vw, 3rem) 0 1.25rem;
}

.tdc-footer-grid {
    align-items: flex-start;
    row-gap: 2rem;
}

.tdc-footer-brand {
    display: flex;
    min-height: 132px;
    align-items: center;
    justify-content: center;
}

.tdc-footer-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tdc-footer-brand-link:focus-visible {
    outline: 3px solid rgba(215, 152, 209, 0.55);
    outline-offset: 5px;
}

.tdc-footer-logo {
    display: block;
    width: clamp(68px, 6vw, 84px);
    max-width: 100%;
    height: auto;
}

.tdc-footer-title {
    margin: 0 0 0.8rem;
    color: #FFFFFF;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
}

.tdc-footer-links,
.tdc-footer-hours {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tdc-footer-links {
    display: grid;
    gap: 0.55rem;
}

.tdc-footer-links a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.55;
    text-decoration: none;
}

.tdc-footer-links a:hover,
.tdc-footer-links a:focus-visible {
    color: #F2D5EF;
}

.tdc-footer-links a:focus-visible,
.tdc-footer-contact-link:focus-visible {
    outline: 2px solid rgba(215, 152, 209, 0.6);
    outline-offset: 3px;
    border-radius: 0.2rem;
}

.tdc-footer-hours {
    display: grid;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.65;
}

.tdc-footer-copyright {
    margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .tdc-footer-contact-row {
        flex-direction: column;
        justify-content: center;
        gap: 0.35rem;
        text-align: center;
    }

    .tdc-footer-contact-group {
        justify-content: center;
    }

    .tdc-footer-brand {
        min-height: 0;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .tdc-footer-contact {
        padding-block: 0.75rem;
    }

    .tdc-footer-contact-group {
        flex-wrap: wrap;
        gap: 0.25rem 1.25rem;
    }

    .tdc-footer-main {
        padding-top: 1.75rem;
    }

    .tdc-footer-grid {
        row-gap: 1.5rem;
        text-align: center;
    }

    .tdc-footer-column {
        max-width: 420px;
        margin-inline: auto;
    }

    .tdc-footer-links a {
        justify-content: center;
    }

    .tdc-footer-copyright {
        margin-top: 1.5rem;
    }
}

@media (max-width: 399.98px) {
    .tdc-footer-contact-row {
        font-size: 0.9rem;
    }

    .tdc-footer-contact-group {
        display: grid;
        justify-items: center;
    }

    .tdc-footer-contact-link {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .tdc-footer-logo {
        width: 64px;
    }
}

/* Shared header rows: secondary typography stays quieter than the main nav. */
#header .header-top {
    min-height: 40px;
    background-color: #FFFFFF;
    border-bottom-width: 1px;
}

#header .header-top .nav-pills {
    align-items: center;
    margin: 0;
}

#header .header-top .nav-item {
    padding-top: 0.125rem !important;
    padding-bottom: 0.125rem !important;
}

#header .header-row {
    color: #6F2869;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.005em;
}

#header .header-top .header-row,
#header .header-top .header-row .text-color-default,
#header .header-top .header-row a {
    color: #6F2869 !important;
}

#header .header-top .header-row .text-color-default,
#header .header-top .header-row a,
#header .header-top .header-row span {
    font-size: inherit !important;
    font-weight: 500;
    line-height: inherit;
}

#header .header-top .header-row a {
    -webkit-tap-highlight-color: transparent;
    transition: color 180ms ease;
}

#header .header-top .header-row a:hover,
#header .header-top .header-row a:focus-visible {
    color: #87347F !important;
}

#header .header-top .header-row a:hover i,
#header .header-top .header-row a:focus-visible i {
    color: inherit !important;
}

#header .header-top .header-row a:active {
    color: #572052 !important;
}

#header .header-top .header-row a:active i {
    color: inherit !important;
}

#header .header-top .header-row a:focus-visible {
    outline: 2px solid rgba(111, 40, 105, 0.32);
    outline-offset: 2px;
    border-radius: 0.2rem;
}

/* Rows on the purple navigation surface need a deeper contrast tone. */
#header .header-container .header-row {
    color: #241124;
}

#header .header-container > .header-row {
    flex-wrap: nowrap;
    gap: 0.75rem;
}

#header .header-container > .header-row > .header-column {
    min-width: 0;
}

#header .header-container > .header-row > .header-column:first-child {
    flex: 0 1 auto;
}

#header .header-container > .header-row > .header-column:last-child {
    width: auto !important;
    flex: 1 1 auto;
}

/* CDA evaluation center header navigation */
#header .header-container {
    background-color: #B96DC7;
    border-bottom: 1px solid #9D54AA;
    box-shadow: 0 0.3rem 0.8rem rgba(87, 38, 96, 0.14);
}

#header .header-nav.header-nav-line {
    min-width: 0;
    min-height: 48px;
    padding: 0 0.375rem !important;
    background-color: transparent;
    border-radius: 0.75rem;
    box-shadow: none;
}

#header .header-nav.header-nav-line .header-nav-main {
    align-self: center;
}

#header .header-nav-main a,
#header .header-nav-main a:hover,
#header .header-nav-main a:focus,
#header .header-nav-main a:active {
    text-decoration: none !important;
}

#header .header-nav.header-nav-line .header-nav-main nav > ul > li > a {
    min-height: 48px !important;
    padding: 0 0.75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #241124 !important;
    font-weight: 700 !important;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
    white-space: nowrap;
    border-radius: 0.5rem;
    transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

#header .header-nav.header-nav-line .header-nav-main nav > ul > li:hover > a,
#header .header-nav.header-nav-line .header-nav-main nav > ul > li > a:hover,
#header .header-nav.header-nav-line .header-nav-main nav > ul > li > a:focus-visible {
    color: #FFFFFF !important;
    background-color: #8F4B9D !important;
    text-shadow: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

#header .header-nav.header-nav-line .header-nav-main nav > ul > li > a.active {
    color: #FFFFFF !important;
    background-color: #6F2869 !important;
    text-shadow: none;
}

#header .header-nav.header-nav-line .header-nav-main nav > ul > li > a:focus-visible {
    outline: 3px solid rgba(46, 24, 51, 0.3);
    outline-offset: 2px;
}

#header .header-nav.header-nav-line .header-nav-main nav > ul > li > a::before,
#header .header-nav.header-nav-line .header-nav-main nav > ul > li > a:hover::before,
#header .header-nav.header-nav-line .header-nav-main nav > ul > li > a:focus::before,
#header .header-nav.header-nav-line .header-nav-main nav > ul > li > a:active::before,
#header .header-nav.header-nav-line .header-nav-main nav > ul > li > a.active::before {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
}

/* Shared system navigation and registration steps. */
#header .system-main-nav {
    display: flex;
    align-items: stretch;
    gap: 0.125rem;
}

#header .system-main-nav > li {
    display: flex;
    align-items: stretch;
}

#header .system-main-nav > li.dropdown > .dropdown-toggle {
    gap: 0.4rem;
}

#header .system-main-nav > li.dropdown > .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.1rem;
    vertical-align: middle;
}

#header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu {
    width: max-content;
    min-width: 17.5rem;
    max-width: min(22rem, calc(100vw - 2rem));
    margin-top: 0.25rem;
    padding: 0.4rem;
    background-color: #FFFFFF;
    border: 1px solid rgba(111, 40, 105, 0.18);
    border-top: 3px solid #6F2869;
    border-radius: 0.65rem;
    box-shadow: 0 0.75rem 1.75rem rgba(46, 24, 51, 0.16);
}

#header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu > li {
    margin: 0;
}

#header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu > li > a.dropdown-item {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    color: #3B223D;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    border-radius: 0.45rem;
    transition: color 160ms ease, background-color 160ms ease;
}

#header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu > li > a.dropdown-item > span {
    display: inline-flex;
    min-width: 2.25rem;
    height: 1.65rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #572052;
    font-size: 0.78rem;
    font-weight: 800;
    background-color: #F7EDF8;
    border: 1px solid rgba(111, 40, 105, 0.15);
    border-radius: 999px;
}

#header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu > li > a.dropdown-item:hover,
#header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu > li > a.dropdown-item:focus-visible {
    color: #572052;
    background-color: #F7EDF8;
}

#header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu > li > a.dropdown-item.active,
#header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu > li > a.dropdown-item:active {
    color: #FFFFFF;
    background-color: #6F2869;
}

#header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu > li > a.dropdown-item.active > span,
#header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu > li > a.dropdown-item:active > span {
    color: #572052;
    background-color: #F4C85A;
    border-color: #F4C85A;
}

#header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu > li > a.dropdown-item:focus-visible {
    outline: 3px solid rgba(111, 40, 105, 0.28);
    outline-offset: -2px;
}

/* Evaluation center logo: preserve the source image ratio. */
#header .header-logo {
    margin: 0.3rem 0;
}

#header .header-logo > a {
    display: flex;
    align-items: center;
    line-height: 0;
}

#header .header-logo .cda-evaluation-logo {
    display: block;
    width: min(320px, 32vw);
    max-width: 100%;
    height: auto;
    max-height: 64px;
    aspect-ratio: 320 / 62;
    object-fit: contain;
    image-rendering: auto;
    transform: none;
    transition: none !important;
}

#header .header-container.header-container-height-sm {
    height: 82px;
}

#header .header-nav-features {
    flex: 0 0 auto;
}

/* Shared responsive navigation toggle. */
#header .btn.header-btn-collapse-nav {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    background-color: #6F2869 !important;
    border: 1px solid #6F2869 !important;
    border-radius: 0.65rem;
    box-shadow: 0 0.3rem 0.8rem rgba(87, 38, 96, 0.22);
    transition: color 180ms ease, background-color 180ms ease,
        border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#header .btn.header-btn-collapse-nav:hover,
#header .btn.header-btn-collapse-nav:focus-visible {
    color: #FFFFFF !important;
    background-color: #8F4B9D !important;
    border-color: #8F4B9D !important;
    box-shadow: 0 0.35rem 0.9rem rgba(87, 38, 96, 0.28);
}

#header .btn.header-btn-collapse-nav:active,
#header .btn.header-btn-collapse-nav.active,
#header .btn.header-btn-collapse-nav[aria-expanded="true"] {
    color: #FFFFFF !important;
    background-color: #572052 !important;
    border-color: #572052 !important;
    box-shadow: inset 0 2px 4px rgba(36, 17, 36, 0.25) !important;
    transform: translateY(1px);
}

#header .btn.header-btn-collapse-nav:focus-visible {
    outline: 3px solid rgba(111, 40, 105, 0.32);
    outline-offset: 3px;
}

#header .btn.header-btn-collapse-nav i {
    color: inherit !important;
    font-size: 1.05rem;
    line-height: 1;
}

/* Side-panel trigger uses the deeper companion tone for clear contrast. */
#header .header-nav-features .side-panel-toggle {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    line-height: 42px;
    text-align: center;
    color: #FFFFFF !important;
    background-color: #6F2869 !important;
    border-color: #6F2869 !important;
    border-radius: 0.65rem;
    box-shadow: 0 0.3rem 0.8rem rgba(87, 38, 96, 0.2);
}

#header .header-nav-features .side-panel-toggle:hover,
#header .header-nav-features .side-panel-toggle:focus-visible {
    color: #FFFFFF !important;
    background-color: #8F4B9D !important;
    border-color: #8F4B9D !important;
}

#header .header-nav-features .side-panel-toggle:focus-visible {
    outline: 3px solid rgba(185, 109, 199, 0.35);
    outline-offset: 2px;
}

#header .header-nav-features .side-panel-toggle i {
    color: inherit !important;
}

@media (min-width: 1400px) {
    #header .header-row {
        font-size: 14.5px;
    }

    #header .header-nav-main nav > ul > li > a {
        font-size: 17px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    #header .header-row {
        font-size: 14px;
    }

    #header .header-nav-main nav > ul > li > a {
        padding-right: 0.75rem !important;
        padding-left: 0.75rem !important;
        font-size: 16px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    #header .header-container {
        padding-right: 1.5rem !important;
        padding-left: 1.5rem !important;
    }

    #header .header-container.header-container-height-sm {
        height: 78px;
    }

    #header .header-row {
        font-size: 13.75px;
    }

    #header .header-logo .cda-evaluation-logo {
        width: 215px;
        max-height: 52px;
    }

    #header .header-nav.header-nav-line {
        padding-left: 0.5rem !important;
    }

    #header .header-nav-main nav > ul > li > a {
        min-height: 46px !important;
        padding-right: 0.35rem !important;
        padding-left: 0.35rem !important;
        font-size: 14.25px !important;
        letter-spacing: 0;
    }

    #header .header-nav-features {
        padding-right: 0 !important;
    }

    #header .header-nav-features .side-panel-toggle {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
}

@media (max-width: 991.98px) {
    #header .header-container.header-container-height-sm {
        height: 76px;
    }

    #header .header-row {
        font-size: 14px;
    }

    #header .btn.header-btn-collapse-nav {
        display: inline-flex;
        flex: 0 0 44px;
    }

    #header .header-logo .cda-evaluation-logo {
        width: 220px;
        max-height: 54px;
    }

    #header .header-nav.header-nav-line {
        min-height: 0;
        padding: 0 !important;
        background-color: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    #header .header-nav.header-nav-line .header-nav-main nav {
        padding: 0.5rem;
        background-color: #B96DC7;
        border-radius: 0.75rem;
        box-shadow: 0 0.4rem 0.8rem rgba(87, 38, 96, 0.16);
        max-height: calc(100vh - 116px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #header .header-nav.header-nav-line .header-nav-main nav > ul > li > a {
        min-height: 44px !important;
        padding: 0.65rem 0.75rem !important;
        justify-content: flex-start;
        font-size: 15px !important;
        text-align: left;
        white-space: normal;
    }

    #header .system-main-nav {
        display: block;
    }

    #header .system-main-nav > li {
        display: block;
        width: 100%;
    }

    #header .system-main-nav > li.dropdown > .dropdown-toggle {
        justify-content: space-between !important;
    }

    #header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu,
    #header .header-nav-main nav > ul.system-main-nav > li.dropdown.open > .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 0.15rem 0 0.35rem;
        padding: 0.25rem 0.25rem 0.25rem 0.75rem;
        background-color: rgba(255, 255, 255, 0.16);
        border: 0;
        border-left: 3px solid #6F2869;
        border-radius: 0 0.5rem 0.5rem 0;
        box-shadow: none;
    }

    #header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu > li > a.dropdown-item {
        min-height: 44px;
        padding: 0.55rem 0.65rem;
        color: #2E1833;
        font-size: 14.5px;
    }

    #header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu > li > a.dropdown-item:hover,
    #header .header-nav-main nav > ul.system-main-nav > li.dropdown > .dropdown-menu > li > a.dropdown-item:focus-visible {
        color: #FFFFFF;
        background-color: #8F4B9D;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #header .header-nav.header-nav-line .header-nav-main nav > ul > li > a {
        min-height: 46px !important;
        font-size: 15.5px !important;
    }
}

@media (max-width: 575.98px) {
    #header .header-top {
        min-height: 36px;
    }

    #header .header-container {
        padding-right: 0.75rem !important;
        padding-left: 0.75rem !important;
    }

    #header .header-container.header-container-height-sm {
        height: 72px;
    }

    #header .header-container > .header-row {
        gap: 0.5rem;
    }

    #header .header-row {
        font-size: 13.5px;
    }

    #header .header-logo {
        margin: 0.2rem 0;
    }

    #header .header-logo .cda-evaluation-logo {
        width: min(190px, 52vw);
        max-height: 46px;
    }

    #header .btn.header-btn-collapse-nav {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        margin-left: 0.5rem;
        border-radius: 0.55rem;
    }

    #header .btn.header-btn-collapse-nav i {
        font-size: 1rem;
    }

    #header .header-nav-features {
        padding-right: 0.25rem !important;
    }

    #header .header-nav-features-dropdown {
        right: 0 !important;
        left: auto !important;
        width: min(296px, calc(100vw - 1.5rem)) !important;
    }

    #header .header-nav.header-nav-line .header-nav-main nav > ul > li > a {
        padding: 0.6rem 0.65rem !important;
        font-size: 14.5px !important;
    }
}

@media (max-width: 359.98px) {
    #header .header-logo .cda-evaluation-logo {
        width: min(160px, 50vw);
    }

    #header .header-nav-features {
        padding-right: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #header *,
    #header *::before,
    #header *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Application dashboard: based on the SPECIAL SERVICES layout */
.dashboard-hero {
    padding: clamp(1.5rem, 4vw, 3rem) 0;
    color: #FFFFFF;
    background: linear-gradient(135deg, #572052, #6F2869 58%, #8F4B9D);
}

.dashboard-eyebrow,
.dashboard-section-label {
    display: inline-block;
    color: #F4C85A;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.dashboard-hero h1 {
    margin: 0.25rem 0 0.45rem;
    color: #FFFFFF;
    font-size: clamp(1.8rem, 4vw, 2.85rem);
}

.dashboard-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

.dashboard-reference {
    display: grid;
    justify-items: end;
    gap: 0.1rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    text-align: right;
}

.dashboard-reference span,
.dashboard-reference small {
    color: rgba(255, 255, 255, 0.74);
}

.dashboard-reference strong {
    color: #FFFFFF;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: 0.05em;
}

.dashboard-section {
    padding-block: clamp(1.5rem, 4vw, 3rem);
}

.dashboard-progress {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.dashboard-special-services {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.dashboard-overview h2,
.dashboard-checklist h2 {
    color: #3F3F3F;
}

.dashboard-overview h2 {
    margin: 0.25rem 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.dashboard-overview > p {
    margin-bottom: 1rem;
    color: #6F6F6F;
}

.dashboard-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid #E4DCE3;
    border-radius: 0.75rem;
    background: #FFFFFF;
    overflow: hidden;
}

.dashboard-detail-list > div {
    display: grid;
    grid-template-columns: minmax(160px, 0.75fr) minmax(0, 1.25fr);
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #EEE8ED;
}

.dashboard-detail-list > div:last-child {
    border-bottom: 0;
}

.dashboard-detail-list dt,
.dashboard-detail-list dd {
    margin: 0;
}

.dashboard-detail-list dt {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    color: #777777;
    font-weight: 500;
}

.dashboard-detail-list dt i {
    width: 18px;
    color: #8F4B9D;
    text-align: center;
}

.dashboard-detail-list dd {
    color: #333333;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.dashboard-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-status--success {
    color: #35633A;
    background: #E9F6EA;
}

.dashboard-status--pending {
    color: #855A12;
    background: #FFF3D6;
}

.dashboard-checklist {
    padding-top: 1.55rem;
}

.dashboard-checklist h2 {
    margin: 0 0 0.8rem;
    font-size: 1.25rem;
}

.dashboard-checklist .list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
}

.dashboard-checklist .list li {
    display: flex;
    align-items: flex-start;
    margin: 0;
    color: #4D4D4D;
    font-weight: 500;
}

.dashboard-checklist .list i {
    position: static;
    flex: 0 0 auto;
    margin-top: 0.25rem;
}

.dashboard-guidance {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 0.85rem;
    border-left: 3px solid #8F4B9D;
    color: #675B66;
    background: #F2EDF2;
    font-size: 0.86rem;
}

.dashboard-guidance i {
    margin-top: 0.2rem;
    color: #6F2869;
}

.dashboard-divider {
    margin: clamp(1.5rem, 4vw, 2.5rem) 0;
    border-color: #DCD4DB;
    opacity: 1;
}

.dashboard-payment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.7fr);
    gap: 1.25rem;
}

.dashboard-payment-card,
.dashboard-receipt-card {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid #E1D7E0;
    border-radius: 0.9rem;
    background: #FFFFFF;
    box-shadow: 0 0.7rem 1.8rem rgba(62, 62, 62, 0.06);
}

.dashboard-payment-card {
    border-top: 4px solid #6F2869;
}

.dashboard-card-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #ECE5EB;
}

.dashboard-card-icon,
.dashboard-receipt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: #6F2869;
}

.dashboard-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.6rem;
}

.dashboard-card-heading div > span {
    color: #777777;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.dashboard-card-heading h2 {
    margin: 0.1rem 0 0;
    color: #572052;
    font-size: 1.2rem;
}

.dashboard-payment-content {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: center;
}

.dashboard-qr {
    display: grid;
    width: 190px;
    min-height: 190px;
    place-items: center;
    align-content: center;
    gap: 0.25rem;
    border: 1px dashed #BBA9B9;
    border-radius: 0.7rem;
    color: #572052;
    background: #FFFFFF;
    text-align: center;
}

.dashboard-qr i {
    font-size: 6.2rem;
}

.dashboard-qr strong {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.dashboard-qr small {
    color: #888888;
}

.dashboard-payment-info > span {
    color: #777777;
    font-size: 0.8rem;
}

.dashboard-payment-info > strong {
    display: block;
    margin: 0.1rem 0 0.7rem;
    color: #572052;
    font-size: 1.25rem;
}

.dashboard-payment-detail {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
}

.dashboard-payment-detail > div {
    display: grid;
    grid-template-columns: minmax(105px, 0.45fr) minmax(0, 1fr);
    gap: 0.65rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #EFEAEF;
}

.dashboard-payment-detail dt {
    color: #777777;
    font-size: 0.8rem;
    font-weight: 500;
}

.dashboard-payment-detail dd {
    margin: 0;
    color: #333333;
    font-size: 0.85rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.dashboard-payment-complete {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.65rem;
    color: #35633A !important;
    background: #E9F6EA;
    border-radius: 999px;
    font-weight: 700;
}

.dashboard-payment-info ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    color: #5F5F5F;
}

.dashboard-payment-info li + li {
    margin-top: 0.3rem;
}

.dashboard-payment-button {
    min-height: 44px;
    padding: 0.65rem 1rem;
}

.dashboard-receipt-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dashboard-receipt-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.8rem;
    border-radius: 50%;
}

.dashboard-receipt-card h2 {
    margin: 0;
    color: #572052;
    font-size: 1.25rem;
}

.dashboard-receipt-card p {
    margin: 0.4rem 0 0.9rem;
    color: #6F6F6F;
}

.dashboard-receipt-state {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    color: #855A12;
    font-size: 0.85rem;
    font-weight: 600;
}

.dashboard-receipt-state--ready {
    color: #35633A;
}

.dashboard-receipt-button {
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    color: #FFFFFF;
    background: #6F2869;
}

.dashboard-receipt-button:hover,
.dashboard-receipt-button:focus-visible {
    color: #FFFFFF;
    background: #572052;
}

.dashboard-receipt-button:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.dashboard-receipt-card small {
    width: 100%;
    margin-top: 0.45rem;
    color: #888888;
    text-align: center;
}

@media (max-width: 991.98px) {
    .dashboard-reference {
        margin-top: 1rem;
        justify-items: start;
        text-align: left;
    }

    .dashboard-special-services,
    .dashboard-payment-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-checklist {
        padding-top: 0;
    }
}

@media (max-width: 767.98px) {
    .summary-progress--four {
        grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
        gap: 0.25rem;
    }

    .summary-progress--four .summary-progress-item {
        min-width: 0;
    }

    .summary-progress--four .summary-progress-item strong {
        overflow-wrap: anywhere;
    }

    .dashboard-section {
        padding-block: 1.25rem;
    }

    .dashboard-detail-list > div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .dashboard-payment-content {
        grid-template-columns: 1fr;
    }

    .dashboard-payment-detail > div {
        grid-template-columns: minmax(95px, 0.4fr) minmax(0, 1fr);
    }

    .dashboard-qr {
        margin-inline: auto;
    }
}

@media (max-width: 479.98px) {
    .dashboard-card-heading {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dashboard-card-heading .dashboard-status {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .dashboard-payment-button {
        width: 100%;
    }

    .dashboard-payment-detail > div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .dashboard-qr {
        width: 170px;
        min-height: 170px;
    }

    .dashboard-qr i {
        font-size: 5.5rem;
    }
}

/* Landing page: adapted from the index hero, home-intro and featured services */
.landing-page {
    overflow-x: clip;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    background: #F6F2F6;
}

.landing-hero-carousel,
.landing-hero-carousel .owl-stage-outer,
.landing-hero-carousel .owl-stage,
.landing-hero-carousel .owl-item {
    min-height: clamp(470px, 62vw, 640px);
}

.landing-slide {
    position: relative;
    display: flex;
    min-height: clamp(470px, 62vw, 640px);
    align-items: center;
    overflow: hidden;
}

.landing-slide::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.landing-slide--registration {
    background:
        linear-gradient(90deg, rgba(247, 243, 247, 0.98) 0%, rgba(247, 243, 247, 0.95) 48%, rgba(247, 243, 247, 0.1) 72%),
        url("../img/demos/dentist/slides/slide-dentist-1-1.jpg") center right / cover no-repeat;
}

.landing-slide--registration::before {
    background: radial-gradient(circle at 78% 45%, rgba(143, 75, 157, 0.18), transparent 36%);
}

.landing-slide--preparation {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(248, 244, 248, 0.96) 55%, #F8F4F8 100%),
        url("../img/demos/dentist/slides/slide-dentist-2-1.jpg") center left / cover no-repeat;
}

.landing-slide--preparation .landing-slide-content {
    margin-left: auto;
}

.landing-slide .container {
    position: relative;
    z-index: 2;
}

.landing-slide-content {
    width: min(650px, 58%);
}

.landing-slide-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    color: #FFFFFF;
    background: #6F2869;
    font-size: 0.82rem;
    font-weight: 700;
}

.landing-slide h1,
.landing-slide h2 {
    margin: 0 0 0.8rem;
    color: #3F273D;
    font-size: clamp(2rem, 4.2vw, 3.75rem);
    font-weight: 700;
    line-height: 1.18;
}

.landing-slide p {
    max-width: 610px;
    margin: 0 0 1.25rem;
    color: #5F555E;
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    line-height: 1.7;
}

.landing-slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.landing-primary-button,
.landing-outline-button {
    min-height: 46px;
    padding: 0.72rem 1.25rem;
    border-radius: 0.45rem;
}

.landing-outline-button {
    border: 1px solid #6F2869;
    color: #6F2869;
    background: rgba(255, 255, 255, 0.82);
}

.landing-outline-button:hover,
.landing-outline-button:focus-visible {
    color: #FFFFFF;
    background: #6F2869;
}

.landing-slide-graphic {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 9%;
    width: clamp(230px, 27vw, 360px);
    height: clamp(230px, 27vw, 360px);
    transform: translateY(-50%);
}

.landing-calendar {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    width: 190px;
    min-height: 210px;
    place-items: center;
    align-content: center;
    border: 8px solid rgba(255, 255, 255, 0.86);
    border-radius: 1.2rem;
    color: #FFFFFF;
    background: linear-gradient(145deg, #572052, #8F4B9D);
    box-shadow: 0 1.2rem 2.5rem rgba(62, 25, 58, 0.26);
    transform: translate(-50%, -50%) rotate(3deg);
}

.landing-calendar small {
    font-weight: 700;
    letter-spacing: 0.18em;
}

.landing-calendar strong {
    font-size: 2.25rem;
}

.landing-calendar span {
    color: #F4C85A;
    font-weight: 700;
}

.landing-graphic-ring {
    position: absolute;
    border: 2px solid rgba(111, 40, 105, 0.25);
    border-radius: 50%;
}

.landing-graphic-ring--one {
    inset: 5%;
}

.landing-graphic-ring--two {
    inset: 18%;
}

.landing-slide-graphic--checklist {
    right: auto;
    left: 8%;
    display: grid;
    grid-template-columns: repeat(3, 88px);
    width: auto;
    height: auto;
    gap: 0.8rem;
}

.landing-slide-graphic--checklist span {
    display: inline-flex;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    border: 5px solid rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    color: #FFFFFF;
    background: #6F2869;
    box-shadow: 0 0.8rem 1.6rem rgba(62, 25, 58, 0.2);
    font-size: 1.8rem;
}

.landing-slide-graphic--checklist span:nth-child(2) {
    margin-top: 2rem;
    background: #8F4B9D;
}

.landing-slide-graphic--checklist span:nth-child(3) {
    background: #B27A2A;
}

.landing-hero-carousel .owl-nav button {
    background-color: rgba(87, 32, 82, 0.85) !important;
}

.landing-hero-carousel .owl-dots {
    position: absolute;
    right: 0;
    bottom: 1rem;
    left: 0;
}

.landing-home-intro {
    background: linear-gradient(90deg, #572052, #6F2869 55%, #8F4B9D);
}

.landing-intro-button {
    color: #4A3447;
    background: #F4C85A;
}

.landing-intro-button:hover,
.landing-intro-button:focus-visible {
    color: #3F273D;
    background: #FFD978;
}

.landing-audience {
    padding: clamp(2rem, 5vw, 4rem) 0;
    background: #FFFFFF;
}

.landing-featured-boxes {
    margin: 0;
}

.landing-feature-card-link {
    display: block;
    height: 100%;
    color: inherit;
    border-radius: 0.85rem;
    text-decoration: none;
}

.landing-feature-card-link:visited {
    color: inherit;
}

.landing-feature-card-link .landing-featured-box {
    margin-bottom: 0;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.landing-feature-card-link:hover .landing-featured-box,
.landing-feature-card-link:focus-visible .landing-featured-box {
    border-color: rgba(111, 40, 105, 0.25);
    box-shadow: 0 0.9rem 2rem rgba(62, 45, 60, 0.13);
    transform: translateY(-4px);
}

.landing-feature-card-link:focus-visible {
    outline: 3px solid rgba(111, 40, 105, 0.35);
    outline-offset: 4px;
}

.landing-featured-box {
    height: 100%;
    border-radius: 0.85rem;
}

.landing-featured-box .box-content {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 0.85rem;
}

.landing-featured-box h2 {
    min-height: 2.8em;
    line-height: 1.4;
}

.landing-featured-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: linear-gradient(145deg, #6F2869, #8F4B9D);
    font-size: clamp(3.25rem, 4vw, 4.25rem);
}

.landing-featured-icon > .fas {
    font-size: inherit;
    line-height: 1;
}

.landing-feature-link {
    margin-top: auto;
    padding-top: 1rem;
    color: #6F2869;
    font-weight: 700;
    text-decoration: none;
}

.landing-feature-link:hover,
.landing-feature-link:focus-visible {
    color: #8F4B9D;
}

.landing-hot-issue {
    background: #F7F4F7 !important;
}

.landing-hot-issue .container-fluid {
    max-width: 1500px;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.landing-section-heading {
    max-width: 720px;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.landing-section-heading > span {
    color: #8F4B9D;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.landing-section-heading h2 {
    margin: 0.25rem 0 0.4rem;
    color: #3F273D;
    font-size: clamp(1.75rem, 4vw, 2.55rem);
}

.landing-section-heading p {
    margin: 0;
    color: #777777;
}

.landing-news-card {
    height: 100%;
    border: 1px solid #E4DCE3;
    border-radius: 0.85rem;
    background: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 0.65rem 1.5rem rgba(62, 45, 60, 0.06);
}

.landing-news-image {
    display: grid;
    min-height: 190px;
    place-items: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 3.5rem;
}

.landing-news-image--law {
    background: linear-gradient(145deg, #572052, #8F4B9D);
}

.landing-news-image--safety {
    background: linear-gradient(145deg, #365A69, #4D8793);
}

.landing-news-image--license {
    background: linear-gradient(145deg, #755318, #B27A2A);
}

.landing-news-image--exam {
    background: linear-gradient(145deg, #3C5F42, #69906F);
}

.landing-news-body {
    display: flex;
    min-height: 255px;
    flex-direction: column;
    padding: 1.1rem;
}

.landing-news-category {
    align-self: flex-start;
    margin-bottom: 0.55rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: #6F2869;
    background: #F1E8F0;
    font-size: 0.72rem;
    font-weight: 700;
}

.landing-news-body h3 {
    margin: 0;
    color: #3F3F3F;
    font-size: 1.05rem;
    line-height: 1.55;
}

.landing-news-meta {
    margin: 0.75rem 0;
    color: #858585;
    font-size: 0.78rem;
}

.landing-news-body > a {
    margin-top: auto;
    color: #6F2869;
    font-weight: 700;
    text-decoration: none;
}

.landing-news-more {
    margin-top: 1.75rem;
    text-align: center;
}

/* News listing and article detail */
.news-page {
    color: #3F3F3F;
    background-color: #F7F4F7;
}

.news-page-hero {
    position: relative;
    padding: clamp(2rem, 5vw, 3.75rem) 0;
    color: #FFFFFF;
    background:
        radial-gradient(circle at 85% 20%, rgba(244, 200, 90, 0.2), transparent 28%),
        linear-gradient(135deg, #572052, #6F2869 58%, #8F4B9D);
    overflow: hidden;
}

.news-page-hero::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -7rem;
    width: 20rem;
    height: 20rem;
    border: 2.75rem solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.news-page-hero .container {
    position: relative;
    z-index: 1;
}

.news-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    color: #F4C85A;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.news-page-hero h1 {
    max-width: 900px;
    margin: 0 0 0.55rem;
    color: #FFFFFF;
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.3;
}

.news-page-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.news-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
}

.news-breadcrumb a {
    color: #FFFFFF;
    text-decoration: none;
}

.news-breadcrumb a:hover,
.news-breadcrumb a:focus-visible {
    color: #F4C85A;
}

.news-page-section {
    padding: clamp(2rem, 5vw, 4rem) 0 !important;
    background-color: #F7F4F7 !important;
}

.news-page-section .container-fluid {
    max-width: 1500px;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.news-list-heading {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.news-list-heading h2 {
    margin: 0;
    color: #3F273D;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.news-list-heading p {
    margin: 0.35rem 0 0;
    color: #777777;
}

.news-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-filter-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0.45rem 0.8rem;
    color: #572052;
    background-color: #FFFFFF;
    border: 1px solid #DED3DC;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.news-filter-link:hover,
.news-filter-link:focus-visible,
.news-filter-link.is-active {
    color: #FFFFFF;
    background-color: #6F2869;
    border-color: #6F2869;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.news-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    background-color: #FFFFFF;
    border: 1px solid #E4DCE3;
    border-radius: 0.9rem;
    box-shadow: 0 0.65rem 1.5rem rgba(62, 45, 60, 0.06);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.news-card:hover,
.news-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 0.9rem 2rem rgba(62, 45, 60, 0.11);
}

.news-card-visual {
    display: grid;
    min-height: 190px;
    place-items: center;
    color: rgba(255, 255, 255, 0.94);
    font-size: 3.2rem;
}

.news-card-visual--law {
    background: linear-gradient(145deg, #572052, #8F4B9D);
}

.news-card-visual--safety {
    background: linear-gradient(145deg, #365A69, #4D8793);
}

.news-card-visual--license {
    background: linear-gradient(145deg, #755318, #B27A2A);
}

.news-card-visual--exam {
    background: linear-gradient(145deg, #3C5F42, #69906F);
}

.news-card-visual--member {
    background: linear-gradient(145deg, #344B78, #5E78AC);
}

.news-card-visual--document {
    background: linear-gradient(145deg, #70422F, #A56D53);
}

.news-card-content {
    display: flex;
    min-height: 245px;
    flex: 1;
    flex-direction: column;
    padding: 1.15rem;
}

.news-card-category {
    align-self: flex-start;
    margin-bottom: 0.55rem;
    padding: 0.22rem 0.55rem;
    color: #6F2869;
    background-color: #F1E8F0;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.news-card h2,
.news-card h3 {
    margin: 0;
    color: #3F3F3F;
    font-size: 1.05rem;
    line-height: 1.55;
}

.news-card-summary {
    margin: 0.65rem 0 0;
    color: #737373;
    font-size: 0.88rem;
    line-height: 1.65;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.75rem 0;
    color: #858585;
    font-size: 0.78rem;
}

.news-card-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    align-self: flex-start;
    gap: 0.4rem;
    margin-top: auto;
    color: #6F2869;
    font-weight: 800;
    text-decoration: none;
}

.news-card-link:hover,
.news-card-link:focus-visible {
    color: #8F4B9D;
}

.news-pagination {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    color: #572052;
    background-color: #FFFFFF;
    border: 1px solid #DED3DC;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
}

.news-pagination .is-current {
    color: #FFFFFF;
    background-color: #6F2869;
    border-color: #6F2869;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

.news-article,
.news-related {
    min-width: 0;
    background-color: #FFFFFF;
    border: 1px solid #E4DCE3;
    border-radius: 0.9rem;
    box-shadow: 0 0.65rem 1.5rem rgba(62, 45, 60, 0.06);
}

.news-article {
    padding: clamp(1.15rem, 3vw, 2rem);
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding-bottom: 1rem;
    color: #777777;
    font-size: 0.84rem;
    border-bottom: 1px solid #EEE8ED;
}

.news-article-visual {
    display: grid;
    min-height: clamp(220px, 38vw, 420px);
    margin: 1.25rem 0;
    place-items: center;
    color: rgba(255, 255, 255, 0.95);
    background:
        radial-gradient(circle at 72% 25%, rgba(244, 200, 90, 0.28), transparent 24%),
        linear-gradient(145deg, #572052, #8F4B9D);
    border-radius: 0.75rem;
    font-size: clamp(4rem, 10vw, 7rem);
}

.news-article-content {
    color: #4D4D4D;
    font-size: 1rem;
    line-height: 1.85;
}

.news-article-content h2 {
    margin: 1.5rem 0 0.65rem;
    color: #3F273D;
    font-size: 1.35rem;
    line-height: 1.45;
}

.news-article-content p {
    margin-bottom: 1rem;
}

.news-article-callout {
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    color: #4B344A;
    background-color: #F7EDF8;
    border-left: 4px solid #8F4B9D;
    border-radius: 0 0.6rem 0.6rem 0;
}

.news-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #EEE8ED;
}

.news-related {
    position: sticky;
    top: 110px;
    padding: 1rem;
}

.news-related h2 {
    margin: 0 0 0.8rem;
    color: #3F273D;
    font-size: 1.15rem;
}

.news-related-list {
    display: grid;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-related-link {
    display: block;
    padding: 0.8rem 0.25rem;
    color: #4D4D4D;
    border-bottom: 1px solid #EEE8ED;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.55;
    text-decoration: none;
}

.news-related-link small {
    display: block;
    margin-top: 0.25rem;
    color: #8A8A8A;
    font-weight: 500;
}

.news-related-link:hover,
.news-related-link:focus-visible {
    color: #6F2869;
}

@media (max-width: 1199.98px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-slide-content {
        width: min(620px, 64%);
    }

    .landing-slide-graphic {
        right: 4%;
    }
}

@media (max-width: 991.98px) {
    .landing-feature-card-link {
        height: auto;
        margin-bottom: 1rem;
    }

    .landing-feature-card-link .landing-featured-box {
        margin-bottom: 0;
    }

    .landing-featured-icon {
        font-size: clamp(3rem, 8vw, 3.75rem);
    }

    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .news-related {
        position: static;
    }

    .landing-slide--registration,
    .landing-slide--preparation {
        background: linear-gradient(135deg, #F8F4F8, #EEE4ED);
    }

    .landing-slide--preparation .landing-slide-content {
        margin-left: 0;
    }

    .landing-slide-content {
        width: min(600px, 76%);
    }

    .landing-slide-graphic {
        right: -4%;
        opacity: 0.5;
    }

    .landing-slide-graphic--checklist {
        right: -3%;
        left: auto;
        grid-template-columns: repeat(2, 72px);
    }

    .landing-slide-graphic--checklist span {
        width: 72px;
        height: 72px;
    }

    .landing-featured-box {
        margin-bottom: 1rem;
    }

    .landing-featured-box .box-content,
    .landing-featured-box h2 {
        min-height: 0;
    }
}

@media (max-width: 767.98px) {
    .news-list-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-filter-list {
        width: 100%;
    }

    .landing-hero-carousel,
    .landing-hero-carousel .owl-stage-outer,
    .landing-hero-carousel .owl-stage,
    .landing-hero-carousel .owl-item,
    .landing-slide {
        min-height: 520px;
    }

    .landing-slide-content {
        width: 100%;
        text-align: center;
    }

    .landing-slide p {
        margin-inline: auto;
    }

    .landing-slide-actions {
        justify-content: center;
    }

    .landing-slide-graphic {
        display: none;
    }

    .landing-home-intro {
        padding-block: 0.8rem;
    }

    .landing-audience {
        padding-block: 1.5rem;
    }
}

@media (max-width: 479.98px) {
    .landing-featured-icon {
        font-size: 3rem;
    }

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

    .news-card-visual {
        min-height: 160px;
    }

    .news-card-content {
        min-height: 0;
    }

    .news-filter-link {
        flex: 1 1 auto;
        justify-content: center;
    }

    .landing-hero-carousel,
    .landing-hero-carousel .owl-stage-outer,
    .landing-hero-carousel .owl-stage,
    .landing-hero-carousel .owl-item,
    .landing-slide {
        min-height: 560px;
    }

    .landing-slide h1,
    .landing-slide h2 {
        font-size: 1.85rem;
    }

    .landing-slide-actions {
        flex-direction: column;
    }

    .landing-primary-button,
    .landing-outline-button {
        width: 100%;
    }

    .landing-news-image {
        min-height: 160px;
    }
}

/* Staff login and registration management */
.staff-login-page,
.staff-login-page h1,
.staff-login-page h2,
.staff-login-page h3,
.staff-login-page h4,
.staff-login-page h5,
.staff-login-page h6,
.staff-login-page p,
.staff-login-page a,
.staff-login-page span,
.staff-login-page div,
.staff-login-page input,
.staff-login-page select,
.staff-login-page button,
.staff-login-page label {
    font-family: "Sarabun", sans-serif !important;
}

html:has(.staff-login-page),
.staff-login-page,
.staff-login-page > .body {
    min-height: 100vh;
}

.staff-login-page > .body {
    display: flex;
    flex-direction: column;
}

.staff-login-page #header,
.staff-login-page #footer {
    flex-shrink: 0;
}

.staff-login-page .main {
    display: flex;
    flex: 1 0 auto;
}

.staff-login-page .login-section {
    display: flex;
    width: 100%;
    min-height: 0;
    align-items: center;
    padding: 2rem 0 !important;
}

.staff-login-page .login-section > .container {
    width: 100%;
}

.staff-login-page .login-card {
    width: 100%;
    max-width: 400px;
}

.staff-login-page .login-logo {
    width: 135px;
    max-width: 100%;
    height: auto;
}

.staff-page,
.staff-page button,
.staff-page input,
.staff-page select,
.staff-page table {
    font-family: "Sarabun", sans-serif;
}

.staff-page {
    min-width: 320px;
    margin: 0;
    color: #3F3F3F;
    background: #F4F2F4;
}

.staff-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 275px minmax(0, 1fr);
}

.staff-sidebar {
    position: sticky;
    z-index: 1040;
    top: 0;
    display: flex;
    height: 100vh;
    min-width: 0;
    flex-direction: column;
    color: #FFFFFF;
    background: linear-gradient(180deg, #442040, #572052 45%, #351732);
    box-shadow: 0.45rem 0 1.5rem rgba(48, 22, 45, 0.13);
}

.staff-sidebar-brand {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.staff-sidebar-brand > a {
    display: flex;
    min-width: 0;
    gap: 0.75rem;
    align-items: center;
    color: #FFFFFF;
    text-decoration: none;
}

.staff-sidebar-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.staff-sidebar-brand span,
.staff-user > span:last-child {
    display: grid;
    min-width: 0;
}

.staff-sidebar-brand strong {
    font-size: 1rem;
}

.staff-sidebar-brand small,
.staff-user small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
}

.staff-sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 0;
    border-radius: 0.45rem;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.staff-nav {
    display: grid;
    gap: 0.35rem;
    padding: 1.25rem 0.85rem;
    overflow-y: auto;
}

.staff-nav-label {
    padding: 0 0.7rem 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.staff-nav-label:not(:first-child) {
    margin-top: 0.65rem;
}

.staff-nav-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    min-height: 48px;
    padding: 0.45rem 0.55rem;
    border-radius: 0.55rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
}

.staff-nav-link i {
    text-align: center;
}

.staff-nav-link .staff-nav-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #F4C85A;
    background-color: rgba(255, 255, 255, 0.09);
    border-radius: 0.45rem;
    font-size: 1rem;
    line-height: 1;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.staff-nav-link:hover,
.staff-nav-link:focus-visible,
.staff-nav-link.is-active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
}

.staff-nav-link:hover .staff-nav-icon,
.staff-nav-link:focus-visible .staff-nav-icon {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.staff-nav-link:focus-visible {
    outline: 2px solid rgba(244, 200, 90, 0.72);
    outline-offset: 2px;
}

.staff-nav-link.is-active {
    box-shadow: inset 3px 0 #F4C85A;
}

.staff-nav-link.is-active .staff-nav-icon {
    color: #442040;
    background-color: #F4C85A;
}

.staff-sidebar-footer {
    display: grid;
    gap: 0.8rem;
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.staff-user {
    display: flex;
    min-width: 0;
    gap: 0.65rem;
    align-items: center;
}

.staff-user-avatar {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #572052;
    background: #F4C85A;
    font-size: 0.78rem;
    font-weight: 700;
}

.staff-user strong {
    color: #FFFFFF;
    font-size: 0.88rem;
}

.staff-logout-button {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.45rem;
    color: rgba(255, 255, 255, 0.86);
    background: transparent;
}

.staff-logout-button:hover,
.staff-logout-button:focus-visible {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.staff-sidebar-backdrop {
    display: none;
}

.staff-main {
    min-width: 0;
}

.staff-topbar {
    position: sticky;
    z-index: 1020;
    top: 0;
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem clamp(1rem, 3vw, 2rem);
    border-bottom: 1px solid #E0DADF;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.staff-topbar > div {
    display: grid;
}

.staff-topbar > div span {
    color: #3F273D;
    font-weight: 700;
}

.staff-topbar > div small {
    color: #7D747B;
}

.staff-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #DED6DC;
    border-radius: 0.5rem;
    color: #572052;
    background: #FFFFFF;
}

.staff-secure-badge {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    margin-left: auto;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: #35633A;
    background: #E9F6EA;
    font-size: 0.76rem;
    font-weight: 700;
}

.staff-content {
    width: 100%;
    max-width: 1700px;
    margin-inline: auto;
    padding: clamp(1rem, 3vw, 2rem);
}

.staff-page-heading {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.staff-eyebrow {
    color: #8F4B9D;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.staff-page-heading h1 {
    margin: 0.15rem 0 0.25rem;
    color: #3F273D;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.staff-page-heading p {
    margin: 0;
    color: #766E74;
}

.staff-export-button {
    min-height: 44px;
    flex: 0 0 auto;
    padding-inline: 1rem;
}

.staff-export-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.staff-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.staff-stat-card {
    display: flex;
    min-width: 0;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #E4DEE3;
    border-radius: 0.75rem;
    background: #FFFFFF;
}

.staff-stat-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    color: #6F2869;
    background: #F2EAF1;
}

.staff-stat-icon--success {
    color: #35633A;
    background: #E9F6EA;
}

.staff-stat-icon--pending {
    color: #855A12;
    background: #FFF3D6;
}

.staff-stat-icon--danger {
    color: #9D2D25;
    background: #FCECEB;
}

.staff-stat-card > div {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
}

.staff-stat-card small {
    width: 100%;
    color: #766E74;
}

.staff-stat-card strong {
    color: #3F273D;
    font-size: 1.55rem;
}

.staff-stat-card span:last-child {
    color: #8A8388;
    font-size: 0.75rem;
}

.staff-data-card {
    border: 1px solid #E2DCE1;
    border-radius: 0.85rem;
    background: #FFFFFF;
    overflow: hidden;
}

.staff-data-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #EAE5E9;
}

.staff-data-toolbar h2 {
    margin: 0;
    color: #3F273D;
    font-size: 1.2rem;
}

.staff-data-toolbar p {
    margin: 0.15rem 0 0;
    color: #837B81;
    font-size: 0.8rem;
}

.staff-toolbar-actions {
    display: flex;
    gap: 0.65rem;
}

.staff-search {
    position: relative;
    width: min(310px, 32vw);
    margin: 0;
}

.staff-search i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 0.85rem;
    color: #918990;
    transform: translateY(-50%);
}

.staff-search .form-control {
    min-height: 44px;
    padding-left: 2.5rem;
    border-color: #DCD5DA;
    border-radius: 0.5rem;
}

.staff-status-filter {
    width: 170px;
    min-height: 44px;
    border-color: #DCD5DA;
    border-radius: 0.5rem;
}

.staff-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.1rem;
    color: #572052;
    background: #F4EDF3;
    font-size: 0.86rem;
}

.staff-selection-bar[hidden] {
    display: none;
}

.staff-selection-bar button {
    border: 0;
    color: #6F2869;
    background: transparent;
    font-weight: 700;
}

.staff-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.staff-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

.staff-table th,
.staff-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #EEE9ED;
    text-align: left;
    vertical-align: middle;
}

.staff-table th {
    color: #716970;
    background: #FAF9FA;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.staff-table td {
    color: #514C50;
    font-size: 0.83rem;
}

.staff-table tbody tr:hover {
    background: #FCFAFC;
}

.staff-table tbody tr:last-child td {
    border-bottom: 0;
}

.staff-table td strong,
.staff-table td small {
    display: block;
}

.staff-table td strong {
    color: #3E373C;
    font-weight: 600;
}

.staff-table td small {
    margin-top: 0.15rem;
    color: #8B8489;
    line-height: 1.35;
}

.staff-check-cell {
    width: 44px;
    text-align: center !important;
}

.staff-check-cell input {
    width: 17px;
    height: 17px;
    accent-color: #6F2869;
}

.staff-payment-status {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.staff-payment-status.is-paid {
    color: #35633A;
    background: #E9F6EA;
}

.staff-payment-status.is-pending {
    color: #855A12;
    background: #FFF3D6;
}

.staff-payment-status.is-failed {
    color: #9D2D25;
    background: #FCECEB;
}

.staff-receipt-button {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    min-height: 36px;
    padding: 0.4rem 0.6rem;
    border: 1px solid #D6C7D4;
    border-radius: 0.4rem;
    color: #6F2869;
    background: #FFFFFF;
    font-size: 0.76rem;
    font-weight: 700;
}

.staff-receipt-button:hover,
.staff-receipt-button:focus-visible {
    color: #FFFFFF;
    background: #6F2869;
}

.staff-receipt-unavailable {
    color: #AAA4A8;
}

.staff-empty-state {
    display: grid;
    justify-items: center;
    gap: 0.3rem;
    padding: 2.5rem 1rem;
    color: #777077;
    text-align: center;
}

.staff-empty-state[hidden] {
    display: none;
}

.staff-empty-state i {
    margin-bottom: 0.4rem;
    color: #8F4B9D;
    font-size: 1.8rem;
}

.staff-empty-state strong {
    color: #3F273D;
}

@media (max-width: 1199.98px) {
    .staff-shell {
        grid-template-columns: 245px minmax(0, 1fr);
    }

    .staff-nav {
        padding-inline: 0.65rem;
    }

    .staff-nav-link {
        font-size: 0.88rem;
    }

    .staff-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .staff-shell {
        display: block;
    }

    .staff-sidebar {
        position: fixed;
        left: 0;
        width: min(310px, 86vw);
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }

    .staff-sidebar.is-open {
        transform: translateX(0);
    }

    .staff-sidebar-close,
    .staff-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .staff-sidebar-backdrop {
        position: fixed;
        z-index: 1030;
        inset: 0;
        border: 0;
        background: rgba(31, 19, 30, 0.48);
    }

    .staff-sidebar-backdrop.is-open {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .staff-login-page .login-section {
        padding: 1.5rem 0 !important;
    }

    .staff-page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-export-button {
        align-self: flex-start;
    }

    .staff-data-toolbar,
    .staff-toolbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-search,
    .staff-status-filter {
        width: 100%;
    }

    .staff-table-wrap {
        padding: 0.65rem;
        overflow: visible;
    }

    .staff-table,
    .staff-table tbody {
        display: block;
        min-width: 0;
    }

    .staff-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .staff-table tr {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        margin-bottom: 0.75rem;
        border: 1px solid #E3DCE1;
        border-radius: 0.7rem;
        background: #FFFFFF;
        overflow: hidden;
    }

    .staff-table tr:last-child {
        margin-bottom: 0;
    }

    .staff-table td {
        display: grid;
        grid-column: 2;
        grid-template-columns: minmax(112px, 0.55fr) minmax(0, 1fr);
        gap: 0.65rem;
        padding: 0.65rem 0.75rem;
        border-bottom: 1px solid #EEE9ED;
    }

    .staff-table td::before {
        color: #817980;
        content: attr(data-label);
        font-size: 0.74rem;
        font-weight: 600;
    }

    .staff-table .staff-check-cell {
        grid-row: 1 / span 7;
        grid-column: 1;
        display: flex;
        width: auto;
        align-items: flex-start;
        justify-content: center;
        padding-top: 0.9rem;
        border-right: 1px solid #EEE9ED;
        border-bottom: 0;
    }

    .staff-table .staff-check-cell::before {
        display: none;
    }

    .staff-table td:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 479.98px) {
    .staff-content {
        padding: 0.85rem;
    }

    .staff-topbar {
        min-height: 64px;
        padding-inline: 0.75rem;
    }

    .staff-topbar > div span {
        font-size: 0.86rem;
    }

    .staff-secure-badge {
        width: 34px;
        height: 34px;
        padding: 0;
        justify-content: center;
        font-size: 0;
    }

    .staff-secure-badge i {
        font-size: 0.82rem;
    }

    .staff-stat-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .staff-table td {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .staff-sidebar {
        transition: none;
    }
}
