:root {
    --bg: #0d1117;
    --panel: #1a2230;
    --line: #2c3644;
    --ink: #eef3f8;
    --ink2: #8b98a7;
    --accent: #ffb02e;
    --accent2: #ff9d1b;
    --error: #ff7a7a;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: radial-gradient(120% 90% at 50% 0%, #1b2431 0%, var(--bg) 60%);
    color: var(--ink);
    font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
}
.shell { max-width: 420px; margin: 0 auto; padding: 20px 18px 32px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.top { text-align: center; margin-bottom: 14px; }
.brand { color: var(--accent); font-weight: 700; letter-spacing: 0.08em; font-size: 14px; text-transform: uppercase; }
.dealer { color: var(--ink2); font-size: 13px; margin-top: 2px; }

.progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.dot { width: 26px; height: 4px; border-radius: 2px; background: var(--line); transition: background 0.3s ease; }
.dot.is-on { background: var(--accent); }

.pane { animation: rise 0.4s ease both; }
.pane[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

h1 { font-size: 24px; line-height: 1.25; margin: 6px 0 16px; }
h1 .thin { color: var(--ink2); font-weight: 400; font-size: 18px; }
.sub { color: var(--ink2); font-size: 14px; margin: 0 0 14px; }
.note { color: var(--ink2); font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.label { color: var(--ink2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
input[type="text"], input[type="tel"], textarea {
    width: 100%;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    color: var(--ink); font-size: 16px; padding: 12px;
    font-family: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 13px; color: var(--ink2); }
.check input { margin-top: 3px; min-width: 20px; min-height: 20px; accent-color: var(--accent); }
.check a { color: var(--accent); }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.photo {
    appearance: none; cursor: pointer;
    background: var(--panel); border: 1px dashed #3a4757; border-radius: 14px;
    color: var(--accent); min-height: 92px; padding: 8px 4px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background-size: cover; background-position: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.photo:hover { transform: translateY(-2px); }
.photo .plus { font-size: 24px; }
.photo .slotname { color: var(--ink2); font-size: 11px; }
.photo.is-set { border: 1px solid var(--accent); text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
.photo.is-set .slotname { color: #fff; background: rgba(0,0,0,0.55); border-radius: 6px; padding: 2px 6px; }

.summary { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 0 16px; }
.summary div { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; }
.summary dt { color: var(--ink2); font-size: 12px; margin: 0; }
.summary dd { margin: 0; font-size: 14px; text-align: right; overflow-wrap: anywhere; }

.cta {
    appearance: none; border: 0; cursor: pointer; display: block; width: 100%;
    background: linear-gradient(135deg, #ffc95c, var(--accent2));
    color: #1c1305; font-weight: 700; font-size: 16px; text-align: center; text-decoration: none;
    padding: 14px 22px; border-radius: 999px; min-height: 48px;
    box-shadow: 0 8px 22px rgba(255, 157, 27, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 6px;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 157, 27, 0.42); }
.cta:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.back {
    appearance: none; border: 0; background: none; cursor: pointer; display: block; width: 100%;
    color: var(--ink2); font-size: 14px; text-decoration: underline; padding: 12px; min-height: 44px; margin-top: 4px;
}
.error { color: var(--error); font-size: 13px; margin: 8px 0; }

.badge {
    width: 72px; height: 72px; border-radius: 50%; margin: 10px auto 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: var(--bg);
    background: radial-gradient(circle at 35% 30%, #ffd97a, var(--accent) 60%, #e8920a);
    box-shadow: 0 0 30px rgba(255, 176, 46, 0.5);
    animation: pop 0.5s ease both;
}
@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

.foot { text-align: center; margin-top: 28px; font-size: 13px; color: var(--ink2); }
.foot a { color: var(--ink2); }

.privacy-hint {
    font-size: 13px;
    color: #9aa4b5;
    line-height: 1.6;
    margin: 14px 0 4px;
}
.privacy-hint a { color: #f5a623; text-decoration: none; }
.privacy-hint a:hover { text-decoration: underline; }

.turnstile { margin: 4px 0 14px; min-height: 0; }
.turnstile:empty { display: none; }
