﻿:root {
    --bg: #f5f2ec;
    --surface: #ffffff;
    --surface-soft: #fbfaf7;
    --ink: #14121a;
    --muted: #615b54;
    --purple: #54236f;
    --purple-strong: #3f1b54;
    --hero: #ffffff;
    --hero-soft: #fbfaf7;
    --green: #c8ef52;
    --green-strong: #9ad324;
    --border: #ddd7cc;
    --border-strong: #cfd0bf;
    --danger-bg: #fff0f0;
    --danger: #ad1f1f;
    --success-bg: #eef8db;
    --success: #2f6e12;
    --radius: 12px;
    --shadow: 0 24px 72px rgba(20, 20, 20, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    font-family: Inter, Manrope, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    background: #ffffff;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-row {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand img {
    width: 170px;
    height: auto;
    display: block;
}

.local-cue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.local-cue span {
    width: 11px;
    height: 11px;
    transform: rotate(45deg);
    background: var(--green);
    display: inline-block;
}

.page-shell {
    padding: 42px 0 80px;
}

.eyebrow,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--purple);
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--green);
    transform: rotate(45deg);
    display: inline-block;
}

.badge {
    padding: 7px 12px;
    border-radius: 999px;
    background: #f1e9f6;
    color: var(--purple);
    border: 1px solid rgba(84, 35, 111, 0.12);
    text-transform: none;
}

.success-badge {
    background: rgba(200, 239, 82, 0.22);
    color: var(--success);
    border-color: rgba(200, 239, 82, 0.35);
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

.lede {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 44ch;
}

.success-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 5px solid var(--purple);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.success-card h2 {
    margin: 12px 0 0;
    font-size: 2rem;
    line-height: 1.1;
}

.section-head {
    display: grid;
    gap: 4px;
    padding-top: 4px;
}

.section-head h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.15;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.field-grid,
.upload-grid {
    display: grid;
    gap: 16px;
}

.field-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field,
.upload-box,
.checkbox-line {
    display: grid;
    gap: 8px;
    font-weight: 850;
    font-size: 0.92rem;
}

.field span,
.upload-box span,
.checkbox-line span {
    font-weight: 850;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 14px;
    font: inherit;
    background: #ffffff;
    color: var(--ink);
    min-height: 50px;
}

textarea {
    min-height: 126px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 4px solid rgba(84, 35, 111, 0.14);
    border-color: var(--purple);
    background: #ffffff;
}

.field small,
.upload-box small {
    color: var(--muted);
    font-weight: 500;
}

.upload-box {
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed var(--border-strong);
    background: #fcfbf8;
}

.upload-box input[type="file"] {
    padding: 12px 0;
    border: 0;
    background: transparent;
    min-height: 0;
}

.checkbox-line {
    grid-template-columns: 20px 1fr;
    align-items: start;
    font-weight: 700;
}

.checkbox-line input {
    width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    margin-top: 3px;
}

.consent-box {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fcfbf8;
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 4px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: var(--purple);
    color: #ffffff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 10px 24px rgba(84, 35, 111, 0.16);
}

.button:hover {
    background: var(--purple-strong);
    transform: translateY(-1px);
}

.button.secondary {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: none;
    color: var(--ink);
}

.button.secondary:hover {
    background: #fcfbf8;
}

.button:disabled,
.button[disabled] {
    background: #ddd8cf;
    color: #7d756a;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.alert {
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid transparent;
}

.alert.error {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: #f1c4c4;
}

.summary-grid {
    display: grid;
    gap: 12px;
}

.summary-grid.compact {
    margin-top: 16px;
}

.summary-row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.summary-row span {
    color: var(--muted);
    font-weight: 800;
}

.file-summary {
    margin-top: 20px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fcfbf8;
}

.file-summary h4 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.file-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.file-summary li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(221, 215, 204, 0.72);
}

.file-summary li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.file-summary span {
    color: var(--muted);
}

.file-summary strong {
    font-weight: 850;
    text-align: right;
}

.summary-files {
    display: grid;
    gap: 12px;
    margin-top: 6px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fcfbf8;
}

.summary-files h4 {
    margin: 0;
    color: var(--purple);
    font-size: 0.98rem;
}

/* Clean final submission page */
.review-page {
    color: var(--id-text);
}

.review-shell {
    width: min(1260px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 36px;
}

.review-final {
    display: grid;
    gap: 24px;
}

.review-hero {
    width: min(760px, 100%);
    margin: 0 auto;
    text-align: center;
}

.review-hero h1 {
    margin: 0 0 8px;
    color: var(--id-text);
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.review-hero h1 span {
    color: var(--id-purple);
}

.review-hero p:not(.id-step-kicker) {
    margin: 0 auto;
    max-width: 640px;
    color: #555064;
    font-size: 1rem;
    line-height: 1.58;
}

.review-alert {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 12px 14px;
    border: 1px solid rgba(200, 58, 58, 0.25);
    border-radius: 8px;
    background: #fff3f3;
    color: var(--id-error);
    font-weight: 850;
}

.review-final-panel {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 30px 34px;
    border: 1px solid rgba(221, 213, 226, 0.94);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 58px rgba(53, 16, 68, 0.14);
    display: grid;
    gap: 22px;
}

.review-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.review-summary-section {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #ddd5e6;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #fbf8fd);
}

.review-summary-section h2 {
    margin: 0 0 4px;
    color: var(--id-purple);
    font-size: 1rem;
    line-height: 1.25;
}

.review-summary-section .summary-row {
    grid-template-columns: minmax(110px, 0.52fr) minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 8px;
    border-color: rgba(221, 213, 226, 0.76);
}

.review-summary-section .summary-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.review-summary-section strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.review-files {
    width: 100%;
}

.review-confirm {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: var(--id-text);
    font-size: 0.94rem;
    font-weight: 850;
}

.review-confirm input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--id-purple);
}

.review-actions {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 2px;
}

@media (max-width: 820px) {
    .review-shell {
        width: min(100% - 28px, 1260px);
    }

    .review-final-panel {
        padding: 22px 18px;
    }

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

    .review-actions {
        flex-direction: column;
    }

    .review-actions .id-back-button,
    .review-actions .id-submit-button {
        width: 100%;
    }
}

.reference-box {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fcfbf8;
    display: grid;
    gap: 6px;
}

.reference-box span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.reference-box strong {
    font-size: 1.2rem;
}

.success-card {
    display: grid;
    gap: 12px;
}

.success-card h2 {
    margin-top: 8px;
}

.success-card .actions {
    margin-top: 8px;
}

.completion-page {
    display: grid;
    gap: 28px;
}

.completion-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 28px;
    align-items: stretch;
}

.completion-copy {
    padding: 28px 0;
    display: grid;
    align-content: center;
}

.completion-copy h1 {
    margin: 14px 0 18px;
    max-width: 780px;
    font-size: clamp(2.55rem, 5vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.completion-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 24px;
    align-items: start;
}

.completion-main {
    display: grid;
    gap: 24px;
}

.receipt-card,
.completion-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.receipt-card {
    border-top: 5px solid var(--purple);
    padding: 24px;
    display: grid;
    gap: 22px;
}

.receipt-status {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(200, 239, 82, 0.26);
    color: var(--success);
    border: 1px solid rgba(47, 110, 18, 0.18);
    font-weight: 900;
}

.status-list > li > span,
.file-mark {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green);
    position: relative;
    flex: 0 0 auto;
}

.receipt-status::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 5px;
    border-left: 2px solid var(--success);
    border-bottom: 2px solid var(--success);
    transform: rotate(-45deg);
}

.status-list > li > span::after,
.file-mark::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 4px;
    left: 5px;
    top: 5px;
    border-left: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(-45deg);
}

.receipt-reference {
    display: grid;
    gap: 6px;
}

.receipt-reference span,
.receipt-meta dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.receipt-reference strong {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.receipt-meta {
    margin: 0;
    display: grid;
    gap: 12px;
}

.receipt-meta div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.receipt-meta dd {
    margin: 0;
    font-weight: 850;
    text-align: right;
}

.completion-panel {
    padding: 24px;
}

.panel-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.panel-heading .badge {
    width: fit-content;
    justify-self: start;
}

.panel-heading h2 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.15;
}

.detail-group {
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.detail-group:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.detail-group:last-child {
    padding-bottom: 0;
}

.detail-group h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--purple);
}

.completion-panel .summary-grid.compact {
    margin-top: 0;
}

.completion-panel .summary-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.receipt-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.receipt-file-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.receipt-file-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.receipt-file-list li:last-child {
    padding-bottom: 0;
}

.receipt-file-list li.is-optional .file-mark {
    background: #f1e9f6;
}

.receipt-file-list li.is-optional .file-mark::after {
    width: 8px;
    height: 2px;
    left: 5px;
    top: 8px;
    border: 0;
    background: var(--purple);
    transform: none;
}

.receipt-file-list li.is-missing .file-mark {
    background: var(--danger-bg);
    border: 1px solid #f1c4c4;
}

.receipt-file-list li.is-missing .file-mark::after {
    width: 8px;
    height: 2px;
    left: 4px;
    top: 7px;
    border: 0;
    background: var(--danger);
    transform: rotate(45deg);
}

.receipt-file-list div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.receipt-file-list span:not(.file-mark) {
    color: var(--muted);
    font-weight: 850;
}

.receipt-file-list strong {
    overflow-wrap: anywhere;
}

