:root {
    --asp-primary: #0A4D92;
    --asp-primary-dark: #083B70;
    --asp-cyan: #2DADD9;
    --asp-light-blue: #EAF6FC;
    --asp-bg: #F5F8FB;
    --asp-ink: #172232;
    --asp-success: #25845E;
    --asp-warning: #A86C00;
    --asp-border: #DCE6EF;
    --asp-muted: #6B7A8D;
    --asp-danger: #C43D3D;
}

.asp_page {
    background: var(--asp-bg);
    padding: 50px 20px 80px;
}
/* 1440px matches the site's standard desktop container width; the form itself
   stays at a readable column width (below), centered within that container. */
.asp_wrapper {
    max-width: 1440px;
    margin: 0 auto;
    font-family: inherit;
    color: var(--asp-ink);
}
.asp_content {
    max-width: 900px;
    margin: 0 auto;
}

/* Hero / header */
.asp_hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--asp-primary-dark);
    background: var(--asp-light-blue);
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.asp_hero-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--asp-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}
.asp_page-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--asp-ink);
    letter-spacing: -0.4px;
    margin-bottom: 10px;
}
.asp_hero-subtitle {
    font-size: 16px;
    color: var(--asp-muted);
    max-width: 640px;
    line-height: 1.6;
    margin: 0 0 24px;
}
.asp_hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-bottom: 32px;
}
.asp_hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--asp-ink);
}
.asp_hero-trust-item svg {
    color: var(--asp-primary);
    flex-shrink: 0;
}

/* Stepper */
.asp_stepper {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.asp_step-pill {
    flex: 1 1 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--asp-border);
    color: var(--asp-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.asp_step-pill .asp_num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: var(--asp-border);
    color: var(--asp-muted);
    font-weight: 700;
}
.asp_step-pill.asp_active {
    background: var(--asp-primary);
    border-color: var(--asp-primary);
    color: #fff;
}
.asp_step-pill.asp_active .asp_num {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.asp_step-pill.asp_completed {
    background: var(--asp-light-blue);
    border-color: var(--asp-light-blue);
    color: var(--asp-primary-dark);
}
.asp_step-pill.asp_completed .asp_num {
    background: var(--asp-primary);
    color: #fff;
}

/* Mobile progress indicator (replaces the pill stepper below 640px) */
.asp_mobile-progress {
    display: none;
    margin-bottom: 24px;
}
.asp_mobile-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 12px;
}
.asp_mobile-progress-label span:first-child {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--asp-muted);
    white-space: nowrap;
}
.asp_mobile-progress-label span:last-child {
    font-size: 14px;
    font-weight: 700;
    color: var(--asp-ink);
    text-align: right;
}
.asp_mobile-progress-track {
    height: 6px;
    background: var(--asp-border);
    border-radius: 3px;
    overflow: hidden;
}
.asp_mobile-progress-fill {
    height: 100%;
    background: var(--asp-primary);
    border-radius: 3px;
    transition: width 0.25s ease;
    width: 20%;
}

