:root {
    color-scheme: light;
    --background: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f8f8fd;
    --text: #151628;
    --text-soft: #65677c;
    --text-faint: #8b8da1;
    --primary: #5b5ce2;
    --primary-dark: #4849c7;
    --primary-soft: #eeeeff;
    --border: #e5e6ef;
    --border-strong: #d4d5e2;
    --danger: #c92a3b;
    --danger-soft: #fff2f3;
    --success: #168554;
    --success-soft: #eaf8f1;
    --shadow: 0 24px 70px rgba(35, 36, 74, 0.1), 0 3px 12px rgba(35, 36, 74, 0.04);
    --radius-large: 24px;
    --radius-medium: 14px;
    --radius-small: 10px;
    font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--background);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
textarea {
    font: inherit;
}

button,
label,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.site-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.site-header {
    display: flex;
    width: min(1180px, calc(100% - 64px));
    min-height: 88px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.22;
}

.brand-copy strong {
    font-size: 16px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.brand-copy span {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 11px;
    letter-spacing: 0.1em;
}

.header-note {
    color: var(--text-faint);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.main-content {
    display: grid;
    width: min(1120px, calc(100% - 64px));
    margin: auto;
    padding: 72px 0 80px;
    align-items: start;
    grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
    gap: clamp(64px, 8vw, 118px);
}

.intro {
    position: sticky;
    top: 70px;
    padding-top: 76px;
}

.eyebrow,
.section-kicker {
    margin: 0;
    color: var(--primary);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.17em;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow span {
    width: 24px;
    height: 1px;
    background: var(--primary);
}

.intro h1 {
    max-width: 470px;
    margin: 22px 0 24px;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 730;
    letter-spacing: -0.055em;
    line-height: 1.12;
}

.intro-copy {
    max-width: 430px;
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.9;
}

.feedback-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface);
    box-shadow: var(--shadow);
}

#form-panel {
    padding: 42px;
}