.receipt-file-list em {
    color: var(--muted);
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.next-panel {
    position: sticky;
    top: 112px;
}

.status-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.status-list li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.status-list strong {
    display: block;
    margin-bottom: 3px;
}

.status-list p,
.local-note p {
    margin: 0;
    color: var(--muted);
}

.local-note {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    display: grid;
    gap: 6px;
}

.completion-actions {
    margin-top: 18px;
    display: grid;
    align-items: stretch;
}

.completion-actions .button {
    width: 100%;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.review-panel {
    display: grid;
    gap: 18px;
}

.identity-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fcfbf8;
}

.identity-section h4 {
    margin: 0;
    font-size: 0.98rem;
    color: var(--purple);
}

.identity-section p {
    margin: 0;
    color: var(--muted);
}

.prep-copy {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fcfbf8;
}

.prep-copy h4 {
    margin: 0;
    font-size: 0.98rem;
    color: var(--purple);
}

.site-footer {
    background: #ffffff;
    color: var(--muted);
    padding: 42px 0 30px;
    border-top: 1px solid var(--border);
}

.site-footer p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 980px) {
    .completion-hero,
    .completion-grid {
        grid-template-columns: 1fr;
    }

    .completion-copy {
        padding: 8px 0 0;
    }

    .next-panel {
        position: static;
    }

}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1160px);
    }

    .header-row {
        min-height: 72px;
    }

    .brand img {
        width: 138px;
    }

    .local-cue {
        display: none;
    }

    .page-shell {
        padding-top: 28px;
    }

    .success-card {
        padding: 22px;
        border-radius: 18px;
    }

    .completion-page {
        gap: 20px;
    }

    .completion-copy h1 {
        font-size: 2rem;
    }

    .receipt-card,
    .completion-panel {
        padding: 20px;
    }

    .receipt-meta div,
    .receipt-file-list li {
        grid-template-columns: 1fr;
    }

    .receipt-meta dd {
        text-align: left;
    }

    .receipt-file-list li {
        gap: 8px;
    }

    .receipt-file-list em {
        white-space: normal;
    }

    .field-grid.two,
    .field-grid.three {
        grid-template-columns: 1fr;
    }

    .summary-row,
    .file-summary li {
        grid-template-columns: 1fr;
        display: grid;
    }

    .file-summary strong {
        text-align: left;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .actions .button {
        width: 100%;
    }
}

.application-start-page {
    --start-primary: #65208A;
    --start-primary-dark: #351044;
    --start-accent: #7C2BC0;
    --start-bg: #FAF8FC;
    --start-soft: #F4ECF8;
    --start-text: #17131C;
    --start-muted: #625C69;
    --start-border: #DDD5E2;
    --start-border-strong: #C8BBD1;
    --start-input-border: #CFC4D5;
    --start-success: #2C8A57;
    --start-error: #C83A3A;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--start-text);
    background:
        radial-gradient(circle at 8% 16%, rgba(124, 43, 192, 0.08), transparent 28%),
        radial-gradient(circle at 74% 10%, rgba(244, 236, 248, 0.88), transparent 36%),
        linear-gradient(135deg, #FFFFFF 0%, var(--start-bg) 46%, #FFFFFF 100%);
}

.application-start-page .site-header {
    position: relative;
    background: transparent;
    border-bottom: 0;
}

.application-start-page .header-row {
    min-height: 78px;
    animation: startFadeDown 560ms ease both;
}

.application-start-page .brand img {
    width: 174px;
}

.application-start-page .local-cue {
    color: var(--start-muted);
    font-weight: 650;
}

.cue-icon {
    width: 21px;
    height: 21px;
    color: var(--start-primary);
    flex: 0 0 auto;
}

.application-start-shell {
    width: 100%;
    padding: 0 0 22px;
    position: relative;
}

.application-start-shell::before {
    content: "";
    position: absolute;
    left: max(0px, calc((100vw - 1280px) / 2 - 78px));
    top: -12px;
    width: 178px;
    height: 136px;
    background-image: radial-gradient(circle, rgba(101, 32, 138, 0.1) 0 3px, transparent 4px);
    background-size: 30px 30px;
    pointer-events: none;
}

.start-hero {
    width: min(1280px, calc(100% - 72px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 640px) minmax(380px, 540px);
    grid-template-areas:
        "copy card"
        "visual card"
        "assurance card";
    column-gap: 56px;
    row-gap: 12px;
    align-items: start;
    justify-content: space-between;
}

.start-copy {
    grid-area: copy;
    max-width: 600px;
    padding-top: 18px;
    animation: startFadeUp 680ms ease 90ms both;
}

.start-kicker {
    margin: 0 0 14px;
    color: var(--start-primary);
    font-size: 0.76rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0;
}

.start-copy h1 {
    max-width: 560px;
    margin: 0 0 16px;
    color: var(--start-text);
    font-size: 52px;
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: 0;
}

.start-copy h1 span {
    color: var(--start-primary);
}

.start-lede,
.start-note {
    max-width: 52ch;
    color: var(--start-muted);
    font-size: 1.03rem;
    line-height: 1.56;
}

.start-lede {
    margin-bottom: 7px;
}

.start-note {
    margin-bottom: 0;
    font-size: 0.98rem;
}

.start-visual {
    grid-area: visual;
    height: 202px;
    min-height: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    margin-top: -18px;
    animation: startFadeUp 700ms ease 140ms both;
}

.security-illustration {
    width: min(100%, 408px);
    max-height: 232px;
    height: auto;
    display: block;
}

.shield-group {
    transform-origin: 310px 230px;
    opacity: 0;
    animation: shieldEnter 820ms ease 120ms both, shieldAmbient 8s ease-in-out 1500ms infinite;
}

.shield-body {
    animation: shieldPulse 8s ease-in-out 1500ms infinite;
}

.checkmark {
    stroke-dasharray: 134;
    stroke-dashoffset: 134;
    animation: checkDrawOnce 740ms ease 520ms forwards;
}

.email-token {
    opacity: 0;
    animation: emailEnter 900ms ease 420ms both, emailAmbient 8s ease-in-out 1600ms infinite;
}

.document-token {
    opacity: 0;
    animation: documentEnter 860ms ease 650ms both;
}

.lock-token {
    opacity: 0;
    animation: lockEnter 760ms ease 850ms both;
}

.orbit-lines {
    opacity: 0.62;
    animation: orbitSettle 1400ms ease both;
}

.floating-particles circle {
    animation: particleFloat 9s ease-in-out 1400ms infinite;
    transform-origin: center;
}

.floating-particles circle:nth-child(2),
.floating-particles circle:nth-child(4) {
    animation-delay: 420ms;
}

.floating-particles circle:nth-child(3),
.floating-particles circle:nth-child(5) {
    animation-delay: 820ms;
}

.platform-glow {
    animation: platformGlow 8s ease-in-out 1400ms infinite;
}

.start-form-column {
    grid-area: card;
    width: 100%;
    max-width: 540px;
    justify-self: end;
    margin-top: 14px;
    animation: startFadeUp 760ms ease 220ms both;
}

.start-card {
    width: 100%;
    padding: 34px;
    border: 1px solid rgba(200, 187, 209, 0.76);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 54px rgba(53, 16, 68, 0.1);
    backdrop-filter: blur(16px);
}

.start-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    gap: 0;
    width: 100%;
    min-height: 48px;
    padding: 0;
    color: var(--start-muted);
    font-size: 0.68rem;
    font-weight: 500;
}

.start-progress::before {
    content: "";
    position: absolute;
    left: calc(100% / 12);
    right: calc(100% / 12);
    top: 13px;
    height: 1px;
    background: linear-gradient(90deg, rgba(101, 32, 138, 0.34), rgba(201, 173, 234, 0.84));
}

.progress-item {
    display: inline-flex;
    position: relative;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
    text-align: center;
    line-height: 1.15;
}

.progress-item.is-current {
    color: var(--start-primary);
    font-weight: 700;
}

.progress-dot {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--start-border-strong);
    background: #FFFFFF;
    color: var(--start-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.progress-item.is-current .progress-dot {
    border-color: var(--start-primary);
    background: var(--start-primary);
    color: #FFFFFF;
}

.progress-line {
    display: none;
}

.start-card h2 {
    margin: 20px 0 10px;
    color: var(--start-text);
    font-size: 1.72rem;
    line-height: 1.12;
    font-weight: 800;
}

.start-card p {
    color: var(--start-muted);
}

.start-form {
    margin-top: 22px;
    display: grid;
    gap: 15px;
}

.start-field {
    display: grid;
    gap: 9px;
}

.start-field label {
    color: var(--start-text);
    font-size: 0.96rem;
    font-weight: 650;
}

.start-input-shell {
    position: relative;
}

.start-input-shell input {
    min-height: 56px;
    border: 1.5px solid var(--start-input-border);
    border-radius: 10px;
    padding: 15px 52px 15px 52px;
    color: var(--start-text);
    font-weight: 650;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.start-input-shell input::placeholder {
    color: #817A87;
    font-weight: 500;
}

.start-input-shell input:focus {
    outline: 0;
    border-color: var(--start-primary);
    box-shadow: 0 0 0 4px rgba(101, 32, 138, 0.10);
}

.input-leading-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 23px;
    height: 23px;
    transform: translateY(-50%);
    color: #777180;
    pointer-events: none;
}

.email-valid-indicator {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--start-success);
    opacity: 0;
    transform: translateY(-50%) scale(0.86);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}

.email-valid-indicator svg,
.submit-arrow svg,
.assurance-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.start-input-shell.is-valid input {
    border-color: rgba(44, 138, 87, 0.72);
}

.start-input-shell.is-valid .email-valid-indicator {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.start-input-shell.is-invalid input {
    border-color: var(--start-error);
    background: #FFF8F8;
}

.start-input-shell.is-invalid .input-leading-icon {
    color: var(--start-error);
}

.field-helper,
.field-error {
    margin: 0;
    font-size: 0.88rem;
}

.field-helper {
    color: var(--start-muted);
}

.field-error {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--start-error);
    font-weight: 850;
}

.field-error span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    border: 1px solid currentColor;
    font-size: 0.8rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.start-submit {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 22px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--start-primary) 0%, #7C22BC 58%, var(--start-primary-dark) 100%);
    box-shadow: 0 10px 24px rgba(101, 32, 138, 0.18);
    font: inherit;
    font-size: 1.02rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.start-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(101, 32, 138, 0.24);
    filter: saturate(1.04);
}

