:root {
    --orion-purple-1: #7357df;
    --orion-purple-2: #9b82ff;
    --orion-purple-dark: #5b36d6;
    --orion-purple-soft: #ede8ff;
    --orion-ink: #1d2140;
    --orion-muted: #72789b;
    --orion-line: #dddff1;
    --orion-white: #ffffff;
    --orion-bg: #f5f6fc;
    --orion-shadow: rgba(70, 47, 149, 0.16);
    --success: #067647;
    --success-bg: #ecfdf3;
    --success-line: #b7ebc8;
    --error: #b42318;
    --error-bg: #fff1f2;
    --error-line: #fecdd3;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--orion-ink);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    background:
        radial-gradient(circle at top left, rgba(123, 87, 243, 0.13), transparent 27rem),
        radial-gradient(circle at bottom right, rgba(91, 54, 214, 0.1), transparent 32rem),
        linear-gradient(180deg, #f8f8ff 0%, #eef1fb 100%);
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(221, 223, 241, 0.8);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
}

.topbar-inner {
    width: min(100% - 32px, 960px);
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--orion-ink);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(91, 54, 214, 0.2);
}

.topbar-label {
    color: var(--orion-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.page-shell {
    width: min(100% - 32px, 900px);
    margin: 0 auto;
    padding: 56px 0 32px;
}

.hero {
    max-width: 720px;
    margin: 0 auto 30px;
    text-align: center;
}

.eyebrow,
.card-kicker {
    color: var(--orion-purple-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(2rem, 6vw, 3.25rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.hero p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--orion-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.combined-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
    margin: 0 0 28px;
}

.info-note {
    padding: 22px;
    border: 1px solid var(--orion-line);
    border-top: 4px solid var(--orion-purple-1);
    border-radius: 18px;
    background: var(--orion-white);
    box-shadow: 0 14px 34px rgba(70, 47, 149, 0.12);
}

.notice-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.notice-divider {
    width: 1px;
    background: var(--orion-line);
}

.info-note-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--orion-purple-dark);
    background: var(--orion-purple-soft);
    font-size: 0.9rem;
    font-weight: 900;
}

.success-note-icon,
.privacy-note .info-note-icon {
    color: var(--success);
    background: var(--success-bg);
}

.info-note h2 {
    margin: 1px 0 7px;
    font-size: 1.04rem;
    letter-spacing: -0.015em;
}

.info-note p {
    margin: 0;
    color: #575d80;
    font-size: 0.88rem;
    line-height: 1.55;
}

.info-note a {
    color: var(--orion-purple-dark);
    font-weight: 700;
    text-underline-offset: 2px;
}

.info-note a:hover {
    color: var(--orion-purple-1);
}

.card,
.alert {
    border: 1px solid var(--orion-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px var(--orion-shadow);
}

.card {
    padding: clamp(22px, 4vw, 34px);
}

.lookup-card {
    width: 100%;
    max-width: none;
    margin: 0;
}

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

.section-heading.compact {
    margin-bottom: 24px;
}

.section-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--orion-purple-dark);
    background: var(--orion-purple-soft);
    font-weight: 800;
}

.section-heading h2 {
    margin: 0 0 5px;
    font-size: 1.3rem;
    letter-spacing: -0.025em;
}

.section-heading p,
.submit-section p {
    margin: 0;
    color: var(--orion-muted);
    line-height: 1.5;
}

.field {
    margin-top: 20px;
}

.field:first-child {
    margin-top: 0;
}

.field label,
.choice-group legend {
    display: block;
    margin-bottom: 9px;
    color: var(--orion-ink);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.45;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--orion-line);
    border-radius: 13px;
    outline: none;
    color: var(--orion-ink);
    background: #fbfbff;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input {
    min-height: 50px;
    padding: 0 15px;
}

.field textarea {
    min-height: 112px;
    padding: 13px 15px;
    line-height: 1.5;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--orion-purple-1);
    background: var(--orion-white);
    box-shadow: 0 0 0 4px rgba(115, 87, 223, 0.13);
}

