:root {
    color-scheme: light;
    --ink: #10233f;
    --muted: #61718a;
    --line: #dfe7f1;
    --surface: #ffffff;
    --surface-soft: #f5f8fc;
    --brand: #165dff;
    --brand-dark: #0d47d9;
    --success: #087a55;
    --danger: #bd2c3f;
    --warning: #9a5a00;
    --shadow: 0 22px 60px rgba(27, 61, 106, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 4%, rgba(22, 93, 255, 0.13), transparent 28rem),
        radial-gradient(circle at 92% 26%, rgba(50, 199, 167, 0.10), transparent 24rem),
        #f3f6fb;
    color: var(--ink);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

button,
input {
    font: inherit;
}

.page-shell {
    width: min(960px, calc(100% - 32px));
    margin: 48px auto 24px;
}

.hero {
    padding: 12px 4px 28px;
}

.hero__eyebrow,
.section-kicker {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero__title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 6px;
    font-size: clamp(2rem, 5vw, 3.35rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.hero p {
    margin-bottom: 0;
    color: var(--muted);
}

.status-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(8, 122, 85, 0.18);
    border-radius: 999px;
    background: rgba(232, 250, 242, 0.88);
    color: var(--success);
    font-size: 0.82rem;
    font-weight: 700;
}

.status-chip span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #17b77d;
    box-shadow: 0 0 0 5px rgba(23, 183, 125, 0.12);
}

.notice,
.privacy-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid #f0d59f;
    border-radius: 16px;
    background: #fffaf0;
    color: #714700;
}

.notice p,
.privacy-note p {
    margin: 2px 0 0;
}

.notice__icon {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    border-radius: 8px;
    background: #f5a623;
    color: #fff;
    font-weight: 900;
}

code {
    padding: 0.1em 0.38em;
    border-radius: 5px;
    background: rgba(16, 35, 63, 0.08);
    color: inherit;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.9em;
}

.form-card {
    overflow: hidden;
    border: 1px solid rgba(213, 224, 238, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.form-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px 22px;
    border-bottom: 1px solid var(--line);
}

.form-card h2 {
    margin: 2px 0 0;
    font-size: 1.45rem;
}

.area-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--muted);
    font-size: 0.78rem;
}

.area-badge strong {
    color: var(--ink);
    font-size: 1rem;
}

form {
    padding: 28px 32px 32px;
}

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

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

.field label,
.label-row {
    font-size: 0.9rem;
    font-weight: 750;
}

.label-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.label-row span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.field input {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 11px 13px;
    border: 1px solid #cfd9e6;
    border-radius: 11px;
    outline: none;
    background: #fbfcfe;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.11);
}

.field input::placeholder {
    color: #9aa8ba;
}

.field small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.78rem;
}

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 10px;
}

.captcha-image-button {
    overflow: hidden;
    min-height: 48px;
    margin-top: 8px;
    padding: 0;
    border: 1px solid #cfd9e6;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}

.captcha-image-button:hover,
.captcha-image-button:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.11);
}

.captcha-image-button img {
    display: block;
    width: 100%;
    height: 48px;
    object-fit: cover;
}

.form-status {
    margin-top: 24px;
    padding: 13px 15px;
    border-radius: 11px;
    font-size: 0.92rem;
    font-weight: 650;
}

.form-status--success {
    border: 1px solid #a7dfcb;
    background: #edfbf6;
    color: var(--success);
}

.form-status--error {
    border: 1px solid #efb8c0;
    background: #fff2f4;
    color: var(--danger);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.form-actions p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.submit-button {
    min-width: 170px;
    min-height: 48px;
    padding: 11px 20px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand), #397afc);
    box-shadow: 0 9px 20px rgba(22, 93, 255, 0.25);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(22, 93, 255, 0.31);
}

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

.privacy-note {
    margin-top: 18px;
    border-color: #dbe5f1;
    background: rgba(248, 250, 253, 0.92);
    color: var(--muted);
    font-size: 0.82rem;
}

.privacy-note strong {
    flex: 0 0 auto;
    color: var(--ink);
}

footer {
    padding: 12px 16px 30px;
    color: #7f8da0;
    text-align: center;
    font-size: 0.78rem;
}

[hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 20px, 960px);
        margin-top: 22px;
    }

    .hero__title-row,
    .form-card__header,
    .form-actions {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .status-chip {
        margin-top: 8px;
    }

    .area-badge {
        align-items: flex-start;
    }

    .form-card__header,
    form {
        padding-right: 20px;
        padding-left: 20px;
    }

    .submit-button {
        width: 100%;
    }
}

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

    .captcha-image-button {
        width: 100%;
    }
}