.start-submit:focus-visible {
    outline: 4px solid rgba(101, 32, 138, 0.22);
    outline-offset: 3px;
}

.start-submit:disabled {
    cursor: wait;
    transform: none;
    filter: saturate(0.72);
    opacity: 0.8;
}

.submit-arrow {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.submit-label {
    min-width: 0;
}

.submit-spinner {
    width: 20px;
    height: 20px;
    display: none;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #FFFFFF;
    animation: startSpin 780ms linear infinite;
}

.start-submit.is-loading .submit-arrow {
    display: none;
}

.start-submit.is-loading .submit-spinner {
    display: inline-block;
}

.start-terms {
    margin: 2px auto 0;
    max-width: 44ch;
    text-align: center;
    font-size: 0.84rem;
    line-height: 1.55;
}

.start-terms a,
.start-help a,
.start-footer a {
    color: var(--start-primary);
    font-weight: 650;
    text-decoration: none;
}

.start-terms a:hover,
.start-help a:hover,
.start-footer a:hover {
    text-decoration: underline;
}

.start-terms a:focus-visible,
.start-help a:focus-visible,
.start-footer a:focus-visible {
    outline: 3px solid rgba(101, 32, 138, 0.24);
    outline-offset: 3px;
    border-radius: 4px;
}

.start-help {
    margin: 14px 0 0;
    color: var(--start-muted);
    font-size: 0.9rem;
    text-align: center;
}

.assurance-grid {
    grid-area: assurance;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: -18px;
    animation: startFadeUp 700ms ease 300ms both;
}

.assurance-card {
    min-height: 80px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
    padding: 11px;
    border: 1px solid rgba(200, 187, 209, 0.7);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.assurance-card:hover {
    transform: translateY(-2px);
    border-color: rgba(101, 32, 138, 0.28);
    background: rgba(255, 255, 255, 0.9);
}

.assurance-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    padding: 9px;
    color: var(--start-primary);
    background: var(--start-soft);
}

.assurance-card h3 {
    margin: 0 0 4px;
    color: var(--start-text);
    font-size: 0.86rem;
    line-height: 1.2;
    font-weight: 700;
}

.assurance-card p {
    margin: 0;
    color: var(--start-muted);
    font-size: 0.77rem;
    line-height: 1.32;
}

.start-footer {
    background: transparent;
    border-top: 0;
    padding: 0 0 24px;
}

.start-footer-row {
    padding-top: 18px;
    border-top: 1px solid rgba(222, 216, 227, 0.86);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    color: var(--start-muted);
}

.start-footer p {
    margin: 0;
    font-weight: 500;
}

.start-footer-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

@keyframes startFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes startFadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shieldEnter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shieldAmbient {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes shieldPulse {
    0%,
    100% {
        opacity: 0.98;
    }
    50% {
        opacity: 1;
    }
}

@keyframes checkDrawOnce {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes emailEnter {
    from {
        opacity: 0;
        transform: translateX(-16px) translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes emailAmbient {
    0%,
    100% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(5px) translateY(-2px);
    }
}

@keyframes documentEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lockEnter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes orbitSettle {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 0.62;
        transform: scale(1);
    }
}

@keyframes particleFloat {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-12px);
        opacity: 0.86;
    }
}

@keyframes platformGlow {
    0%,
    100% {
        opacity: 0.14;
    }
    50% {
        opacity: 0.28;
    }
}

@keyframes startSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1120px) {
    .start-hero {
        width: min(1180px, calc(100% - 48px));
        grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
        column-gap: 36px;
    }

    .start-copy {
        padding-top: 24px;
    }

    .start-copy h1 {
        font-size: 48px;
    }

    .start-card {
        padding: 38px;
    }
}

@media (max-width: 900px) {
    .application-start-shell {
        padding-top: 0;
    }

    .application-start-shell::before {
        opacity: 0.7;
    }

    .start-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "visual"
            "card"
            "assurance";
        row-gap: 22px;
    }

    .start-copy {
        max-width: 760px;
        padding-top: 24px;
    }

    .start-visual {
        height: 240px;
        margin-top: -4px;
    }

    .security-illustration {
        width: min(100%, 460px);
    }

    .start-form-column {
        max-width: 620px;
        justify-self: stretch;
        margin-top: 0;
    }

    .assurance-card {
        grid-template-columns: 54px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .application-start-page .header-row {
        min-height: 82px;
        gap: 12px;
    }

    .application-start-page .brand img {
        width: 136px;
    }

    .application-start-page .local-cue {
        display: inline-flex;
        gap: 7px;
        font-size: 0.78rem;
    }

    .cue-icon {
        width: 19px;
        height: 19px;
    }

    .start-hero {
        width: min(100% - 28px, 680px);
    }

    .start-copy h1 {
        font-size: 38px;
    }

    .start-lede,
    .start-note {
        font-size: 1rem;
    }

    .start-visual {
        height: 220px;
        margin-top: -8px;
    }

    .start-card {
        padding: 26px;
        border-radius: 18px;
    }

    .start-card h2 {
        margin-top: 22px;
        font-size: 1.56rem;
    }

    .start-input-shell input {
        min-height: 58px;
        padding-left: 50px;
    }

    .start-submit {
        min-height: 58px;
        gap: 10px;
        padding-inline: 16px;
    }

    .assurance-grid {
        grid-template-columns: 1fr;
    }

    .assurance-card {
        min-height: auto;
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 16px;
    }

    .assurance-icon {
        width: 44px;
        height: 44px;
        padding: 11px;
    }

    .start-footer-row,
    .start-footer-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .start-footer-nav {
        gap: 12px;
    }
}

@media (max-width: 380px) {
    .application-start-page .brand img {
        width: 126px;
    }

    .application-start-page .local-cue {
        font-size: 0.72rem;
    }

    .start-copy h1 {
        font-size: 34px;
    }

    .start-card {
        padding: 22px;
    }

    .start-submit {
        font-size: 0.95rem;
    }

    .start-progress {
        font-size: 0.66rem;
        min-height: 46px;
    }

    .progress-item {
        gap: 4px;
    }

    .progress-dot {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .submit-arrow {
        width: 19px;
        height: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .application-start-page *,
    .application-start-page *::before,
    .application-start-page *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .checkmark {
        stroke-dashoffset: 0;
    }
}

/* Page 2: personal details and address history */
.page2-page {
    --page2-bg: #faf8fc;
    --page2-surface: #ffffff;
    --page2-text: #17131c;
    --page2-muted: #625c69;
    --page2-purple: #65208a;
    --page2-purple-dark: #351044;
    --page2-purple-accent: #7c2bc0;
    --page2-purple-soft: #f4ecf8;
    --page2-border: #ddd5e2;
    --page2-success: #2c8a57;
    --page2-error: #c83a3a;
    color: var(--page2-text);
    background:
        linear-gradient(132deg, rgba(244, 236, 248, 0.78) 0%, rgba(255, 255, 255, 0.88) 42%, rgba(250, 248, 252, 1) 100%),
        var(--page2-bg);
}

.page2-page .site-header {
    position: static;
    background: transparent;
    border-bottom: 0;
}

.page2-page .header-row {
    width: min(1100px, calc(100% - 40px));
    min-height: 82px;
}

.page2-page .brand img {
    width: 164px;
}

.page2-page .local-cue {
    color: #504861;
}

.page2-page .cue-icon {
    width: 21px;
    height: 21px;
    color: var(--page2-purple-accent);
}

.page2-shell {
    width: 100%;
    padding: 10px 0 30px;
}

.page2-wrap {
    width: min(1060px, calc(100% - 40px));
    margin: 0 auto;
}

.page2-progress {
    display: grid;
    grid-template-columns: max-content minmax(22px, 1fr) max-content minmax(22px, 1fr) max-content minmax(22px, 1fr) max-content minmax(22px, 1fr) max-content minmax(22px, 1fr) max-content;
    align-items: center;
    gap: 11px;
    width: min(1040px, 100%);
    margin: 2px auto 20px;
    color: var(--page2-purple-dark);
    font-size: 0.88rem;
    font-weight: 900;
}

.page2-progress-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.page2-progress-dot {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid var(--page2-purple);
    background: #fff;
    color: var(--page2-purple);
    font-size: 0.88rem;
    line-height: 1;
    flex: 0 0 auto;
}

.page2-progress-dot svg {
    width: 18px;
    height: 18px;
}

.page2-progress-item.is-active .page2-progress-dot {
    background: linear-gradient(135deg, var(--page2-purple), var(--page2-purple-accent));
    color: #fff;
    box-shadow: 0 10px 22px rgba(101, 32, 138, 0.2);
}

.page2-progress-line {
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--page2-purple), var(--page2-purple-accent));
}

.page2-intro {
    text-align: center;
    margin: 0 auto 14px;
    max-width: 760px;
}