.card-heading {
    display: flex;
    margin-bottom: 34px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.card-heading h2,
.success-panel h2 {
    margin: 5px 0 0;
    font-size: 27px;
    font-weight: 720;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.required-note {
    color: var(--text-faint);
    font-size: 12px;
    white-space: nowrap;
}

.required-note b,
.form-group label > span,
.form-group legend > span {
    color: var(--danger);
    font-weight: 700;
}

.form-alert {
    margin: -12px 0 24px;
    padding: 12px 14px;
    border: 1px solid #ffd1d6;
    border-radius: var(--radius-small);
    color: var(--danger);
    background: var(--danger-soft);
    font-size: 13px;
}

.form-group {
    min-width: 0;
    margin: 0 0 27px;
    padding: 0;
    border: 0;
}

.form-group label,
.form-group legend {
    display: block;
    margin-bottom: 9px;
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
}

.form-group label em {
    display: inline-block;
    margin-left: 7px;
    padding: 1px 7px;
    border-radius: 999px;
    color: var(--text-faint);
    background: #f2f2f6;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.06em;
    vertical-align: 2px;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.label-row label {
    margin-bottom: 9px;
}

.character-count {
    color: var(--text-faint);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.type-option {
    margin: 0 !important;
    cursor: pointer;
}

.type-option input {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.type-option-body {
    display: grid;
    min-height: 92px;
    padding: 17px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    gap: 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.type-option:hover .type-option-body {
    border-color: #c6c7ec;
    transform: translateY(-1px);
}

.type-option input:focus-visible + .type-option-body {
    outline: 3px solid rgba(91, 92, 226, 0.18);
    outline-offset: 2px;
}

.type-option input:checked + .type-option-body {
    border-color: var(--primary);
    background: #fbfbff;
    box-shadow: 0 0 0 1px var(--primary);
}

.type-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    font-size: 17px;
    font-weight: 800;
}

.type-icon-suggestion {
    color: #5b5ce2;
    background: #eeeeff;
}

.type-icon-feedback {
    color: #c76917;
    background: #fff2e5;
}

.type-option-body strong,
.type-option-body small {
    display: block;
}

.type-option-body strong {
    margin-bottom: 2px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.type-option-body small {
    overflow: hidden;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 450;
    line-height: 1.45;
    text-overflow: ellipsis;
}

.selection-dot {
    width: 15px;
    height: 15px;
    border: 1.5px solid var(--border-strong);
    border-radius: 50%;
    background: #ffffff;
}

.type-option input:checked + .type-option-body .selection-dot {
    border: 4px solid var(--primary);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-small);
    outline: 0;
    color: var(--text);
    background: #ffffff;
    font-size: 14px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

input[type="text"],
input[type="email"] {
    height: 48px;
    padding: 0 14px;
}

textarea {
    min-height: 150px;
    padding: 13px 14px;
    line-height: 1.7;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #a2a4b2;
    opacity: 1;
}

input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover {
    border-color: #b9bac9;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 92, 226, 0.12);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(201, 42, 59, 0.08);
}

.input-with-icon {
    position: relative;
}

.input-with-icon > span {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    color: var(--text-faint);
    font-size: 15px;
    transform: translateY(-50%);
}

.input-with-icon input {
    padding-left: 39px;
}

.field-hint {
    margin: 7px 0 0;
    color: var(--text-faint);
    font-size: 11px;
    line-height: 1.55;
}

.field-error {
    display: block;
    min-height: 0;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
    line-height: 1.45;
}

.field-error:empty {
    display: none;
}

.captcha-row {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(140px, 1fr) 142px auto;
    gap: 10px;
}

.captcha-row img {
    display: block;
    width: 142px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface-soft);
    user-select: none;
}

.refresh-captcha {
    padding: 8px 4px;
    color: var(--primary);
    background: transparent;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
}

.refresh-captcha:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.refresh-captcha:focus-visible,
.site-footer a:focus-visible,
.continue-button:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(91, 92, 226, 0.22);
    outline-offset: 3px;
}

.privacy-note {
    display: flex;
    margin: 2px 0 24px;
    padding: 12px 14px;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #e7e7f2;
    border-radius: var(--radius-small);
    color: var(--text-soft);
    background: #fafafd;
}

.privacy-note > span {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
    place-items: center;
    border: 1px solid #c9cae0;
    border-radius: 50%;
    color: var(--primary);
    font-family: Georgia, serif;
    font-size: 11px;
    font-weight: 700;
}

.privacy-note p {
    margin: 0;
    font-size: 11px;
    line-height: 1.65;
}

.submit-button {
    position: relative;
    display: flex;
    width: 100%;
    height: 52px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 10px 22px rgba(91, 92, 226, 0.23);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.submit-button:hover {
    background: var(--primary-dark);
    box-shadow: 0 12px 26px rgba(72, 73, 199, 0.28);
    transform: translateY(-1px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:focus-visible {
    outline: 3px solid rgba(91, 92, 226, 0.25);
    outline-offset: 3px;
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.75;
    transform: none;
}

.button-arrow {
    position: absolute;
    right: 18px;
    font-size: 19px;
    font-weight: 400;
    transition: transform 150ms ease;
}

.submit-button:hover .button-arrow {
    transform: translateX(3px);
}

.button-loader {
    display: none;
    width: 17px;
    height: 17px;
    margin-left: 9px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.submit-button.is-loading .button-loader {
    display: inline-block;
}

.submit-button.is-loading .button-arrow {
    display: none;
}

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

.success-panel {
    min-height: 610px;
    padding: 72px 42px;
    text-align: center;
}

.success-mark {
    display: grid;
    width: 82px;
    height: 82px;
    margin: 78px auto 28px;
    place-items: center;
    border-radius: 50%;
    color: var(--success);
    background: var(--success-soft);
    box-shadow: 0 0 0 11px #f6fcf9;
}

.success-mark span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
}

.success-panel .section-kicker {
    color: var(--success);
}

.success-panel h2 {
    margin-top: 8px;
    font-size: 31px;
}

.success-panel > p:not(.section-kicker) {
    margin: 12px 0 30px;
    color: var(--text-soft);
    font-size: 14px;
}

.continue-button {
    display: inline-flex;
    height: 44px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--text);
    background: #ffffff;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.continue-button:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fbfbff;
}

.site-footer {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 24px 0 28px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 12px;
    text-align: center;
}

.site-footer p {
    display: flex;
    margin: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 9px;
}

.site-footer a {
    color: #686a86;
    text-decoration: none;
    transition: color 140ms ease;
}

.site-footer a:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

@media (max-width: 940px) {
    .main-content {
        width: min(680px, calc(100% - 48px));
        padding-top: 54px;
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .intro {
        position: static;
        padding-top: 0;
        text-align: center;
    }

    .eyebrow {
        justify-content: center;
    }

    .intro h1,
    .intro-copy {
        margin-right: auto;
        margin-left: auto;
    }

    .intro h1 {
        font-size: clamp(40px, 8vw, 58px);
    }
}

@media (max-width: 620px) {
    .site-header,
    .main-content,
    .site-footer {
        width: calc(100% - 32px);
    }

    .site-header {
        min-height: 76px;
    }

    .header-note {
        display: none;
    }

    .main-content {
        padding: 42px 0 56px;
        gap: 34px;
    }

    .intro h1 {
        margin-top: 17px;
        margin-bottom: 18px;
        font-size: 39px;
    }

    .intro-copy {
        font-size: 15px;
        line-height: 1.8;
    }

    .feedback-card {
        border-radius: 18px;
        box-shadow: 0 16px 42px rgba(35, 36, 74, 0.09);
    }

    #form-panel,
    .success-panel {
        padding: 30px 20px;
    }

    .card-heading {
        margin-bottom: 28px;
    }

    .card-heading h2 {
        font-size: 24px;
    }

    .required-note {
        font-size: 11px;
    }

    .type-options {
        grid-template-columns: 1fr;
    }

    .type-option-body {
        min-height: 80px;
    }

    .captcha-row {
        grid-template-columns: minmax(118px, 1fr) 128px;
    }

    .captcha-row img {
        width: 128px;
        object-fit: cover;
    }

    .refresh-captcha {
        grid-column: 2;
        justify-self: center;
        margin-top: -6px;
    }

    .success-panel {
        min-height: 540px;
    }

    .success-mark {
        margin-top: 72px;
    }

    .site-footer {
        padding: 22px 0 24px;
        font-size: 11px;
    }

    .site-footer p {
        flex-direction: column;
        gap: 3px;
    }
}

@media (max-width: 390px) {
    .captcha-row {
        grid-template-columns: 1fr;
    }

    .captcha-row img {
        width: 142px;
    }

    .refresh-captcha {
        margin-top: 0;
        grid-column: 1;
        justify-self: start;
    }
}

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