:root {
    --purple: #583f99;
    --purple-dark: #3d286f;
    --purple-light: #745bb9;
    --purple-pale: #f2effa;
    --ink: #231f20;
    --muted: #68636d;
    --line: #ddd9e4;
    --surface: #ffffff;
    --danger: #b42318;
    --success: #16825d;
    --shadow: 0 28px 70px rgba(35, 31, 32, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: #eeeaf5;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(116, 91, 185, 0.19), transparent 31rem),
        linear-gradient(135deg, #f7f5fb 0%, #e9e3f4 100%);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(34rem, 1.12fr);
    width: min(1180px, calc(100% - 48px));
    min-height: min(780px, calc(100vh - 48px));
    margin: 24px auto;
    overflow: hidden;
    background: var(--surface);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.campaign-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(34px, 5vw, 62px);
    overflow: hidden;
    color: white;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.1) 0%, transparent 27%),
        linear-gradient(145deg, var(--purple-light) 0%, var(--purple) 46%, var(--purple-dark) 100%);
}

.campaign-panel::before {
    content: "";
    position: absolute;
    inset: auto -18% -18% 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
}

.brand-lockup,
.campaign-copy {
    position: relative;
    z-index: 2;
}

.brand-lockup {
    display: inline-flex;
    align-self: flex-start;
    padding: 16px 18px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 25px rgba(28, 17, 59, 0.16);
}

.logo {
    display: block;
    width: min(100%, 260px);
    height: auto;
}

.campaign-copy {
    max-width: 30rem;
    margin: auto 0;
    padding: 72px 0 120px;
}

.eyebrow,
.step-label {
    margin: 0 0 14px;
    color: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow {
    opacity: 0.76;
}

h1,
h2,
p {
    overflow-wrap: break-word;
}

h1 {
    max-width: 8ch;
    margin: 0;
    font-size: clamp(3.4rem, 6.8vw, 6.3rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 0.92;
}

h1 span {
    color: rgba(255, 255, 255, 0.14);
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.92);
}

.lead {
    max-width: 34rem;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    line-height: 1.7;
}

.quick-note {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin-top: 28px;
    padding: 10px 14px 10px 10px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.9rem;
}

.quick-note__icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    background: white;
    border-radius: 50%;
}

.quick-note svg {
    width: 17px;
    fill: none;
    stroke: var(--purple);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.campaign-orbit {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 56%;
    aspect-ratio: 1;
    transform: translate(22%, 26%);
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.orbit--one {
    inset: 4%;
}

.orbit--two {
    inset: 22%;
}

.orbit-dot {
    position: absolute;
    top: 3%;
    left: 48%;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.09);
}

.form-panel {
    display: grid;
    padding: clamp(34px, 5vw, 66px);
    place-items: center;
    background: white;
}

.form-wrap {
    width: min(100%, 560px);
}

.form-heading {
    margin-bottom: 30px;
}

.form-heading .step-label,
.success-state .step-label {
    color: var(--purple);
}

h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.3vw, 2.55rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.form-heading > p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.form-heading > p:last-child span,
label > span[aria-hidden="true"],
.checkbox-row > span:last-child > span {
    color: var(--purple);
    font-weight: 800;
}

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

.field--full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fbfafd;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field input::placeholder {
    color: #aaa5b1;
}

.field input:hover {
    border-color: #bcb5ca;
}

.field input:focus {
    background: white;
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(88, 63, 153, 0.12);
}

.field input[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.09);
}

.field-error {
    display: block;
    min-height: 1.15rem;
    margin-top: 5px;
    color: var(--danger);
    font-size: 0.8rem;
    line-height: 1.35;
}

.consent-box {
    margin-top: 20px;
    padding: 16px;
    background: var(--purple-pale);
    border-radius: 12px;
}

.checkbox-row {
    position: relative;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 11px;
    color: #4e4855;
    cursor: pointer;
    font-size: 0.86rem;
    line-height: 1.55;
}