.page2-intro > p:first-child {
    margin: 0 0 4px;
    color: var(--page2-muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.page2-intro h1 {
    margin: 0 0 6px;
    color: var(--page2-text);
    font-size: clamp(1.62rem, 3vw, 2.25rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.page2-intro h1 span,
.page2-required-note span,
.page2-card a {
    color: var(--page2-purple);
}

.page2-intro > p:not(:first-child) {
    margin: 0;
    color: #4f4960;
    font-size: 0.98rem;
}

.page2-required-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 8px;
    color: var(--page2-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.page2-required-note svg {
    width: 17px;
    height: 17px;
    color: var(--page2-purple-accent);
    flex: 0 0 auto;
}

.page2-alert {
    width: min(1060px, 100%);
    margin: 0 auto 14px;
    padding: 12px 14px;
    border: 1px solid rgba(200, 58, 58, 0.25);
    border-radius: 8px;
    background: #fff3f3;
    color: var(--page2-error);
    font-weight: 800;
}

.page2-card {
    width: 100%;
    margin: 0 auto;
    padding: 24px;
    background: var(--page2-surface);
    border: 1px solid rgba(221, 213, 226, 0.92);
    border-radius: 10px;
    box-shadow: 0 22px 62px rgba(53, 16, 68, 0.1);
}

.page2-section {
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(221, 213, 226, 0.82);
}

.page2-section + .page2-section {
    padding-top: 16px;
}

.page2-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--page2-purple);
    font-size: 1.02rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.page2-section h2 svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.page2-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 20px;
}

.page2-grid + .page2-grid {
    margin-top: 12px;
}

.page2-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page2-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page2-grid.address-lookup {
    grid-template-columns: minmax(240px, 0.95fr) minmax(320px, 1.55fr);
    align-items: start;
}

.email-row {
    grid-template-columns: minmax(280px, 0.82fr) max-content;
    align-items: end;
}

.page2-field {
    min-width: 0;
}

.page2-field label,
.segmented-field legend {
    display: block;
    margin: 0 0 6px;
    color: var(--page2-text);
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.25;
}

.page2-field label span,
.segmented-field legend span {
    color: var(--page2-error);
}

.page2-field label small {
    color: var(--page2-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.page2-field input,
.page2-field select {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #cfc7d5;
    border-radius: 7px;
    background: #fff;
    color: var(--page2-text);
    font: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.page2-field select {
    appearance: none;
    padding-right: 40px;
    background-image:
        linear-gradient(45deg, transparent 50%, #685f76 50%),
        linear-gradient(135deg, #685f76 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.page2-field input::placeholder {
    color: #827a8d;
}

.page2-field input:focus,
.page2-field select:focus,
.segmented-field label:focus-within,
.page2-button:focus-visible,
.lookup-button:focus-visible,
.change-email-link:focus-visible,
.add-previous:focus-visible,
.remove-previous:focus-visible,
.page2-footer a:focus-visible {
    border-color: var(--page2-purple-accent);
    box-shadow: 0 0 0 4px rgba(124, 43, 192, 0.14);
    outline: none;
}

.page2-field.has-error input,
.page2-field.has-error select,
.page2-field input[aria-invalid="true"],
.page2-field select[aria-invalid="true"] {
    border-color: var(--page2-error);
    background: #fffafa;
}

.page2-helper,
.page2-error,
.privacy-note {
    margin: 6px 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
}

.page2-helper,
.privacy-note {
    color: var(--page2-muted);
}

.page2-error {
    color: var(--page2-error);
    font-weight: 800;
}

.lookup-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 10px;
    align-items: start;
}

.lookup-button {
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid rgba(101, 32, 138, 0.18);
    border-radius: 7px;
    background: linear-gradient(135deg, var(--page2-purple), var(--page2-purple-accent));
    color: #fff;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 900;
}

.lookup-button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.address-select select:disabled {
    color: #746d7f;
    background-color: #f7f5f9;
}

.change-email-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 4px 2px;
    color: var(--page2-purple);
    font-size: 0.86rem;
    font-weight: 900;
    white-space: nowrap;
}

.change-email-link svg {
    width: 18px;
    height: 18px;
}

.segmented-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.segmented-field legend {
    width: 100%;
}

.segmented-field label {
    display: inline-flex;
    min-width: 108px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfc7d5;
    border-radius: 7px;
    background: #fff;
    color: var(--page2-text);
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 900;
}

.segmented-field input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.segmented-field label:has(input:checked) {
    border-color: var(--page2-purple-accent);
    background: var(--page2-purple-soft);
    color: var(--page2-purple);
}

.history-complete-message {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin: 12px 0 0;
    padding: 8px 12px;
    border: 1px solid rgba(44, 138, 87, 0.24);
    border-radius: 8px;
    background: #f0fbf5;
    color: var(--page2-success);
    font-size: 0.86rem;
    font-weight: 900;
}

.previous-address-region {
    margin-top: 12px;
}

.history-progress {
    display: grid;
    gap: 5px;
    margin: 0 0 12px;
    max-width: 420px;
    color: var(--page2-text);
    font-size: 0.86rem;
}

.history-progress span {
    color: var(--page2-muted);
}

.history-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e4dfe8;
}

.history-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--page2-purple), var(--page2-purple-accent));
    transition: width 180ms ease;
}

.previous-address-list {
    display: grid;
    gap: 12px;
}

.previous-address-block {
    padding: 14px;
    border: 1px solid rgba(124, 43, 192, 0.18);
    border-radius: 8px;
    background: #fbf7ff;
}

.previous-address-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.previous-address-head h3 {
    margin: 0;
    color: var(--page2-purple-dark);
    font-size: 0.96rem;
    line-height: 1.2;
}

.remove-previous,
.add-previous {
    min-height: 38px;
    border-radius: 7px;
    border: 1px solid rgba(101, 32, 138, 0.18);
    background: #fff;
    color: var(--page2-purple);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 900;
    cursor: pointer;
}

.remove-previous {
    padding: 0 12px;
}

.add-previous {
    margin-top: 12px;
    padding: 0 14px;
}

.confirmation-section {
    border-bottom: 0;
}

.checkbox-confirm {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--page2-text);
    font-size: 0.9rem;
    font-weight: 900;
}

.checkbox-confirm input {
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 1px;
    accent-color: var(--page2-purple);
    flex: 0 0 auto;
}

.privacy-note a {
    font-weight: 900;
}

.page2-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
}

.page2-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    border-radius: 7px;
    border: 1px solid transparent;
    padding: 0 26px;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 950;
    cursor: pointer;
}

.page2-button svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
}

.page2-button.secondary {
    min-width: 128px;
    border-color: var(--page2-purple-accent);
    background: #fff;
    color: var(--page2-purple);
}

.page2-button.primary {
    min-width: min(100%, 330px);
    background: linear-gradient(135deg, var(--page2-purple), #4b00b5 58%, var(--page2-purple-accent));
    color: #fff;
    box-shadow: 0 12px 24px rgba(101, 32, 138, 0.24);
}

.page2-button:disabled {
    cursor: wait;
    opacity: 0.84;
}

.page2-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.46);
    border-top-color: #fff;
    border-radius: 50%;
    animation: page2Spin 720ms linear infinite;
}

.page2-button[aria-busy="true"] .page2-spinner {
    display: inline-block;
}

.page2-button[aria-busy="true"] .page2-button-arrow {
    display: none;
}

.page2-footer {
    background: transparent;
    border-top: 0;
    color: #5d5667;
    font-size: 0.88rem;
}

.page2-footer-row {
    width: min(1100px, calc(100% - 40px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 28px;
}

.page2-footer-row p {
    margin: 0;
}

.page2-footer-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    color: var(--page2-purple);
    font-weight: 900;
}

.page2-transition {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: start center;
    padding-top: 72px;
    background: rgba(250, 248, 252, 0.84);
    backdrop-filter: blur(4px);
    transition: opacity 240ms ease, visibility 240ms ease;
}

.page2-transition.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.transition-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(221, 213, 226, 0.86);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(53, 16, 68, 0.13);
    color: var(--page2-purple);
    font-size: 0.92rem;
}

.transition-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(101, 32, 138, 0.16);
    border-top-color: var(--page2-purple-accent);
    border-radius: 50%;
    animation: page2Spin 760ms linear infinite;
}

.transition-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: rgba(124, 43, 192, 0.18);
    transform: rotate(45deg);
    animation: page2Float 1800ms ease-in-out infinite;
}

.transition-dot.one {
    top: 17%;
    left: 28%;
}

.transition-dot.two {
    top: 28%;
    right: 24%;
    animation-delay: 160ms;
}

.transition-dot.three {
    top: 54%;
    left: 18%;
    animation-delay: 320ms;
}

@keyframes page2Spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes page2Float {
    50% {
        transform: translateY(-8px) rotate(45deg);
        opacity: 0.55;
    }
}