/* Card */
.asp_card {
    background: #ffffff;
    border-radius: 14px;
    padding: 44px;
    border: 1px solid var(--asp-border);
}
.asp_title {
    font-size: 22px;
    color: var(--asp-ink);
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: -0.2px;
}
.asp_subtitle {
    color: var(--asp-muted);
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.asp_section-label {
    color: var(--asp-cyan);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 32px 0 16px;
}
.asp_section-label.asp_first {
    margin-top: 24px;
}

.asp_label {
    font-weight: 700;
    color: var(--asp-muted);
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.asp_label span.asp_req {
    color: var(--asp-danger);
}
.asp_hint {
    font-size: 12px;
    color: var(--asp-muted);
    margin-top: 6px;
}

/* Radio Cards */
.asp_radio-opt {
    display: block;
    position: relative;
    margin-bottom: 12px;
    cursor: pointer;
}
.asp_radio-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.asp_radio-box {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    border: 1.5px solid var(--asp-border);
    border-radius: 8px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    background: #fff;
}
.asp_radio-box:hover {
    border-color: var(--asp-cyan);
}

.asp_radio-indicator {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s;
}
.asp_radio-indicator::after {
    content: '';
    width: 9px;
    height: 9px;
    background: var(--asp-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.asp_radio-opt input:checked ~ .asp_radio-box {
    border-color: var(--asp-primary);
    background: var(--asp-light-blue);
}
.asp_radio-opt input:checked ~ .asp_radio-box .asp_radio-indicator {
    border-color: var(--asp-primary);
}
.asp_radio-opt input:checked ~ .asp_radio-box .asp_radio-indicator::after {
    opacity: 1;
}

.asp_radio-text {
    font-weight: 600;
    color: var(--asp-ink);
    font-size: 15px;
    flex: 1;
}
.asp_badge-pop {
    background: var(--asp-light-blue);
    color: var(--asp-primary);
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    margin-left: auto;
}

/* Forms & Grids */
.asp_form-group {
    margin-bottom: 22px;
}
.asp_grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.asp_grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.asp_input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--asp-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: var(--asp-ink);
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.asp_input:focus {
    border-color: var(--asp-cyan);
    box-shadow: 0 0 0 3px rgba(45,173,217,0.15);
}
/* Only flag a field red once the user has actually left it, or after a failed submit attempt */
.asp_input.asp_touched:invalid,
form.asp_was-validated .asp_input:invalid {
    border-color: var(--asp-danger);
}
.asp_input[type="file"] {
    padding: 11px 16px;
}

.asp_tag-check {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--asp-light-blue);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--asp-border);
    cursor: pointer;
}
.asp_tag-check span {
    font-weight: 600;
    font-size: 13px;
    color: var(--asp-ink);
}

/* PIN Boxes */
.asp_pin-group {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}
.asp_pin-box {
    width: 44px !important;
    height: 48px;
    text-align: center;
    padding: 0 !important;
    font-size: 18px;
    font-weight: 700;
    border: 1.5px solid var(--asp-border);
    border-radius: 8px;
    color: var(--asp-primary);
    background: #fff;
    transition: border-color 0.15s;
    font-family: monospace;
    box-sizing: border-box;
}
.asp_pin-box:focus {
    border-color: var(--asp-cyan);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45,173,217,0.15);
}

/* Nav row */
.asp_nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--asp-border);
}
.asp_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--asp-primary);
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.asp_btn:hover {
    background: var(--asp-primary-dark);
}
.asp_btn:disabled {
    opacity: 0.6;
    cursor: default;
}
.asp_btn-back {
    display: inline-flex;
    align-items: center;
    color: var(--asp-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 14px 10px;
    background: none;
    border: none;
    cursor: pointer;
}
.asp_btn-back:hover {
    color: var(--asp-ink);
}
.asp_nav-row.asp_no-back {
    justify-content: flex-end;
}

/* Password Strength */
.asp_strength-meter {
    height: 6px;
    background: var(--asp-border);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
    display: flex;
}
.asp_strength-meter div {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    width: 0;
}
.asp_strength-weak {
    background: var(--asp-danger);
    width: 33%;
}
.asp_strength-medium {
    background: var(--asp-warning);
    width: 66%;
}
.asp_strength-strong {
    background: var(--asp-success);
    width: 100%;
}
.asp_strength-text {
    font-size: 12px;
    margin-top: 6px;
    color: var(--asp-muted);
    font-weight: 600;
}

/* Errors */
.asp_alert {
    background: #FDF1EC;
    border-left: 3px solid var(--asp-danger);
    padding: 14px 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    color: var(--asp-danger);
    font-weight: 600;
    font-size: 14px;
}

.asp_hidden {
    display: none !important;
}
@media (max-width: 640px) {
    .asp_grid-3, .asp_grid-2 {
        grid-template-columns: 1fr;
    }
    .asp_card {
        padding: 26px 20px;
    }

    /* A row of 5 pills doesn't fit small screens without wrapping awkwardly —
       swap to a single-row "Step X of 5" + progress bar, the standard mobile
       pattern for multi-step forms. */
    .asp_stepper {
        display: none;
    }
    .asp_mobile-progress {
        display: block;
    }

    /* Keep the primary action reachable without scrolling back down
       (mirrors native app / checkout patterns for long steps like Documents). */
    .asp_nav-row {
        position: sticky;
        bottom: 0;
        background: #fff;
        margin: 28px -20px -26px;
        padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--asp-border);
        z-index: 5;
    }

    /* 44px minimum touch targets */
    .asp_input, .asp_btn, .asp_btn-back, .asp_accordion-header {
        min-height: 44px;
    }
    .asp_dropzone-remove {
        width: 36px;
        height: 36px;
    }
    .asp_radio-box {
        padding: 14px 16px;
    }
}

/* Signature Pad */
.asp_signature-wrapper {
    border: 1.5px solid var(--asp-border);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}