.checkbox-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.custom-check {
    display: grid;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    place-items: center;
    background: white;
    border: 1.5px solid #aca3bd;
    border-radius: 6px;
    transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.custom-check svg {
    width: 15px;
    fill: none;
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 150ms ease, transform 150ms ease;
}

.checkbox-row input:checked + .custom-check {
    background: var(--purple);
    border-color: var(--purple);
}

.checkbox-row input:checked + .custom-check svg {
    opacity: 1;
    transform: scale(1);
}

.checkbox-row input:focus-visible + .custom-check {
    box-shadow: 0 0 0 4px rgba(88, 63, 153, 0.16);
}

.checkbox-row input[aria-invalid="true"] + .custom-check {
    border-color: var(--danger);
}

.consent-box > .field-error {
    padding-left: 33px;
}

.privacy-details {
    margin: 5px 0 0 33px;
    color: var(--muted);
    font-size: 0.8rem;
}

.privacy-details summary {
    width: fit-content;
    color: var(--purple);
    cursor: pointer;
    font-weight: 700;
}

.privacy-details p {
    margin: 10px 0 0;
    line-height: 1.55;
}

.submit-button {
    display: flex;
    width: 100%;
    min-height: 56px;
    margin-top: 22px;
    padding: 14px 18px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    background: var(--purple);
    border: 0;
    border-radius: 11px;
    box-shadow: 0 12px 24px rgba(88, 63, 153, 0.22);
    cursor: pointer;
    font-weight: 800;
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.submit-button svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 150ms ease;
}

.submit-button:hover:not(:disabled) {
    background: var(--purple-dark);
    box-shadow: 0 15px 28px rgba(61, 40, 111, 0.25);
    transform: translateY(-1px);
}

.submit-button:hover:not(:disabled) svg {
    transform: translateX(3px);
}

.submit-button:focus-visible {
    outline: 3px solid rgba(88, 63, 153, 0.28);
    outline-offset: 3px;
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.submit-button.is-loading svg {
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.submit-button.is-loading svg path {
    opacity: 0;
}

.security-note {
    display: flex;
    margin: 14px 0 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.78rem;
}

.security-note svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.notice {
    margin-bottom: 20px;
    padding: 12px 14px;
    color: #533314;
    background: #fff8eb;
    border: 1px solid #f1d39b;
    border-radius: 10px;
    font-size: 0.9rem;
}

.notice--error {
    color: #7a271a;
    background: #fff1f0;
    border-color: #f5b7b1;
}

.success-state {
    padding: 54px 0;
    text-align: center;
}

.success-state:focus {
    outline: none;
}

.success-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    place-items: center;
    color: white;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(22, 130, 93, 0.1);
}

.success-icon svg {
    width: 38px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.success-state > p:last-child {
    max-width: 31rem;
    margin: 18px auto 0;
    color: var(--muted);
    line-height: 1.7;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

[hidden] {
    display: none !important;
}

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

@media (max-width: 900px) {
    .page-shell {
        grid-template-columns: 1fr;
        width: min(700px, calc(100% - 32px));
        margin: 16px auto;
    }

    .campaign-panel {
        min-height: auto;
        padding: 32px;
    }

    .campaign-copy {
        max-width: none;
        padding: 54px 0 24px;
    }

    h1 {
        max-width: none;
        font-size: clamp(3rem, 12vw, 5.3rem);
    }

    .lead {
        max-width: 38rem;
    }

    .campaign-orbit {
        width: 38%;
    }
}

@media (max-width: 560px) {
    .page-shell {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .campaign-panel,
    .form-panel {
        padding: 26px 20px;
    }

    .brand-lockup {
        padding: 12px 14px;
        border-radius: 11px;
    }

    .logo {
        width: 208px;
    }

    .campaign-copy {
        padding: 40px 0 12px;
    }

    .lead {
        font-size: 1rem;
    }

    .quick-note {
        font-size: 0.82rem;
    }

    .form-panel {
        padding-top: 40px;
        padding-bottom: 40px;
    }

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

    .field--full {
        grid-column: auto;
    }
}

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