@media (max-width: 900px) {
    .page2-grid.three,
    .page2-grid.address-lookup {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .email-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .change-email-link {
        justify-content: flex-start;
        width: fit-content;
    }
}

@media (max-width: 680px) {
    .page2-page .header-row,
    .page2-wrap,
    .page2-footer-row {
        width: min(100% - 28px, 1060px);
    }

    .page2-page .header-row {
        min-height: 74px;
        gap: 12px;
    }

    .page2-page .brand img {
        width: 136px;
    }

    .page2-page .local-cue {
        font-size: 0.76rem;
    }

    .page2-shell {
        padding-top: 2px;
    }

    .page2-progress {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: start;
        gap: 6px;
        font-size: 0.72rem;
    }

    .page2-progress-item {
        flex-direction: column;
        justify-content: start;
        gap: 5px;
        text-align: center;
        white-space: normal;
        line-height: 1.18;
    }

    .page2-progress-line {
        display: none;
    }

    .page2-progress-dot {
        width: 30px;
        height: 30px;
    }

    .page2-card {
        padding: 18px;
    }

    .page2-grid.two,
    .page2-grid.three,
    .page2-grid.address-lookup {
        grid-template-columns: 1fr;
    }

    .lookup-row {
        grid-template-columns: 1fr;
    }

    .lookup-button {
        width: 100%;
    }

    .segmented-field label {
        flex: 1 1 120px;
        min-height: 44px;
    }

    .page2-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .page2-button {
        width: 100%;
        min-width: 0;
    }

    .page2-footer-row,
    .page2-footer-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .page2-footer-nav {
        gap: 12px;
    }

    .page2-transition {
        padding-top: 84px;
    }
}

@media (max-width: 380px) {
    .page2-page .brand img {
        width: 124px;
    }

    .page2-page .local-cue {
        font-size: 0.7rem;
    }

    .page2-card {
        padding: 16px;
    }

    .page2-section h2 {
        font-size: 0.95rem;
    }

    .page2-progress {
        gap: 7px;
        font-size: 0.72rem;
    }

    .page2-progress-dot {
        width: 28px;
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page2-page *,
    .page2-page *::before,
    .page2-page *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

/* Bank information page */
.bank-page {
    --bank-bg: #faf8fc;
    --bank-surface: #ffffff;
    --bank-text: #17131c;
    --bank-muted: #625c69;
    --bank-purple: #65208a;
    --bank-purple-dark: #351044;
    --bank-purple-accent: #7c2bc0;
    --bank-purple-soft: #f4ecf8;
    --bank-border: #ddd5e2;
    --bank-border-strong: #cfc4d5;
    --bank-error: #c83a3a;
    min-height: 100vh;
    color: var(--bank-text);
    background:
        radial-gradient(circle, rgba(101, 32, 138, 0.09) 1.5px, transparent 1.5px) left 78px top 96px / 28px 28px no-repeat,
        radial-gradient(circle, rgba(101, 32, 138, 0.08) 1.5px, transparent 1.5px) right 42px top 92px / 28px 28px no-repeat,
        linear-gradient(132deg, rgba(244, 236, 248, 0.72) 0%, rgba(255, 255, 255, 0.92) 42%, rgba(250, 248, 252, 1) 100%),
        var(--bank-bg);
}

.bank-page svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bank-page .site-header {
    position: static;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(221, 213, 226, 0.82);
}

.bank-page .header-row,
.bank-shell,
.bank-page .card-footer-row {
    width: min(1080px, calc(100% - 40px));
}

.bank-page .header-row {
    min-height: 76px;
}

.bank-page .brand img {
    width: 164px;
}

.bank-page .local-cue {
    color: #504861;
}

.bank-page .cue-icon {
    width: 21px;
    height: 21px;
    color: var(--bank-purple-accent);
}

.bank-shell {
    margin: 0 auto;
    padding: 30px 0 36px;
}

.bank-flow {
    display: grid;
    gap: 24px;
}

.bank-progress {
    display: grid;
    grid-template-columns: max-content minmax(40px, 1fr) max-content minmax(40px, 1fr) max-content minmax(40px, 1fr) max-content minmax(40px, 1fr) max-content minmax(40px, 1fr) max-content;
    align-items: start;
    gap: 10px;
    width: min(980px, 100%);
    margin: 0 auto;
    color: var(--bank-muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.bank-progress-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 0;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.bank-progress-dot {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 2px solid var(--bank-border-strong);
    border-radius: 999px;
    background: #fff;
    color: #5f596a;
    font-size: 0.9rem;
    font-weight: 950;
    line-height: 1;
}

.bank-progress-dot svg {
    width: 18px;
    height: 18px;
}

.bank-progress-line {
    height: 2px;
    margin-top: 17px;
    background: #c9c4cf;
}

.bank-progress-line.is-complete,
.bank-progress-item.is-complete .bank-progress-dot,
.bank-progress-item.is-active .bank-progress-dot {
    border-color: var(--bank-purple);
    background: linear-gradient(135deg, var(--bank-purple), var(--bank-purple-accent));
    color: #fff;
}

.bank-progress-line.is-complete {
    background: linear-gradient(90deg, var(--bank-purple), var(--bank-purple-accent));
}

.bank-progress-item.is-active {
    color: var(--bank-purple-dark);
    font-weight: 950;
}

.bank-alert {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 12px 14px;
    border: 1px solid rgba(200, 58, 58, 0.25);
    border-radius: 8px;
    background: #fff3f3;
    color: var(--bank-error);
    font-weight: 850;
}

.bank-panel {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 34px;
    border: 1px solid rgba(221, 213, 226, 0.92);
    border-radius: 16px;
    background: var(--bank-surface);
    box-shadow: 0 22px 62px rgba(53, 16, 68, 0.1);
    display: grid;
    gap: 22px;
}

.bank-panel-header {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(221, 213, 226, 0.82);
}

.bank-icon {
    width: 64px;
    height: 64px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: var(--bank-purple-soft);
    color: var(--bank-purple);
}

.bank-icon svg {
    width: 32px;
    height: 32px;
}

.bank-panel-header h1 {
    margin: 0 0 7px;
    color: var(--bank-text);
    font-size: clamp(1.62rem, 2.8vw, 2rem);
    line-height: 1.14;
    letter-spacing: 0;
}

.bank-panel-header p {
    margin: 0;
    max-width: 560px;
    color: var(--bank-muted);
    font-size: 0.96rem;
    line-height: 1.45;
}

.bank-section {
    display: grid;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(221, 213, 226, 0.82);
}

.bank-section h2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--bank-text);
    font-size: 1.06rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.bank-section h2 span {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--bank-purple), var(--bank-purple-accent));
    color: #fff;
    font-size: 0.92rem;
    font-weight: 950;
}

.bank-grid {
    display: grid;
    gap: 18px;
}

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

.bank-statement-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
    gap: 26px;
    align-items: stretch;
}

.bank-field {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: var(--bank-text);
    font-size: 0.86rem;
    font-weight: 900;
}

.bank-field b {
    color: var(--bank-error);
}

.bank-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--bank-border-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--bank-text);
    font: inherit;
    font-size: 0.94rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.bank-field input::placeholder {
    color: #827a8d;
}

.bank-field input:focus,
.bank-upload:focus-within,
.bank-check:focus-within,
.bank-back-button:focus-visible,
.bank-submit-button:focus-visible,
.bank-page .card-footer-nav a:focus-visible {
    border-color: var(--bank-purple-accent);
    box-shadow: 0 0 0 4px rgba(124, 43, 192, 0.14);
    outline: none;
}

.bank-upload {
    position: relative;
    min-height: 178px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 22px;
    border: 1.5px dashed rgba(124, 43, 192, 0.46);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(244, 236, 248, 0.58), rgba(255, 255, 255, 0.96));
    color: var(--bank-text);
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.bank-upload:hover {
    border-color: var(--bank-purple-accent);
}

.bank-upload-icon {
    display: inline-grid;
    place-items: center;
    color: var(--bank-purple);
}

.bank-upload-icon svg {
    width: 42px;
    height: 42px;
}

.bank-upload strong {
    font-size: 0.94rem;
}

.bank-file-name {
    max-width: 100%;
    color: var(--bank-muted);
    font-size: 0.86rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.bank-upload-button {
    min-width: 118px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--bank-purple-accent);
    border-radius: 8px;
    background: #fff;
    color: var(--bank-purple);
    font-size: 0.86rem;
    font-weight: 950;
}

.bank-upload small {
    color: var(--bank-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

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

.bank-confirmation {
    gap: 12px;
}

.bank-check {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: #4f4960;
    font-size: 0.94rem;
    line-height: 1.45;
    cursor: pointer;
}

.bank-check input {
    width: 22px;
    height: 22px;
    min-height: 22px;
    margin: 2px 0 0;
    padding: 0;
    border-radius: 4px;
    accent-color: var(--bank-purple);
}

.bank-actions {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 2px;
}

.bank-back-button,
.bank-submit-button {
    min-height: 52px;
    border-radius: 8px;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 950;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.bank-back-button {
    min-width: 138px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--bank-purple-accent);
    background: #fff;
    color: var(--bank-purple);
}

.bank-submit-button {
    min-width: min(100%, 330px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--bank-purple), #4b00b5 58%, var(--bank-purple-accent));
    color: #fff;
    box-shadow: 0 10px 20px rgba(101, 32, 138, 0.2);
}

.bank-back-button:hover,
.bank-submit-button:hover {
    transform: translateY(-1px);
}

.bank-submit-button:disabled {
    cursor: wait;
    opacity: 0.82;
    transform: none;
}

.bank-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bankSpin 720ms linear infinite;
}

.bank-submit-button[aria-busy="true"] .bank-spinner {
    display: inline-block;
}

.bank-page .card-footer {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-top: 0;
    color: #5d5667;
}

@keyframes bankSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 820px) {
    .bank-page .header-row,
    .bank-shell,
    .bank-page .card-footer-row {
        width: min(100% - 28px, 1080px);
    }

    .bank-shell {
        padding-top: 20px;
    }

    .bank-progress {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        font-size: 0.76rem;
    }

    .bank-progress-item {
        min-width: 0;
        white-space: normal;
    }

    .bank-progress-line {
        display: none;
    }

    .bank-progress-dot {
        width: 30px;
        height: 30px;
    }

    .bank-panel {
        padding: 24px;
    }

    .bank-panel-header,
    .bank-grid.two,
    .bank-statement-grid {
        grid-template-columns: 1fr;
    }

    .bank-panel-header {
        gap: 14px;
    }

    .bank-actions {
        flex-direction: column;
    }

    .bank-back-button,
    .bank-submit-button {
        width: 100%;
        min-width: 0;
        min-height: 54px;
    }
}

