@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #eef3f8;
    --surface: #ffffff;
    --surface-alt: #f8fbff;
    --ink: #132238;
    --muted: #61708a;
    --line: #d8e2ee;
    --line-strong: #b8c7dc;
    --teal: #173f78;
    --teal-dark: #102d58;
    --coral: #ff941f;
    --amber: #ff941f;
    --orange-dark: #c96400;
    --focus: #173f78;
    --danger: #c9332b;
    --success: #0f8a66;
    --shadow: 0 18px 46px rgba(19, 34, 56, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    padding-bottom: 48px;
    background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 46%, #eaf2ff 100%);
    color: var(--ink);
    font-family: 'DM Sans', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.38;
}

a {
    color: inherit;
}

.page-shell {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(16, 45, 88, 0.96), rgba(23, 63, 120, 0.98)),
        var(--teal);
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(16, 45, 88, 0.18);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.logo-brand-public img {
    display: block;
    width: min(360px, 46vw);
    max-height: 72px;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
    padding: 4px;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 8px;
    background: var(--amber);
    color: #ffffff;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 16px;
}

.brand small {
    color: #dbe8f8;
    font-size: 12px;
}

.support-line {
    display: grid;
    justify-content: flex-end;
    justify-items: end;
    gap: 6px;
    color: #dbe8f8;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.support-line a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.support-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    flex-wrap: wrap;
}

.support-row-primary {
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.support-row-secondary {
    color: #dbe8f8;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    text-decoration: none;
    white-space: nowrap;
}

.contact-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 148, 31, 0.18);
    color: var(--amber);
}

.contact-icon::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.contact-phone .contact-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.2 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.3 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.8 21 3 13.2 3 3.8c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1l-2.2 2.1z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.2 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.3 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.8 21 3 13.2 3 3.8c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1l-2.2 2.1z'/%3E%3C/svg%3E");
}

.contact-email .contact-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2zm8 7.7L4.4 7.8c-.2-.1-.4 0-.4.2v.8l8 5.1 8-5.1V8c0-.2-.2-.3-.4-.2L12 12.7z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2zm8 7.7L4.4 7.8c-.2-.1-.4 0-.4.2v.8l8 5.1 8-5.1V8c0-.2-.2-.3-.4-.2L12 12.7z'/%3E%3C/svg%3E");
}

.contact-address .contact-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
}

.registration-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
    width: min(1400px, calc(100% - 48px));
    max-width: 100%;
    margin: 16px auto 58px;
    align-items: start;
}

.progress-card {
    position: sticky;
    top: 76px;
    overflow: hidden;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 148, 31, 0.12), rgba(255, 255, 255, 0) 72px),
        var(--surface);
    box-shadow: var(--shadow);
    min-width: 0;
}

.progress-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--amber), var(--teal), var(--teal-dark));
}

.progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eyebrow {
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.progress-top strong {
    display: inline-grid;
    min-width: 54px;
    min-height: 38px;
    place-items: center;
    border-radius: 8px;
    background: #fff3e6;
    color: var(--teal-dark);
    font-size: 22px;
    font-weight: 900;
}

.progress-track,
.strength-meter {
    overflow: hidden;
    width: 100%;
    height: 8px;
    margin-top: 12px;
    border-radius: 999px;
    background: #d8e2ee;
}

.progress-track span,
.strength-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--amber), var(--teal));
    transition: width 180ms ease, background 180ms ease;
}

.section-nav {
    display: grid;
    counter-reset: admission-step;
    gap: 8px;
    margin-top: 16px;
}

.section-nav a {
    counter-increment: admission-step;
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 6px 10px 6px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.section-nav a::before {
    content: counter(admission-step, decimal-leading-zero);
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 999px;
    background: #eaf2ff;
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 900;
}

.section-nav a::after {
    content: '';
    position: absolute;
    top: 39px;
    bottom: -9px;
    left: 22px;
    width: 1px;
    background: #d8e2ee;
}

.section-nav a:last-child::after {
    display: none;
}

.section-nav a:hover,
.section-nav a:focus,
.section-nav a.is-active {
    border-color: rgba(255, 148, 31, 0.48);
    background: #fff6ec;
    color: var(--ink);
    box-shadow: 0 12px 26px rgba(19, 34, 56, 0.08);
    transform: translateX(2px);
}

.section-nav a.is-active::before {
    background: var(--amber);
    color: #ffffff;
}

.section-nav a.is-complete {
    border-color: rgba(19, 115, 51, 0.18);
    color: #26352f;
}

.section-nav a.is-complete::before {
    content: '✓';
    background: #e7f6ed;
    color: var(--success);
    font-size: 15px;
}

.form-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
}