.asp_signature-pad {
    width: 100%;
    height: 200px;
    background: #fff;
    border: 1px dashed var(--asp-border);
    border-radius: 6px;
    cursor: crosshair;
    touch-action: none;
    display: block;
}
.asp_signature-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.asp_btn-clear {
    background: var(--asp-light-blue);
    color: var(--asp-primary-dark);
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}
.asp_btn-clear:hover {
    background: #DAEFF9;
}
.asp_signature-pad.asp_is-empty {
    background: repeating-linear-gradient(45deg, #fff, #fff 10px, #F5F8FB 10px, #F5F8FB 20px);
}

/* Signature: draw / upload tabs */
.asp_sig-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.asp_sig-tab {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1.5px solid var(--asp-border);
    background: #fff;
    color: var(--asp-muted);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.asp_sig-tab:hover {
    border-color: var(--asp-cyan);
}
.asp_sig-tab.asp_is-active {
    background: var(--asp-primary);
    border-color: var(--asp-primary);
    color: #fff;
}
.asp_sig-panel {
    display: none;
}
.asp_sig-panel.asp_is-active {
    display: block;
}
.asp_sig-preview {
    position: relative;
    border: 1.5px solid var(--asp-border);
    border-radius: 10px;
    background: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}
.asp_sig-preview-img {
    max-width: 100%;
    max-height: 160px;
    display: block;
}
.asp_sig-preview .asp_dropzone-remove {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Accordion (Documents step) */
.asp_accordion {
    border: 1px solid var(--asp-border);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}
.asp_accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.asp_accordion-header:hover {
    background: var(--asp-bg);
}
.asp_accordion-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--asp-light-blue);
    color: var(--asp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.asp_accordion-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--asp-ink);
    flex: 1;
}
.asp_accordion-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.asp_badge-required {
    background: #FDF1EC;
    color: var(--asp-danger);
}
.asp_badge-optional {
    background: var(--asp-light-blue);
    color: var(--asp-primary-dark);
}
.asp_badge-done {
    background: #E7F4EE;
    color: var(--asp-success);
}
.asp_accordion-chevron {
    color: var(--asp-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.asp_accordion.asp_is-open .asp_accordion-chevron {
    transform: rotate(180deg);
}
.asp_accordion-body {
    display: none;
    padding: 0 18px 20px;
    border-top: 1px solid var(--asp-border);
}
.asp_accordion.asp_is-open .asp_accordion-body {
    display: block;
    padding-top: 18px;
}
.asp_accordion[data-asp-conditional] {
    display: none;
}
.asp_accordion[data-asp-conditional].asp_visible {
    display: block;
}

/* Dropzone (modern file upload) */
.asp_dropzone {
    position: relative;
}
.asp_dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.asp_dropzone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 26px 20px;
    border: 1.5px dashed var(--asp-border);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    background: var(--asp-bg);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.asp_dropzone-label:hover,
.asp_dropzone.asp_drag-over .asp_dropzone-label {
    border-color: var(--asp-cyan);
    background: var(--asp-light-blue);
}
.asp_dropzone-icon {
    color: var(--asp-primary);
}
.asp_dropzone-text {
    font-size: 14px;
    color: var(--asp-ink);
    font-weight: 600;
}
.asp_dropzone-text strong {
    color: var(--asp-primary);
}
.asp_dropzone-hint {
    font-size: 12px;
    color: var(--asp-muted);
    font-weight: 500;
    display: block;
    margin-top: 2px;
}
.asp_dropzone-filelist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.asp_dropzone-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--asp-border);
    border-radius: 10px;
    background: #fff;
}
.asp_dropzone-file-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--asp-light-blue);
    color: var(--asp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.asp_dropzone-file-info {
    flex: 1;
    min-width: 0;
}
.asp_dropzone-filename {
    font-weight: 600;
    font-size: 14px;
    color: var(--asp-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.asp_dropzone-filesize {
    font-size: 12px;
    color: var(--asp-muted);
}
.asp_dropzone-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--asp-bg);
    color: var(--asp-muted);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}
.asp_dropzone-remove:hover {
    background: #FDF1EC;
    color: var(--asp-danger);
}
.asp_dropzone-error {
    font-size: 12px;
    color: var(--asp-danger);
    margin-top: 8px;
    display: none;
}

/* Success */
.asp_success-icon {
    width: 72px;
    height: 72px;
    background: var(--asp-light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
}

/* Wizard panel visibility */
.asp_step-panel {
    display: none;
}
.asp_step-panel.asp_is-active {
    display: block;
}
.asp_invite_page .asp_step-panel {
    display: block;
}