@media (max-width: 420px) {
    .bank-page .brand img {
        width: 126px;
    }

    .bank-page .local-cue {
        font-size: 0.72rem;
    }

    .bank-panel {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .bank-progress {
        font-size: 0.68rem;
        gap: 5px;
    }

    .bank-progress-dot {
        width: 27px;
        height: 27px;
    }

    .bank-upload {
        min-height: 168px;
        padding: 18px 14px;
    }
}

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

/* Final card details page */
.card-page {
    --card-bg: #faf8fc;
    --card-surface: #ffffff;
    --card-text: #17131c;
    --card-muted: #625c69;
    --card-purple: #65208a;
    --card-purple-dark: #351044;
    --card-purple-accent: #7c2bc0;
    --card-purple-soft: #f4ecf8;
    --card-border: #ddd5e2;
    --card-error: #c83a3a;
    color: var(--card-text);
    background:
        linear-gradient(132deg, rgba(244, 236, 248, 0.74) 0%, rgba(255, 255, 255, 0.9) 44%, rgba(250, 248, 252, 1) 100%),
        var(--card-bg);
}

.card-page svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-page .site-header {
    position: static;
    background: transparent;
    border-bottom: 0;
}

.card-page .header-row,
.card-shell,
.card-footer-row {
    width: min(1080px, calc(100% - 40px));
}

.card-page .header-row {
    min-height: 82px;
}

.card-page .brand img {
    width: 164px;
}

.card-page .local-cue {
    display: inline-flex;
    color: #504861;
    font-size: 0.88rem;
}

.card-page .cue-icon {
    width: 21px;
    height: 21px;
    color: var(--card-purple-accent);
}

.card-shell {
    margin: 0 auto;
    padding: 8px 0 34px;
}

.card-final {
    display: grid;
    gap: 18px;
}

.card-final .card-progress {
    display: grid;
    grid-template-columns: max-content minmax(22px, 1fr) max-content minmax(22px, 1fr) max-content minmax(22px, 1fr) max-content minmax(22px, 1fr) max-content minmax(22px, 1fr) max-content;
    align-items: center;
    gap: 14px;
    width: min(1040px, 100%);
    margin: 0 auto 8px;
    color: var(--card-purple-dark);
    font-size: 0.86rem;
    font-weight: 950;
}

.card-final .card-progress-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    white-space: nowrap;
}

.card-final .card-progress-dot {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 2px solid var(--card-purple);
    border-radius: 999px;
    background: #fff;
    color: var(--card-purple);
    font-size: 0.86rem;
    line-height: 1;
}

.card-final .card-progress-dot svg {
    width: 18px;
    height: 18px;
}

.card-final .card-progress-item.is-active .card-progress-dot {
    background: linear-gradient(135deg, var(--card-purple), var(--card-purple-accent));
    color: #fff;
    box-shadow: 0 10px 20px rgba(101, 32, 138, 0.18);
}

.card-final .card-progress-line {
    display: block;
    height: 2px;
    min-width: 26px;
    background: linear-gradient(90deg, var(--card-purple), var(--card-purple-accent));
}

.card-final .card-progress-label {
    display: inline-flex;
}

.card-final .card-progress-label .label-short {
    display: none;
}

.card-final-intro {
    width: min(820px, 100%);
    margin: 0 auto 6px;
    text-align: center;
}

.card-step-kicker {
    margin: 0 0 5px;
    color: var(--card-purple);
    font-size: 0.88rem;
    font-weight: 950;
}

.card-final-intro h1 {
    margin: 0 0 8px;
    color: var(--card-text);
    font-size: 2.15rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.card-final-intro h1 span {
    color: var(--card-purple);
}

.card-final-intro > p:not(.card-step-kicker) {
    margin: 0 auto;
    max-width: 700px;
    color: #4f4960;
    font-size: 0.98rem;
}

.card-safety-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--card-muted);
    font-size: 0.86rem;
}

.card-safety-notice svg {
    width: 17px;
    height: 17px;
    color: var(--card-purple-accent);
    flex: 0 0 auto;
}

.card-final .card-form-panel {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 38px 44px;
    border: 1px solid rgba(221, 213, 226, 0.94);
    border-radius: 18px;
    background: var(--card-surface);
    box-shadow: 0 22px 62px rgba(53, 16, 68, 0.1);
    display: grid;
    gap: 22px;
    animation: cardFinalIn 220ms ease-out both;
}

.card-form-section {
    display: grid;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(221, 213, 226, 0.82);
}

.card-form-section.confirmation-section {
    padding-bottom: 0;
    border-bottom: 0;
}

.card-form-section h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--card-purple);
    font-size: 1.02rem;
    line-height: 1.25;
}

.card-form-section h2 svg {
    width: 24px;
    height: 24px;
}

.card-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.expiry-fields {
    max-width: 520px;
}

.card-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--card-text);
    font-size: 0.86rem;
    font-weight: 900;
}

.card-field span,
.card-field legend {
    line-height: 1.25;
}

.card-field b {
    color: var(--card-error);
}

.card-field input,
.card-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid #cfc7d5;
    border-radius: 8px;
    background: #fff;
    color: var(--card-text);
    font: inherit;
    font-size: 0.94rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.card-field select {
    appearance: none;
    padding-right: 38px;
    background-image:
        linear-gradient(45deg, transparent 50%, #685f76 50%),
        linear-gradient(135deg, #685f76 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.card-field input::placeholder {
    color: #827a8d;
}

.card-field input:focus,
.card-field select:focus,
.card-confirm:focus-within,
.card-back-button:focus-visible,
.card-submit-button:focus-visible,
.card-footer-nav a:focus-visible {
    border-color: var(--card-purple-accent);
    box-shadow: 0 0 0 4px rgba(124, 43, 192, 0.14);
    outline: none;
}

.card-field input[aria-invalid="true"],
.card-field select[aria-invalid="true"],
.card-field[aria-invalid="true"] select,
.card-confirm input[aria-invalid="true"] {
    border-color: var(--card-error);
    background: #fffafa;
}

.card-field-error {
    margin: 0;
    color: var(--card-error);
    font-size: 0.78rem;
    font-weight: 850;
}

.card-alert {
    padding: 12px 14px;
    border: 1px solid rgba(200, 58, 58, 0.25);
    border-radius: 8px;
    background: #fff3f3;
    color: var(--card-error);
    font-weight: 850;
}

.card-confirm {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--card-text);
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
}

.card-confirm input {
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin: 1px 0 0;
    padding: 0;
    accent-color: var(--card-purple);
}

.card-privacy-copy {
    margin: -6px 0 0 30px;
    color: var(--card-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.card-privacy-copy a {
    color: var(--card-purple);
    font-weight: 900;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 4px;
}

.card-back-button,
.card-submit-button {
    min-height: 52px;
    border-radius: 8px;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 950;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.card-back-button {
    min-width: 138px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--card-purple-accent);
    background: #fff;
    color: var(--card-purple);
}

.card-submit-button {
    min-width: min(100%, 340px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--card-purple), #4b00b5 58%, var(--card-purple-accent));
    color: #fff;
    box-shadow: 0 10px 20px rgba(101, 32, 138, 0.2);
}

.card-back-button:hover,
.card-submit-button:hover {
    transform: translateY(-1px);
}

.card-submit-button:disabled {
    cursor: wait;
    opacity: 0.82;
    transform: none;
}

.card-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cardSpin 720ms linear infinite;
}

.card-submit-button[aria-busy="true"] .card-spinner {
    display: inline-block;
}

.card-submit-status {
    min-height: 1.2em;
    margin: -8px 0 0;
    color: var(--card-muted);
    font-size: 0.84rem;
    text-align: right;
}

.card-page .card-footer {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-top: 0;
    color: #5d5667;
}

.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    padding: 4px 0 30px;
    font-size: 0.88rem;
}

.card-footer-row p {
    margin: 0;
}

.card-footer-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--card-purple);
    font-weight: 900;
}

@keyframes cardFinalIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1400px) {
    .card-final .card-progress {
        width: min(100%, 760px);
        gap: 10px;
        font-size: 0.8rem;
    }

    .card-final .card-progress-label .label-long {
        display: none;
    }

    .card-final .card-progress-label .label-short {
        display: inline;
    }
}

@media (max-width: 768px) {
    .bank-progress {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 6px;
        font-size: 0.66rem;
    }

    .bank-progress-line {
        display: none;
    }

    .bank-progress-item {
        white-space: normal;
        gap: 5px;
    }

    .card-page .header-row,
    .card-shell,
    .card-footer-row {
        width: min(100% - 28px, 1080px);
    }

    .card-shell {
        padding-top: 2px;
    }

    .card-final {
        gap: 16px;
    }

    .card-final .card-progress {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 7px;
        margin-bottom: 4px;
        font-size: 0.72rem;
    }

    .card-final .card-progress-item {
        flex-direction: column;
        justify-content: start;
        gap: 5px;
        text-align: center;
        white-space: normal;
        line-height: 1.18;
    }

    .card-final .card-progress-dot {
        width: 28px;
        height: 28px;
        border-width: 1.5px;
        font-size: 0.76rem;
    }

    .card-final .card-progress-dot svg {
        width: 15px;
        height: 15px;
    }

    .card-final .card-progress-line {
        display: none;
    }

    .card-final-intro {
        text-align: left;
    }

    .card-final-intro h1 {
        font-size: 1.86rem;
    }

    .card-final-intro > p:not(.card-step-kicker),
    .card-safety-notice {
        justify-content: flex-start;
        font-size: 0.92rem;
    }

    .card-final .card-form-panel {
        padding: 24px;
    }

    .card-field-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .expiry-fields {
        max-width: none;
    }

    .card-actions {
        flex-direction: column;
    }

    .card-back-button,
    .card-submit-button {
        width: 100%;
        min-width: 0;
        min-height: 54px;
    }

    .card-submit-status {
        text-align: left;
    }

    .card-footer-row,
    .card-footer-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-footer-nav {
        gap: 12px;
    }
}