.form-intro,
.form-section,
.alert {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.form-intro {
    padding: 20px 22px;
    border-top: 4px solid var(--amber);
    min-width: 0;
}

.form-intro h1 {
    margin: 8px 0 10px;
    font-size: 24px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.form-intro p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.alert {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    box-shadow: none;
}

.success-alert {
    border-color: rgba(15, 138, 102, 0.28);
    background: #edf8f1;
    color: var(--success);
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.error-alert {
    border-color: rgba(180, 35, 24, 0.28);
    background: #fff1ef;
    color: var(--danger);
}

.draft-alert {
    border-color: rgba(255, 148, 31, 0.34);
    background: #fff8ee;
    color: #9a5300;
}

.status-page-shell {
    min-height: 100vh;
}

.status-lookup-wrap {
    display: grid;
    width: min(860px, calc(100% - 40px));
    margin: 32px auto 72px;
}

.status-lookup-card {
    gap: 16px;
}

.status-lookup-form {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.status-actions {
    justify-content: flex-start;
}

.otp-status-field {
    max-width: 360px;
}

.status-result-card {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(23, 63, 120, 0.18);
    border-top: 4px solid var(--amber);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.status-result-card h2 {
    margin: 0;
    color: var(--teal);
    font-size: 30px;
    line-height: 1.1;
}

.status-result-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.status-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.status-result-grid div,
.status-remarks {
    display: grid;
    gap: 4px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-alt);
    padding: 12px;
}

.status-result-grid span,
.status-remarks strong {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.status-result-grid strong,
.status-remarks span {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
}

.status-foot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.print-slip {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(23, 63, 120, 0.22);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(19, 34, 56, 0.08);
}

.print-slip-header {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal-dark);
}

.print-slip-header img {
    display: block;
    width: 100%;
    max-height: 62px;
    object-fit: contain;
}

.print-slip-header strong {
    display: block;
    color: var(--teal-dark);
    font-size: 19px;
    line-height: 1.15;
}

.print-slip-header span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.print-id-band {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 8px;
}

.print-id-band > div,
.print-details-grid > div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 9px 10px;
}

.print-id-band span,
.print-details-grid span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.print-id-band strong {
    display: block;
    margin-top: 3px;
    color: var(--teal-dark);
    font-size: 16px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.print-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.print-details-grid strong {
    display: block;
    margin-top: 3px;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.print-instruction-box {
    border-left: 5px solid var(--amber);
    border-radius: 8px;
    background: #fff6ec;
    padding: 10px 12px;
}

.print-instruction-box strong,
.print-checklist strong {
    display: block;
    color: var(--teal-dark);
    font-size: 13px;
}

.print-instruction-box p {
    margin: 4px 0 0;
    color: #33413b;
    font-size: 12px;
    line-height: 1.35;
}

.print-checklist {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 10px 12px;
}

.print-checklist ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
    margin: 8px 0 0;
    padding-left: 17px;
    color: #33413b;
    font-size: 12px;
    line-height: 1.28;
}

.print-signature-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 4px;
}

.print-signature-row div {
    min-height: 48px;
    border-bottom: 1px solid #33413b;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
}

.print-signature-row span {
    color: #33413b;
    font-size: 11px;
    font-weight: 800;
}

.print-note {
    margin: 0;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

form {
    display: grid;
    gap: 18px;
}

.trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-section {
    position: relative;
    overflow: hidden;
    padding: 18px;
    min-width: 0;
    border-left: 5px solid var(--amber);
}

.form-section:nth-of-type(2n) {
    border-left-color: var(--teal);
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--amber), var(--teal));
}

.section-heading {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.section-heading > span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 8px;
    background: #fff3e6;
    color: var(--teal-dark);
    font-weight: 800;
}

.section-heading h2,
.exam-block h3,
.subheading-row h3 {
    margin: 0;
}

.section-heading h2 {
    font-size: 18px;
    overflow-wrap: anywhere;
}

.section-heading p {
    margin: 2px 0 0;
    color: var(--muted);
}

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

.field {
    min-width: 0;
}

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

.field label,
.strength-field > label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.required {
    color: var(--danger);
    font-weight: 900;
}

input,
select,
textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    outline: none;
    padding: 8px 10px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
    min-height: 84px;
    resize: vertical;
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 17px,
        calc(100% - 12px) 17px;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(255, 148, 31, 0.16);
}

input[readonly] {
    background: #f2f6fb;
    color: #223653;
}

.field-hint,
.upload-meta {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.field-error {
    margin: 5px 0 0;
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
}

.email-otp-panel {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(23, 63, 120, 0.2);
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbff, #fff6ec);
}

.email-otp-panel.is-verified {
    border-color: rgba(19, 115, 51, 0.28);
    background: linear-gradient(135deg, #edf8f1, #ffffff);
}

.email-otp-copy {
    display: grid;
    gap: 2px;
}

.email-otp-copy strong {
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 900;
}

.email-otp-copy span,
.email-otp-message {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.email-otp-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.email-otp-code {
    display: grid;
    grid-template-columns: repeat(6, 36px);
    gap: 7px;
}

.email-otp-panel [hidden] {
    display: none !important;
}

.email-otp-code input {
    width: 36px;
    min-height: 38px;
    padding: 0;
    color: var(--teal-dark);
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.email-otp-message {
    min-height: 18px;
    margin: 0;
}

.email-otp-message[data-type='success'] {
    color: var(--success);
}

.email-otp-message[data-type='error'] {
    color: var(--danger);
}

.email-otp-message[data-type='warning'] {
    color: var(--amber);
}

.has-error input,
.has-error select,
.has-error textarea,
.has-error .upload-box {
    border-color: var(--danger);
}

.exam-block {
    padding: 14px;
    border-top: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.exam-block:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.exam-block + .exam-block {
    margin-top: 14px;
}

.exam-block h3,
.subheading-row h3 {
    margin-bottom: 12px;
    font-size: 15px;
}

.subheading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.subheading-row h3 {
    margin-bottom: 0;
}

.subheading-row span {
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 800;
}

.upload-grid {
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 14px;
}

.upload-field {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    min-height: 152px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.upload-field > label:not(.upload-box) {
    display: flex;
    align-items: center;
    min-height: 18px;
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.upload-box {
    position: relative;
    display: flex;
    min-height: 62px;
    width: 100%;
    align-items: center;
    gap: 7px;
    padding: 12px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    background: var(--surface-alt);
    cursor: pointer;
}

.upload-box:hover,
.upload-box:focus-within {
    border-color: var(--amber);
    background: #fff6ec;
}

.upload-field.is-file-saved {
    border-color: rgba(16, 185, 129, .45);
    background: #f5fffb;
}

.upload-field.is-file-error {
    border-color: rgba(220, 38, 38, .42);
    background: #fff8f8;
}

.upload-box input[type='file'] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-title {
    flex: 0 0 auto;
    color: var(--teal-dark);
    font-weight: 800;
}

.upload-meta {
    min-width: 0;
    margin-top: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.upload-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.upload-save-button {
    min-height: 32px;
    border: 0;
    border-radius: 8px;
    padding: 7px 14px;
    background: var(--teal-dark);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(7, 63, 130, .12);
}

.upload-save-button:disabled {
    background: #b6c2d2;
    color: #ffffff;
    cursor: not-allowed;
    box-shadow: none;
}

.is-file-ready .upload-save-button:not(:disabled) {
    background: var(--amber);
}

.is-file-saved .upload-save-button {
    background: #10b981;
}

.upload-status {
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-align: right;
}

.upload-status[data-type='success'] {
    color: #047857;
}

.upload-status[data-type='ready'],
.upload-status[data-type='busy'] {
    color: var(--teal-dark);
}

.upload-status[data-type='error'] {
    color: var(--danger);
}

.strength-field {
    align-self: end;
    min-height: 76px;
}

.strength-meter {
    margin-top: 4px;
}

.strength-meter[data-level='1'] span {
    background: var(--danger);
}

.strength-meter[data-level='2'] span {
    background: var(--amber);
}

.strength-meter[data-level='3'] span,
.strength-meter[data-level='4'] span,
.strength-meter[data-level='5'] span {
    background: var(--teal);
}

.declaration-section {
    display: grid;
    gap: 18px;
}

.declaration-box {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-alt);
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink);
    font-weight: 700;
}

.check-row input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.submit-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.button.compact {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

.site-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    overflow: hidden;
    width: 100%;
    margin: 0;
    min-height: 38px;
    border-radius: 0;
    background: var(--amber);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 38px;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(255, 148, 31, 0.18);
}

.site-footer span {
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
    animation: footer-marquee 17s linear infinite;
}

@keyframes footer-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.primary-button {
    background: var(--amber);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(255, 148, 31, 0.24);
}

.primary-button:hover,
.primary-button:focus {
    background: var(--orange-dark);
}

.secondary-button {
    border-color: var(--line-strong);
    background: #ffffff;
    color: var(--teal-dark);
}

[data-required-label]::after {
    content: ' *';
    color: var(--danger);
}

@media (max-width: 1080px) {
    .registration-layout {
        grid-template-columns: 1fr;
    }

    .progress-card {
        position: static;
    }

    .section-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .section-nav a::after {
        display: none;
    }
}

@media (max-width: 760px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 18px;
    }

    .support-line {
        width: 100%;
        justify-content: flex-start;
        justify-items: start;
        gap: 7px;
        text-align: left;
        flex-wrap: wrap;
        font-size: 12px;
        white-space: normal;
    }

    .support-row {
        justify-content: flex-start;
    }

    .support-row-primary {
        font-size: 12px;
    }

    .contact-item {
        white-space: normal;
    }

    .support-line a {
        overflow-wrap: anywhere;
    }

    .registration-layout {
        width: min(720px, calc(100% - 24px));
        margin-top: 14px;
    }

    .form-intro,
    .form-section {
        padding: 18px;
    }

    .form-intro h1 {
        font-size: 21px;
    }

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

    .section-nav a {
        transform: none;
    }

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

    .print-slip-header,
    .print-id-band,
    .print-details-grid,
    .print-checklist ul,
    .print-signature-row {
        grid-template-columns: 1fr;
    }

    .print-slip-header img {
        max-width: 320px;
    }

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

    .email-otp-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .email-otp-code {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        width: 100%;
    }

    .email-otp-code input {
        width: 100%;
    }

    .subheading-row,
    .submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .site-footer {
        width: 100%;
        margin: 0;
    }

    .status-result-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .brand {
        width: 100%;
    }

    .logo-brand-public img {
        width: min(100%, 360px);
        max-height: 78px;
    }

    .brand span:last-child {
        min-width: 0;
    }

    .section-nav {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
    }
}

@page {
    size: A4;
    margin: 10mm;
}

@media print {
    html,
    body {
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        background: #ffffff !important;
        color: #000000;
        font-size: 11px;
    }

    .has-print-slip .topbar,
    .has-print-slip .progress-card,
    .has-print-slip .form-intro,
    .has-print-slip .success-alert,
    .has-print-slip .error-alert,
    .has-print-slip [data-registration-form],
    .has-print-slip .site-footer {
        display: none !important;
    }

    .has-print-slip .page-shell,
    .has-print-slip .registration-layout,
    .has-print-slip .form-card {
        display: block;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        background: #ffffff !important;
    }

    .has-print-slip .print-slip {
        display: grid !important;
        width: 100%;
        max-width: none;
        gap: 7px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .has-print-slip .print-slip-header {
        grid-template-columns: 168px minmax(0, 1fr);
        gap: 8px;
        padding-bottom: 6px;
    }

    .has-print-slip .print-slip-header img {
        max-height: 44px;
    }

    .has-print-slip .print-slip-header strong {
        font-size: 15px;
    }

    .has-print-slip .print-slip-header span,
    .has-print-slip .print-instruction-box p,
    .has-print-slip .print-checklist ul,
    .has-print-slip .print-details-grid strong {
        font-size: 10px;
    }

    .has-print-slip .print-id-band,
    .has-print-slip .print-details-grid {
        gap: 5px;
    }

    .has-print-slip .print-id-band > div,
    .has-print-slip .print-details-grid > div,
    .has-print-slip .print-instruction-box,
    .has-print-slip .print-checklist {
        padding: 5px 7px;
        border-radius: 4px;
        background: #ffffff !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .has-print-slip .print-id-band span,
    .has-print-slip .print-details-grid span {
        font-size: 8px;
    }

    .has-print-slip .print-id-band strong {
        font-size: 12px;
    }

    .has-print-slip .print-checklist ul {
        gap: 2px 12px;
        margin-top: 4px;
        line-height: 1.18;
    }

    .has-print-slip .print-signature-row {
        gap: 16px;
        margin-top: 2px;
    }

    .has-print-slip .print-signature-row div {
        min-height: 36px;
    }

    .has-print-slip .print-signature-row span,
    .has-print-slip .print-note {
        font-size: 9px;
    }
}