.field small {
    display: block;
    margin-top: 8px;
    color: var(--orion-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

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

.field-grid .field {
    margin-top: 0;
}

.primary-button {
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
    padding: 12px 22px;
    border: 0;
    border-radius: 14px;
    color: var(--orion-white);
    background: linear-gradient(135deg, var(--orion-purple-dark) 0%, #7b57f3 100%);
    box-shadow: 0 12px 24px rgba(91, 54, 214, 0.22);
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(91, 54, 214, 0.27);
}

.primary-button:focus-visible,
.text-button:focus-visible,
.choice-card:has(input:focus-visible) {
    outline: 3px solid rgba(115, 87, 223, 0.28);
    outline-offset: 3px;
}

.primary-button.large {
    max-width: 360px;
    margin: 16px auto 0;
}

.alert {
    margin: 0 0 22px;
    padding: 18px 20px;
}

.alert-error {
    border-color: var(--error-line);
    color: var(--error);
    background: var(--error-bg);
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
    line-height: 1.5;
}

.company-card {
    margin-bottom: 22px;
    border-color: rgba(115, 87, 223, 0.25);
    background: linear-gradient(145deg, #ffffff 0%, #f7f5ff 100%);
}

.company-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--orion-line);
}

.company-card h2 {
    margin: 6px 0 0;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.document-pill {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 999px;
    color: var(--orion-purple-dark);
    background: var(--orion-purple-soft);
    font-size: 0.84rem;
    font-weight: 800;
}

.company-data {
    display: grid;
    gap: 18px;
    margin: 22px 0 0;
}

.company-data div {
    display: grid;
    grid-template-columns: minmax(140px, 0.32fr) 1fr;
    gap: 16px;
}

.company-data dt {
    color: var(--orion-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.company-data dd {
    margin: 0;
    line-height: 1.55;
    font-weight: 650;
}

.change-company-form {
    margin-top: 18px;
    text-align: right;
}

.text-button {
    padding: 8px 0;
    border: 0;
    color: var(--orion-purple-dark);
    background: transparent;
    font-weight: 750;
}

.questionnaire {
    display: grid;
    gap: 22px;
}

.form-section {
    box-shadow: 0 12px 34px rgba(70, 47, 149, 0.11);
}

.choice-group {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.choice-group.spaced,
.spaced {
    margin-top: 30px;
}

.choice-card {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--orion-line);
    border-radius: 13px;
    background: #fbfbff;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.choice-card:hover {
    border-color: rgba(115, 87, 223, 0.45);
    background: #f8f6ff;
}

.choice-card:has(input:checked) {
    border-color: var(--orion-purple-1);
    background: var(--orion-purple-soft);
    box-shadow: 0 0 0 2px rgba(115, 87, 223, 0.08);
}

.choice-card input {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--orion-purple-1);
}

.choice-card span {
    line-height: 1.45;
}

.conditional {
    padding: 18px;
    border-radius: 15px;
    background: var(--orion-bg);
}

.submit-section {
    padding: 12px 0 16px;
    text-align: center;
}

.success-card {
    max-width: 650px;
    margin: 0 auto;
    border-color: var(--success-line);
    text-align: center;
    background: linear-gradient(145deg, #ffffff 0%, var(--success-bg) 100%);
}

.success-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--success);
    font-size: 1.8rem;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(6, 118, 71, 0.2);
}

.success-card h2 {
    margin: 0 0 10px;
    font-size: 1.6rem;
}

.success-card p {
    margin: 0;
    color: var(--orion-muted);
    line-height: 1.6;
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

footer {
    padding: 34px 0 0;
    color: var(--orion-muted);
    font-size: 0.86rem;
    text-align: center;
}

@media (max-width: 700px) {
    .page-shell {
        width: min(100% - 24px, 900px);
        padding-top: 38px;
    }

    .topbar-inner {
        width: calc(100% - 24px);
    }

    .topbar-label {
        font-size: 0.8rem;
    }

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

    .combined-note {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .notice-divider {
        width: 100%;
        height: 1px;
    }

    .company-card-top,
    .company-data div {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .document-pill {
        align-self: flex-start;
    }
}

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