@media (max-width: 380px) {
    .card-page .brand img {
        width: 126px;
    }

    .card-page .local-cue {
        font-size: 0.72rem;
    }

    .card-final .card-progress {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        font-size: 0.68rem;
        gap: 5px;
    }

    .card-final .card-progress-item {
        flex-direction: column;
        justify-content: start;
        gap: 4px;
        text-align: center;
        white-space: normal;
    }

    .card-final .card-progress-dot {
        width: 26px;
        height: 26px;
    }

    .card-final .card-progress-line {
        display: none;
    }

    .card-final-intro h1 {
        font-size: 1.68rem;
    }

    .card-final .card-form-panel {
        padding: 20px 16px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-page *,
    .card-page *::before,
    .card-page *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

/* ID collection page */
.id-page {
    --id-purple: #65208A;
    --id-purple-dark: #351044;
    --id-purple-accent: #7C2BC0;
    --id-bg: #FAF8FC;
    --id-surface: #FFFFFF;
    --id-text: #17131C;
    --id-muted: #625C69;
    --id-border: #DDD5E2;
    --id-border-strong: #CFC4D5;
    --id-error: #C83A3A;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--id-text);
    background:
        radial-gradient(circle at 6% 19%, rgba(124, 43, 192, 0.08), transparent 24%),
        radial-gradient(circle at 86% 12%, rgba(244, 236, 248, 0.86), transparent 34%),
        linear-gradient(135deg, #fff 0%, var(--id-bg) 48%, #fff 100%);
}

.id-page .site-header {
    position: relative;
    background: transparent;
    border-bottom: 0;
}

.id-page .brand img {
    width: 174px;
}

.id-page .cue-icon {
    width: 21px;
    height: 21px;
    color: var(--id-purple);
}

.id-shell {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: 8px 0 34px;
}

.id-collection {
    display: grid;
    gap: 18px;
}

.id-progress {
    display: grid;
    grid-template-columns: max-content minmax(22px, 1fr) max-content minmax(22px, 1fr) max-content minmax(22px, 1fr) max-content minmax(22px, 1fr) max-content minmax(22px, 1fr) max-content;
    align-items: center;
    gap: 11px;
    width: min(1040px, 100%);
    margin: 0 auto 6px;
    color: var(--id-purple-dark);
    font-size: 0.84rem;
    font-weight: 950;
}

.id-progress-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

.id-progress-dot {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 2px solid var(--id-purple);
    border-radius: 999px;
    background: #fff;
    color: var(--id-purple);
    font-size: 0.78rem;
    line-height: 1;
}

.id-progress-dot svg {
    width: 18px;
    height: 18px;
}

.id-progress-dot svg,
.id-safety-note svg,
.id-section h2 svg,
.id-upload-icon svg,
.id-back-button svg,
.id-submit-button svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.id-progress-item.is-active .id-progress-dot {
    background: linear-gradient(135deg, var(--id-purple), var(--id-purple-accent));
    color: #fff;
    box-shadow: 0 10px 20px rgba(101, 32, 138, 0.18);
}

.id-progress-line {
    display: block;
    height: 2px;
    min-width: 20px;
    background: linear-gradient(90deg, var(--id-purple), var(--id-purple-accent));
}

.id-intro {
    max-width: 790px;
    margin: 0 auto 4px;
    text-align: center;
}

.id-step-kicker {
    margin: 0 0 5px;
    color: var(--id-purple);
    font-size: 0.78rem;
    font-weight: 950;
}

.id-intro h1 {
    margin: 0 0 8px;
    color: var(--id-text);
    font-size: clamp(1.9rem, 3vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.id-intro h1 span {
    color: var(--id-purple);
}

.id-intro > p:not(.id-step-kicker) {
    margin: 0 auto;
    max-width: 700px;
    color: #4f4960;
    font-size: 0.98rem;
}

.id-safety-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--id-muted);
    font-size: 0.86rem;
}

.id-safety-note svg {
    width: 17px;
    height: 17px;
    color: var(--id-purple-accent);
    flex: 0 0 auto;
}

.id-alert {
    width: min(940px, 100%);
    margin: 0 auto;
    padding: 12px 14px;
    border: 1px solid rgba(200, 58, 58, 0.25);
    border-radius: 8px;
    background: #fff3f3;
    color: var(--id-error);
    font-weight: 850;
}

.id-panel {
    width: min(940px, 100%);
    margin: 0 auto;
    padding: 34px 38px;
    border: 1px solid rgba(221, 213, 226, 0.94);
    border-radius: 18px;
    background: var(--id-surface);
    box-shadow: 0 22px 62px rgba(53, 16, 68, 0.1);
    display: grid;
    gap: 22px;
    animation: idPageIn 220ms ease-out both;
}

.id-section {
    display: grid;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(221, 213, 226, 0.82);
}

.id-section h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--id-purple);
    font-size: 1.02rem;
    line-height: 1.25;
}

.id-section h2 svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.id-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.id-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px 18px;
}

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

.id-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--id-text);
    font-size: 0.86rem;
    font-weight: 900;
}

.id-field span,
.id-field label {
    line-height: 1.25;
}

.id-field b,
.id-upload b {
    color: var(--id-error);
}

.id-field input,
.id-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--id-border-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--id-text);
    font: inherit;
    font-size: 0.94rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.id-field select {
    appearance: none;
    padding-right: 38px;
    background-image:
        linear-gradient(45deg, transparent 50%, #685f76 50%),
        linear-gradient(135deg, #685f76 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.id-field input::placeholder {
    color: #827a8d;
}

.id-field input:focus,
.id-field select:focus,
.id-upload:focus-within,
.id-toggle:focus-within,
.id-back-button:focus-visible,
.id-submit-button:focus-visible,
.id-page .card-footer-nav a:focus-visible {
    border-color: var(--id-purple-accent);
    box-shadow: 0 0 0 4px rgba(124, 43, 192, 0.14);
    outline: none;
}

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

.id-upload {
    min-width: 0;
    min-height: 118px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 1.5px dashed rgba(124, 43, 192, 0.42);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(244, 236, 248, 0.56), rgba(255, 255, 255, 0.9));
    color: var(--id-text);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.id-upload-icon {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: #f4ecf8;
    color: var(--id-purple);
}

.id-upload-icon svg {
    width: 30px;
    height: 30px;
}

.id-upload-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.id-upload-copy strong {
    color: var(--id-text);
    font-size: 0.95rem;
    line-height: 1.25;
}

.id-upload-copy small,
.id-upload-copy em {
    color: var(--id-muted);
    font-size: 0.82rem;
    line-height: 1.35;
    word-break: break-word;
}

.id-upload-copy em {
    color: var(--id-purple);
    font-style: normal;
    font-weight: 900;
}

.id-upload input[type="file"] {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    color: var(--id-muted);
    font-size: 0.82rem;
}

.id-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(101, 32, 138, 0.18);
    border-radius: 999px;
    background: #fff;
    color: var(--id-purple);
    font-size: 0.84rem;
    font-weight: 950;
    white-space: nowrap;
    cursor: pointer;
}

.id-toggle input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--id-purple);
}

.id-additional-fields {
    display: grid;
    gap: 16px;
}

.id-additional-fields.is-disabled {
    opacity: 0.56;
}

.id-additional-fields.is-disabled .id-upload,
.id-additional-fields.is-disabled .id-field {
    pointer-events: none;
}

.id-confirmation {
    padding-bottom: 0;
    border-bottom: 0;
}

.id-quality-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.id-quality-grid p {
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(101, 32, 138, 0.12);
    border-radius: 8px;
    background: #fbf8fd;
    color: var(--id-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.id-actions {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 2px;
}

.id-back-button,
.id-submit-button {
    min-height: 52px;
    border-radius: 8px;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 950;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.id-back-button {
    min-width: 138px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--id-purple-accent);
    background: #fff;
    color: var(--id-purple);
}

.id-submit-button {
    min-width: min(100%, 360px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--id-purple), #4b00b5 58%, var(--id-purple-accent));
    color: #fff;
    box-shadow: 0 10px 20px rgba(101, 32, 138, 0.2);
}

.id-back-button svg,
.id-submit-button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.id-back-button:hover,
.id-submit-button:hover {
    transform: translateY(-1px);
}

.id-submit-button:disabled {
    cursor: wait;
    opacity: 0.82;
    transform: none;
}

.id-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: idSpin 720ms linear infinite;
}

.id-submit-button[aria-busy="true"] .id-spinner {
    display: inline-block;
}

.id-submit-status {
    min-height: 1.2em;
    margin: -8px 0 0;
    color: var(--id-muted);
    font-size: 0.84rem;
    text-align: right;
}

.id-page .card-footer {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-top: 0;
    color: #5d5667;
}

@keyframes idPageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes idSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1040px) {
    .id-progress {
        width: min(100%, 850px);
        gap: 8px;
        font-size: 0.76rem;
    }
}

