:root {
    --navy-950: #030b19;
    --navy-900: #06152d;
    --navy-800: #0b2347;
    --gold-500: #e8b33d;
    --gold-400: #f4c65b;
    --ink: #0c1930;
    --muted: #667085;
    --line: #e4e9f1;
    --surface: rgba(255, 255, 255, .97);
    --success: #14865f;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--navy-950);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    background:
        linear-gradient(90deg, rgba(3, 11, 25, .98) 0%, rgba(4, 17, 39, .91) 43%, rgba(4, 17, 39, .64) 100%),
        url("../images/visa-wizard-bg.webp") center top / cover fixed no-repeat;
}

button,
input,
select {
    font: inherit;
}

a {
    color: inherit;
}

.wizard-page-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 18px 0 20px;
}

.wizard-topbar {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 4px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.wizard-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.wizard-brand .brand-logo {
    width: auto;
    height: 42px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong {
    color: #fff;
    font-size: 14px;
    letter-spacing: .02em;
}

.brand-copy small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .58);
    font-size: 9px;
    letter-spacing: .03em;
}

.support-link {
    padding: 9px 13px;
    border: 1px solid rgba(244, 198, 91, .38);
    border-radius: 10px;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    transition: .2s ease;
}

.wizard-top-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.tracking-link {
    padding: 9px 13px;
    border-radius: 10px;
    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.tracking-link:hover {
    color: var(--gold-400);
    background: rgba(255,255,255,.05);
}

.support-link strong {
    color: var(--gold-400);
}

.support-link:hover {
    background: rgba(244, 198, 91, .1);
    transform: translateY(-1px);
}

.wizard-intro {
    max-width: 680px;
    padding: 44px 4px 26px;
    color: #fff;
}

.intro-kicker,
.card-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-400);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wizard-intro h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.wizard-intro h1 em {
    color: var(--gold-400);
    font-style: normal;
}

.wizard-intro > p {
    max-width: 590px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 15px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 19px;
    color: rgba(255, 255, 255, .77);
    font-size: 12px;
}

.trust-row span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--gold-400);
    font-weight: 800;
}

.wizard-wrapper {
    max-width: 930px;
}

.wizard-container {
    width: 100%;
}

.wizard-progress {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    align-items: center;
    gap: 8px;
    margin: 0 18px 14px;
}

.step {
    min-width: 52px;
    color: rgba(255, 255, 255, .47);
    text-align: center;
}

.step span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    margin: 0 auto 4px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(5, 18, 41, .76);
    font-size: 12px;
    font-weight: 800;
}

.step p {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
}

.step.active,
.step.complete {
    color: #fff;
}

.step.active span,
.step.complete span {
    border-color: var(--gold-400);
    color: var(--navy-950);
    background: linear-gradient(135deg, var(--gold-400), #d89419);
    box-shadow: 0 0 0 4px rgba(232, 179, 61, .12);
}

.line {
    height: 1px;
    background: rgba(255, 255, 255, .18);
}

.line.complete {
    background: var(--gold-500);
}

.wizard-card {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
    backdrop-filter: blur(18px);
}

.card-heading {
    max-width: 680px;
}

.wizard-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.subtitle {
    margin: 8px 0 24px;
    color: var(--muted);
    font-size: 13px;
}

.wizard-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #fecdca;
    border-radius: 10px;
    color: var(--danger);
    background: #fef3f2;
    font-size: 13px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group > label,
.visa-options-heading > label {
    display: block;
    margin-bottom: 7px;
    color: #17233a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.form-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #d7dee8;
    border-radius: 11px;
    outline: none;
    color: var(--ink);
    background: #fff;
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 4px rgba(232, 179, 61, .13);
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: #7c8799;
    font-size: 11px;
}

.visa-options-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.visa-options-heading > label {
    margin: 0;
}

.visa-options-heading span {
    color: #7b8494;
    font-size: 11px;
}

.visa-grid,
.form-grid,
.document-grid,
.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.visa-card,
.document-card,
.payment-card {
    position: relative;
    display: block;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: .2s ease;
}

.visa-card[hidden],
.visa-options-group[hidden],
.empty-visa-state[hidden] {
    display: none !important;
}

.visa-card:hover,
.payment-card:hover {
    border-color: rgba(232, 179, 61, .85);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 31, 55, .08);
}

.visa-card input,
.payment-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.visa-card:has(input:checked),
.payment-card:has(input:checked) {
    border-color: var(--gold-500);
    background: linear-gradient(145deg, #fffdf8, #fff8e7);
    box-shadow: 0 0 0 3px rgba(232, 179, 61, .12);
}

.visa-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.visa-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--gold-500);
    background: #fff5d9;
}

.select-indicator {
    width: 16px;
    height: 16px;
    border: 1px solid #cbd2dc;
    border-radius: 50%;
    background: #fff;
}

