:root {
    color-scheme: light;
    --ink: #1c2430;
    --muted: #5c6778;
    --line: #d7deE8;
    --paper: #f3f6f8;
    --card: #ffffff;
    --accent: #0e4d6c;
    --accent-2: #d97706;
    --danger: #8d2b2b;
    --ok: #1f7a4d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font: 16px/1.5 "Segoe UI", "Helvetica Neue", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

.site-header, main {
    width: min(820px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 28px 0 8px;
}

.brand {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.site-header p { margin: 0; color: var(--muted); }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    margin: 16px 0 48px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent-2);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 { margin: 0 0 12px; font-size: 2rem; line-height: 1.15; }
h2 { margin: 0 0 8px; font-size: 1.15rem; }
.lead, .hint, .fine { color: var(--muted); }
.hint { margin: 6px 0 14px; font-size: 0.92rem; }

fieldset {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 20px 0;
    padding: 16px 16px 8px;
}

legend { padding: 0 6px; font-weight: 700; }
.sub { border: 0; padding: 0; margin: 12px 0; }

label { display: block; font-weight: 650; margin: 12px 0 6px; }
.choice { font-weight: 450; display: flex; gap: 10px; align-items: flex-start; }
.choice input { margin-top: 4px; }
.agree { margin-bottom: 12px; }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], select, textarea {
    width: 100%;
    border: 1px solid #b7c2d0;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(14, 77, 108, 0.25);
    border-color: var(--accent);
}

button, .button {
    display: inline-block;
    background: var(--accent);
    color: white;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.banner, .notice {
    background: #fff4f4;
    border: 1px solid #efc2c2;
    color: var(--danger);
    border-radius: 10px;
    padding: 12px 14px;
}

.note {
    background: #f7fafc;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 12px 0;
}

.field-error { color: var(--danger); margin: 4px 0 0; font-size: 0.92rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.link-box { word-break: break-all; background: #f7fafc; padding: 12px; border-radius: 8px; }

.hp {
    position: absolute;
    left: -10000px;
    height: 0;
    overflow: hidden;
}

.steps { list-style: none; padding: 0; margin: 20px 0; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; margin: 0 0 14px; }
.step span {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: #e7eef3; font-weight: 700;
}
.step.current span { background: var(--accent); color: white; }
.step.done span { background: var(--ok); color: white; }
.step p { margin: 2px 0 0; color: var(--muted); }

.meter { height: 10px; background: #e7eef3; border-radius: 999px; overflow: hidden; }
.meter-bar { height: 100%; background: var(--accent); }
.status-label { font-weight: 700; }

@media (max-width: 700px) {
    .split { grid-template-columns: 1fr; }
    .card { padding: 18px; }
}