@media (max-width: 820px) {
    .id-shell,
    .id-page .header-row,
    .id-page .card-footer-row {
        width: min(100% - 28px, 1080px);
    }

    .id-shell {
        padding-top: 2px;
    }

    .id-progress {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: start;
        gap: 6px;
    }

    .id-progress-item {
        flex-direction: column;
        justify-content: start;
        gap: 5px;
        text-align: center;
        white-space: normal;
        line-height: 1.18;
    }

    .id-progress-dot {
        width: 29px;
        height: 29px;
        border-width: 1.5px;
        font-size: 0.76rem;
    }

    .id-progress-dot svg {
        width: 15px;
        height: 15px;
    }

    .id-progress-line {
        display: none;
    }

    .id-intro {
        text-align: left;
    }

    .id-intro h1 {
        font-size: 1.86rem;
    }

    .id-safety-note {
        justify-content: flex-start;
        align-items: flex-start;
        font-size: 0.9rem;
    }

    .id-panel {
        padding: 24px;
    }

    .id-grid.three,
    .id-upload-grid,
    .id-quality-grid {
        grid-template-columns: 1fr;
    }

    .id-section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .id-toggle {
        width: 100%;
        justify-content: center;
        border-radius: 8px;
    }

    .id-actions {
        flex-direction: column;
    }

    .id-back-button,
    .id-submit-button {
        width: 100%;
        min-width: 0;
        min-height: 54px;
    }

    .id-submit-status {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .id-page .brand img {
        width: 126px;
    }

    .id-panel {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .id-progress {
        font-size: 0.66rem;
        gap: 4px;
    }

    .id-progress-dot {
        width: 26px;
        height: 26px;
    }

    .id-upload {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 14px;
    }

    .id-upload-icon {
        width: 42px;
        height: 42px;
    }

    .id-upload-icon svg {
        width: 25px;
        height: 25px;
    }
}

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

/* Identity verification redesign */
.id-page {
    background:
        linear-gradient(118deg, transparent 0 76%, rgba(244, 236, 248, 0.86) 76% 100%),
        linear-gradient(145deg, #fff 0%, #fbf8fd 58%, #fff 100%);
}

.id-page .site-header {
    border-bottom: 1px solid rgba(221, 213, 226, 0.72);
}

.id-shell {
    width: min(1260px, calc(100% - 48px));
    padding: 28px 0 36px;
}

.id-collection {
    position: relative;
    gap: 24px;
}

.id-collection::before {
    content: "";
    position: absolute;
    left: -116px;
    top: 420px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, rgba(101, 32, 138, 0.12) 0 2px, transparent 3px);
    background-size: 22px 22px;
    pointer-events: none;
}

.id-progress {
    width: min(940px, 100%);
    grid-template-columns: max-content minmax(70px, 1fr) max-content minmax(70px, 1fr) max-content minmax(70px, 1fr) max-content minmax(70px, 1fr) max-content minmax(70px, 1fr) max-content;
    gap: 8px;
    align-items: start;
    margin: 0 auto 2px;
    font-size: 0.84rem;
    font-weight: 800;
}

.id-progress-item {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
    color: #191421;
    white-space: nowrap;
}

.id-progress-item.is-active {
    color: var(--id-purple);
}

.id-progress-dot {
    width: 32px;
    height: 32px;
    border-width: 1px;
    color: #77717f;
    border-color: #cfc7d6;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.86);
}

.id-progress-item.is-complete .id-progress-dot,
.id-progress-item.is-active .id-progress-dot {
    border-color: transparent;
    background: linear-gradient(135deg, var(--id-purple), var(--id-purple-accent));
    color: #fff;
}

.id-progress-line {
    align-self: start;
    margin-top: 16px;
    height: 2px;
    min-width: 44px;
    background: repeating-linear-gradient(90deg, #d9d0e1 0 8px, transparent 8px 14px);
}

.id-progress-line.is-complete {
    background: linear-gradient(90deg, var(--id-purple), var(--id-purple-accent));
}

.id-hero {
    width: min(860px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
    align-items: center;
}

.id-hero-copy {
    display: grid;
    gap: 14px;
}

.id-step-kicker {
    margin: 0;
    text-align: center;
    color: var(--id-purple);
    font-weight: 750;
}

.id-hero-copy .id-step-kicker {
    justify-self: stretch;
}

.id-hero h1 {
    margin: 0;
    color: var(--id-text);
    font-size: clamp(2.1rem, 4.2vw, 3.15rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.id-hero h1 span {
    color: var(--id-purple);
}

.id-hero p {
    max-width: 56ch;
    margin: 0;
    color: #555064;
    font-size: 1.04rem;
    line-height: 1.62;
}

.id-safety-note {
    justify-content: flex-start;
    gap: 14px;
    margin-top: 8px;
    max-width: 680px;
}

.id-safety-note svg {
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 999px;
    background: #f1e8fb;
    color: var(--id-purple);
}

.id-safety-note span {
    color: #211b2b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.id-hero-art {
    min-height: 210px;
    display: grid;
    place-items: center;
    position: relative;
}

.id-hero-art::before {
    content: "";
    position: absolute;
    inset: 18px 18px 0 64px;
    background: linear-gradient(135deg, rgba(101, 32, 138, 0.12), rgba(124, 43, 192, 0.04));
    border-radius: 42% 48% 46% 40%;
    transform: skewX(-8deg);
}

.identity-card-art {
    position: relative;
    width: 240px;
    height: 156px;
    border-radius: 14px;
    border: 1px solid #e2dce9;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 38px rgba(53, 16, 68, 0.12);
}

.art-line,
.art-copy,
.art-avatar,
.art-check {
    position: absolute;
    display: block;
}

.art-line {
    left: 18px;
    right: 18px;
    height: 6px;
    border-radius: 999px;
    background: #d8d0e5;
}

.art-line.wide {
    top: 21px;
}

.art-line:not(.wide) {
    top: 42px;
}

.art-avatar {
    left: 26px;
    bottom: 28px;
    width: 70px;
    height: 62px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 36%, #b8abd1 0 15px, transparent 16px),
        radial-gradient(ellipse at 50% 78%, #b8abd1 0 31px, transparent 32px),
        #eee9f5;
}

.art-copy {
    left: 114px;
    height: 9px;
    border-radius: 999px;
    background: #cfc6dd;
}

.art-copy.one {
    top: 75px;
    width: 84px;
}

.art-copy.two {
    top: 94px;
    width: 66px;
}

.art-copy.three {
    top: 116px;
    width: 84px;
    background: #b987ef;
}

.art-check {
    right: -26px;
    bottom: -2px;
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--id-purple), var(--id-purple-dark));
    color: #fff;
    box-shadow: 0 12px 24px rgba(53, 16, 68, 0.28);
}

.art-check svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.id-panel {
    width: min(900px, 100%);
    padding: 28px 34px 0;
    gap: 0;
    border-radius: 8px;
    box-shadow: 0 24px 58px rgba(53, 16, 68, 0.14);
}

.id-form-section {
    display: grid;
    gap: 14px;
    padding: 0 0 24px;
}

.id-form-section h2 {
    margin: 0;
    color: var(--id-text);
    font-size: 1.04rem;
    line-height: 1.25;
}

.id-field {
    max-width: 380px;
}

.id-field span {
    color: #4d4657;
    font-size: 0.86rem;
    font-weight: 800;
}

.id-field select {
    min-height: 46px;
    border-radius: 7px;
}

.id-document-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1.25fr) minmax(190px, 0.78fr) minmax(240px, 1fr);
    gap: 28px;
    align-items: end;
}

.id-upload-column {
    min-width: 0;
}

.id-upload-column h3,
.id-before-upload h3 {
    margin: 0 0 8px;
    color: var(--id-text);
    font-size: 0.92rem;
    line-height: 1.25;
}

.id-upload-column p {
    min-height: 34px;
    margin: -3px 0 8px;
    color: var(--id-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.id-dropzone {
    min-height: 178px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 20px;
    border: 1.5px dashed rgba(124, 43, 192, 0.58);
    border-radius: 8px;
    background: #fff;
    text-align: center;
    cursor: pointer;
}

.id-dropzone.is-secondary {
    min-height: 156px;
    border-color: #cfc7d6;
    color: var(--id-muted);
}

.id-upload-icon {
    width: 45px;
    height: 45px;
    color: var(--id-purple);
    background: transparent;
}

.id-dropzone.is-secondary .id-upload-icon {
    color: #90889c;
}

.id-upload-icon svg {
    width: 45px;
    height: 45px;
}

.id-dropzone strong {
    max-width: 260px;
    color: var(--id-text);
    font-size: 0.9rem;
    line-height: 1.42;
}

.id-dropzone small {
    color: var(--id-muted);
    font-size: 0.82rem;
}

.id-file-button {
    min-height: 34px;
    min-width: 104px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--id-purple);
    border-radius: 5px;
    color: var(--id-purple);
    background: #fff;
    font-size: 0.86rem;
    font-weight: 850;
}

.id-dropzone.is-secondary .id-file-button {
    border-color: #bbb3c7;
    color: #6c6576;
}

.id-dropzone em {
    color: var(--id-muted);
    font-size: 0.78rem;
    font-style: normal;
    word-break: break-word;
}

.id-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.id-before-upload {
    align-self: stretch;
    padding: 20px;
    border: 1px solid #ddd5e6;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #fbf8fd);
}

.id-before-upload h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.id-before-upload h3 span {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--id-purple);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 900;
}

.id-before-upload ul {
    list-style: none;
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    color: #332d3f;
    font-size: 0.82rem;
    line-height: 1.35;
}

.id-before-upload li {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 10px;
}

.id-before-upload li::before {
    content: "";
    width: 14px;
    height: 14px;
    margin-top: 2px;
    border-radius: 999px;
    background:
        linear-gradient(135deg, var(--id-purple), var(--id-purple-accent));
}

.id-confirm-row {
    display: grid;
    gap: 7px;
    padding: 8px 0 22px;
}

.id-confirm {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: var(--id-text);
    font-size: 0.9rem;
    font-weight: 850;
}

.id-confirm input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--id-purple);
}

.id-confirm-row p {
    margin: 0 0 0 32px;
    color: var(--id-muted);
    font-size: 0.84rem;
}

.id-confirm-row a {
    color: var(--id-purple);
    font-weight: 900;
}

.id-actions {
    margin: 0 -34px;
    padding: 24px 34px;
    border-top: 1px solid rgba(221, 213, 226, 0.82);
}

.id-back-button {
    min-width: 126px;
}

.id-submit-button {
    min-width: min(100%, 310px);
}

@media (max-width: 980px) {
    .id-hero,
    .id-document-layout {
        grid-template-columns: 1fr;
    }

    .id-hero-art {
        min-height: 190px;
    }

    .id-before-upload {
        order: 3;
    }
}

@media (max-width: 820px) {
    .id-shell {
        width: min(100% - 28px, 1260px);
    }

    .id-progress {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        font-size: 0.66rem;
    }

    .id-progress-line {
        display: none;
    }

    .id-progress-item {
        white-space: normal;
        line-height: 1.15;
    }

    .id-progress-dot {
        width: 27px;
        height: 27px;
    }

    .id-hero {
        gap: 12px;
    }

    .id-hero h1 {
        font-size: 2.05rem;
    }

    .id-panel {
        padding: 22px 18px 0;
    }

    .id-actions {
        margin: 0 -18px;
        padding: 20px 18px;
        flex-direction: column;
    }

    .id-back-button,
    .id-submit-button {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .id-progress {
        font-size: 0.58rem;
        gap: 3px;
    }

    .id-progress-dot {
        width: 24px;
        height: 24px;
        font-size: 0.68rem;
    }

    .id-hero-art {
        display: none;
    }

    .id-safety-note {
        align-items: flex-start;
    }

    .id-dropzone {
        min-height: 164px;
        padding: 16px 12px;
    }
}