.visa-card:has(input:checked) .select-indicator {
    border: 4px solid var(--gold-500);
}

.visa-card h3,
.payment-card h3,
.document-card h4 {
    margin: 0 0 5px;
    color: var(--ink);
    font-size: 14px;
}

.visa-card p,
.payment-card p,
.document-card p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.price {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #edf0f4;
}

.price span {
    color: #8a93a2;
    font-size: 10px;
}

.price strong {
    color: var(--navy-800);
    font-size: 14px;
}

.empty-visa-state {
    padding: 16px;
    border: 1px dashed #d7dee8;
    border-radius: 12px;
    color: var(--muted);
    background: #f8fafc;
    text-align: center;
    font-size: 12px;
}

.btn-primary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 21px;
    border: 0;
    border-radius: 11px;
    color: #081326;
    background: linear-gradient(135deg, var(--gold-400), #d99a20);
    box-shadow: 0 10px 24px rgba(217, 154, 32, .22);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: .2s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(217, 154, 32, .28);
}

.btn-primary:disabled {
    color: #929baa;
    background: #e8ebf0;
    box-shadow: none;
    cursor: not-allowed;
}

.document-grid,
.payment-grid {
    margin: 20px 0;
}

.document-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.document-heading h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.document-heading p,
.document-heading > span,
.document-card small {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.required-badge {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #7a5100;
    background: #fff0c2;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    vertical-align: middle;
}

.document-input {
    min-height: 42px;
    margin-top: 11px;
    padding: 7px;
    font-size: 11px;
}

.document-icon,
.payment-icon {
    margin-bottom: 8px;
    color: var(--gold-500);
    font-size: 24px;
}

.payment-card input:checked + .payment-content {
    border-left: 3px solid var(--gold-500);
    padding-left: 12px;
}

.bank-payment-note {
    margin: 14px 0 2px;
    padding: 14px 15px;
    border: 1px solid #f0d28a;
    border-radius: 12px;
    color: #4c3a0b;
    background: linear-gradient(135deg, #fff9e9, #fff4d3);
    font-size: 12px;
}

.bank-payment-note strong {
    display: block;
    margin-bottom: 3px;
    color: #1b2840;
    font-size: 13px;
}

hr {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.order-summary,
.details-box {
    margin: 22px 0;
    padding: 17px;
    border: 1px solid #e7ebf1;
    border-radius: 14px;
    background: #f8fafc;
}

.summary-row,
.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px solid #e7ebf1;
}

.summary-row:last-child,
.detail-row:last-child {
    border-bottom: 0;
}

.confirmation-card {
    text-align: center;
}

.success-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #fff;
    background: var(--success);
    font-size: 26px;
}

.reference-box {
    margin: 22px 0;
    padding: 20px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
}

.reference-box p {
    margin: 0;
    color: rgba(255, 255, 255, .64);
}

.reference-box h1 {
    margin: 6px 0 0;
    color: var(--gold-400);
    font-size: 26px;
    letter-spacing: .08em;
}

.terms {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 12px;
    text-align: left;
}

.completion-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.secondary-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid #d7dee8;
    border-radius: 11px;
    color: var(--ink);
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.wizard-footer {
    max-width: 930px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 4px 0;
    color: rgba(255, 255, 255, .5);
    font-size: 10px;
}

@media (max-width: 720px) {
    body {
        background-attachment: scroll;
        background-position: 62% top;
    }

    .wizard-page-shell {
        width: min(100% - 22px, 620px);
        padding-top: 10px;
    }

    .wizard-topbar {
        min-height: 54px;
        padding-bottom: 10px;
    }

    .support-link {
        display: none;
    }

    .tracking-link {
        padding: 8px;
        font-size: 10px;
    }

    .wizard-brand .brand-logo {
        height: 36px;
    }

    .brand-copy strong {
        font-size: 12px;
    }

    .brand-copy small {
        font-size: 8px;
    }

    .wizard-intro {
        padding: 28px 2px 21px;
    }

    .wizard-intro h1 {
        font-size: 36px;
    }

    .wizard-intro > p {
        font-size: 13px;
    }

    .trust-row {
        gap: 7px 13px;
        font-size: 10px;
    }

    .wizard-progress {
        margin-inline: 2px;
        gap: 4px;
    }

    .step {
        min-width: 42px;
    }

    .step span {
        width: 27px;
        height: 27px;
    }

    .step p {
        font-size: 9px;
    }

    .wizard-card {
        padding: 22px 17px;
        border-radius: 18px;
    }

    .visa-grid,
    .form-grid,
    .document-grid,
    .payment-grid {
        grid-template-columns: 1fr;
    }

    .btn-primary {
        width: 100%;
    }

    .wizard-footer {
        display: grid;
        gap: 4px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
