:root {
    color-scheme: light;
    --ink: #172033;
    --muted: #5d6878;
    --navy: #12253f;
    --blue: #1f6feb;
    --blue-dark: #1859bd;
    --green: #16835d;
    --line: #dbe1e8;
    --surface: #ffffff;
    --canvas: #f3f6fa;
    --warning: #7a5500;
    --warning-bg: #fff8df;
    --danger: #b42318;
    --danger-bg: #fff1f0;
    --success-bg: #eaf8f2;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(31, 111, 235, .12), transparent 30rem),
        linear-gradient(180deg, #eef4fb 0, var(--canvas) 25rem);
    line-height: 1.55;
}

button, input, textarea { font: inherit; }

.page-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 38px;
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(540px, 1.35fr);
    gap: clamp(34px, 6vw, 86px);
    align-items: start;
}

.intro { position: sticky; top: 40px; padding: 18px 0; }
.eyebrow, .kicker {
    margin: 0 0 9px;
    color: var(--blue);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1 { margin: 0; color: var(--navy); font-size: clamp(2.25rem, 4.2vw, 3.35rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { margin: 0; color: var(--navy); font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.025em; }
.lead { margin: 22px 0 28px; color: #415069; font-size: 1.08rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.steps li { display: flex; align-items: center; gap: 13px; }
.steps li > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; color: #fff; background: var(--navy); font-weight: 800; }
.steps strong, .steps small { display: block; }
.steps small { color: var(--muted); }

.info-card { margin-top: 30px; padding: 18px 20px; border: 1px solid #cad8ea; border-radius: 14px; background: rgba(255,255,255,.68); }
.info-card p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }

.form-card { padding: clamp(24px, 4vw, 44px); border: 1px solid rgba(20, 43, 73, .1); border-radius: 24px; background: var(--surface); box-shadow: 0 24px 70px rgba(18, 37, 63, .12); }
.form-heading { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.form-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .9rem; }

form { padding-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.full { grid-column: 1 / -1; }
.field { min-width: 0; }
.activation-choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.activation-choice legend { margin-bottom: 9px; color: var(--ink); font-size: .9rem; font-weight: 800; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-card { display: flex; align-items: flex-start; gap: 10px; min-height: 76px; padding: 13px; border: 1px solid #c8d3e0; border-radius: 10px; background: #f8fafc; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice-card:has(input:checked) { border-color: var(--blue); background: #eef6ff; box-shadow: 0 0 0 2px rgba(31,111,235,.1); }
.choice-card.paid-choice:has(input:checked) { border-color: #d7ab39; background: #fff9e9; box-shadow: 0 0 0 2px rgba(215,171,57,.12); }
.choice-card input { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: var(--blue); }
.choice-card span { min-width: 0; }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { color: var(--ink); font-size: .88rem; }
.choice-card small { margin-top: 4px; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.direct-payment { padding: 16px; border: 1px solid #dfc16e; border-radius: 11px; background: #fffaf0; }
.direct-payment-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.direct-payment-heading span, .direct-payment-heading strong { display: block; }
.direct-payment-heading span { color: #78601d; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.direct-payment-heading strong { margin-top: 3px; color: var(--ink); font-size: .96rem; }
.direct-payment-heading b { color: var(--ink); font-size: 1.25rem; white-space: nowrap; }
.direct-payment > p { margin: 11px 0 2px; color: #586477; font-size: .82rem; line-height: 1.5; }
.direct-payment > small { display: block; margin-top: 10px; color: #725f27; font-size: .75rem; font-weight: 650; text-align: center; }
.paid-direct .submit-button { color: #111820; background: #ffc439; box-shadow: 0 8px 20px rgba(0,48,135,.16); }
.paid-direct .submit-button:hover:not(:disabled) { background: #f2ba36; }
.paid-direct .spinner { border-color: rgba(0,48,135,.28); border-top-color: #003087; }
.field label, .label-row label { display: block; margin-bottom: 7px; color: #253249; font-size: .92rem; font-weight: 750; }
.field label span, .form-heading span { color: var(--danger); }
.field label .optional { color: var(--muted); font-weight: 500; }

input[type="text"], input[type="email"], textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--ink);
    border: 1px solid #bfc9d5;
    border-radius: 9px;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,.14); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: .79rem; }
.field-error { display: block; min-height: 0; margin-top: 5px; color: var(--danger); font-size: .82rem; font-weight: 650; }
.field-error:not(:empty) { min-height: 1.3em; }

.label-row { display: flex; justify-content: space-between; gap: 12px; }
#id-count { color: var(--muted); font-size: .84rem; font-weight: 700; }
#id-count.complete { color: var(--green); }
.input-action { display: flex; gap: 8px; }
.input-action input { min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.paste-button { flex: 0 0 auto; padding: 0 16px; color: var(--blue); border: 1px solid #b8c9df; border-radius: 9px; background: #f4f8fe; font-weight: 750; cursor: pointer; }
.paste-button:hover { background: #e8f1fe; }

.warning { margin-top: 10px; padding: 12px 14px; color: var(--warning); border-left: 4px solid #d59a13; border-radius: 5px; background: var(--warning-bg); font-size: .88rem; }
.warning strong { display: block; }

.id-guide { margin-top: 13px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.id-guide summary { padding: 11px 13px; color: #33435b; background: #f7f9fb; font-size: .88rem; font-weight: 750; cursor: pointer; }
.guide-content { padding: 14px; }
.guide-content p { margin: 0 0 12px; color: var(--muted); font-size: .87rem; }
.guide-content img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
kbd { padding: 1px 5px; border: 1px solid #c6ced8; border-bottom-width: 2px; border-radius: 4px; background: #fff; font-family: inherit; font-size: .78rem; }

.confirmation { padding: 16px; border: 1px solid #c4d1df; border-radius: 11px; background: #f7fafe; }
.confirmation label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.confirmation input { width: 19px; height: 19px; flex: 0 0 19px; margin: 3px 0 0; accent-color: var(--blue); }
.confirmation span { color: #3f4c5f; font-size: .89rem; }
.confirmation strong { color: var(--ink); }

.submit-area { text-align: center; }
.submit-button { position: relative; width: 100%; min-height: 54px; padding: 12px 22px; color: #fff; border: 0; border-radius: 10px; background: var(--blue); box-shadow: 0 8px 20px rgba(31,111,235,.24); font-weight: 800; cursor: pointer; transition: background .15s, transform .15s; }
.submit-button:hover:not(:disabled) { background: var(--blue-dark); transform: translateY(-1px); }
.submit-button:disabled { opacity: .65; cursor: wait; }
.submit-area p { margin: 9px 0 0; color: var(--muted); font-size: .78rem; }
.spinner { display: none; width: 19px; height: 19px; margin-left: 9px; vertical-align: -4px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { display: none; padding: 16px; border-radius: 9px; font-size: .92rem; font-weight: 650; outline: none; }
.result.visible { display: block; }
.result > p { margin: 0; }
.result.success { color: #075d40; border: 1px solid #a8ddc9; background: var(--success-bg); }
.result.error { color: #8f1c14; border: 1px solid #efb5b0; background: var(--danger-bg); }
.result.info { color: #234f87; border: 1px solid #b9d2ee; background: #eef6ff; }
.payment-processing { display: flex; align-items: flex-start; gap: 16px; text-align: left; }
.processing-spinner { width: 26px; height: 26px; flex: 0 0 26px; margin-top: 2px; border: 3px solid #c5daf1; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.payment-processing strong { display: block; color: #183f70; font-size: 1rem; }
.payment-processing p { margin: 4px 0 0; color: #315f94; font-weight: 650; line-height: 1.45; }
.payment-processing small { display: block; margin-top: 8px; color: #587594; font-size: .78rem; font-weight: 600; line-height: 1.45; }
.payment-offer { margin-top: 16px; padding: 18px; color: var(--ink); border: 1px solid #c9d6e6; border-radius: 11px; background: #fff; text-align: left; }
.payment-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.payment-title-row strong { display: block; margin-top: 3px; font-size: 1rem; }
.payment-kicker { display: block; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.payment-price { flex: 0 0 auto; color: var(--ink); font-size: 1.3rem; font-weight: 850; white-space: nowrap; }
.payment-offer ul { margin: 14px 0; padding-left: 20px; color: #44536a; font-size: .86rem; font-weight: 600; }
.payment-offer li + li { margin-top: 6px; }
.payment-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; cursor: pointer; }
.payment-consent input { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: var(--blue); }
.payment-consent span { color: #37465b; font-size: .8rem; font-weight: 600; line-height: 1.45; }
.paypal-button { width: 100%; min-height: 50px; margin-top: 14px; padding: 11px 16px; color: #111820; border: 0; border-radius: 9px; background: #ffc439; box-shadow: 0 6px 16px rgba(0,48,135,.14); font-weight: 750; cursor: pointer; }
.paypal-button b { color: #003087; font-size: 1.08rem; font-style: italic; }
.paypal-button:hover:not(:disabled) { background: #f2ba36; }
.paypal-button:disabled { opacity: .55; cursor: not-allowed; }
.paypal-button.loading { color: transparent; position: relative; }
.paypal-button.loading::after { content: ''; position: absolute; inset: 50% auto auto 50%; width: 20px; height: 20px; margin: -10px; border: 2px solid rgba(0,48,135,.3); border-top-color: #003087; border-radius: 50%; animation: spin .8s linear infinite; }
.payment-note { margin: 10px 0 0 !important; color: var(--muted); font-size: .76rem; font-weight: 600; text-align: center; }
.payment-note a { color: var(--blue); }
.retry-payment-button { width: 100%; min-height: 46px; margin-top: 14px; color: #fff; border: 0; border-radius: 8px; background: var(--blue); font-weight: 800; cursor: pointer; }
.code-result { margin-top: 15px; color: var(--ink); }
.code-result label { display: block; margin-bottom: 7px; font-weight: 800; }
.code-result textarea { min-height: 150px; padding: 12px; border-color: #9bcdbb; background: #fff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; overflow-wrap: anywhere; }
.copy-code-button { width: 100%; min-height: 46px; margin-top: 9px; color: #fff; border: 0; border-radius: 8px; background: var(--green); font-weight: 800; cursor: pointer; }
.copy-code-button:hover { filter: brightness(.94); }
.code-result small { display: block; margin-top: 8px; color: #3f6658; font-weight: 600; text-align: center; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

footer { padding: 0 16px 40px; color: var(--muted); text-align: center; font-size: .88rem; }
footer p { margin: 0; }
footer a { color: var(--blue); font-weight: 700; }

@media (max-width: 860px) {
    .page-shell { grid-template-columns: 1fr; padding-top: 30px; }
    .intro { position: static; padding: 0; }
    h1 { max-width: 650px; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .steps li { align-items: flex-start; }
}

@media (max-width: 620px) {
    .page-shell { width: min(100% - 20px, 580px); gap: 24px; }
    .form-card { padding: 22px 17px; border-radius: 16px; }
    form { grid-template-columns: 1fr; }
    .field, .full { grid-column: 1; }
    .steps { grid-template-columns: 1fr; }
    .input-action { display: grid; }
    .paste-button { min-height: 44px; }
    .choice-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
