:root {
  --bg: #08111f;
  --panel: rgba(10, 19, 34, 0.9);
  --panel-2: rgba(14, 26, 46, 0.86);
  --line: rgba(255,255,255,0.08);
  --text: #eff4fb;
  --muted: #9fb1c8;
  --accent: #ff8a00;
  --accent-2: #2b8cff;
  --success: #3ac57a;
  --danger: #ff6c6c;
  --radius: 22px;
  --shadow: 0 18px 60px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(255,138,0,0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(43,140,255,0.16), transparent 50%),
    linear-gradient(180deg, #07101c 0%, #0b1524 100%);
  color: var(--text);
  min-height: 100vh;
}

.bg-glow {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}
.bg-glow-1 { width: 220px; height: 220px; background: var(--accent); top: 10%; left: -60px; }
.bg-glow-2 { width: 260px; height: 260px; background: var(--accent-2); top: 35%; right: -80px; }

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 14px 42px;
}

.hero {
  padding: 10px 4px 22px;
}

.hero-badge {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  color: #d9e7f8;
}

.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: #dfeaf8;
  font-size: 13px;
}

.wizard-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 12px;
}
.step-counter { color: var(--muted); font-size: 13px; }
.step-title { margin-top: 4px; font-size: 22px; font-weight: 800; }

.progress-track {
  height: 7px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .25s ease;
}

form { padding: 18px 16px 16px; }
.step { display: none; }
.step.active { display: block; }
.section-heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

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

label, .label-inline {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #f3f7fc;
}

label span,
.label-inline {
  display: block;
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px;
  font-size: 16px;
  outline: none;
  transition: border-color .18s ease, transform .18s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(43,140,255,0.65);
  transform: translateY(-1px);
}

textarea { resize: vertical; min-height: 120px; }
small { display: block; color: var(--muted); margin-top: 8px; font-size: 12px; line-height: 1.55; }

.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}
.checkbox-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
}
.checkbox-row span { margin: 0; font-weight: 500; color: #dce7f6; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.photo-item {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.review-box {
  display: grid;
  gap: 12px;
}
.review-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
}
.review-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.review-list { display: grid; gap: 8px; }
.review-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  border-bottom: 1px dashed rgba(255,255,255,0.07);
  padding-bottom: 8px;
}
.review-item:last-child { border-bottom: 0; padding-bottom: 0; }
.review-item span:first-child { color: var(--muted); }
.review-item span:last-child { text-align: right; }

.signature-wrap {
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}
canvas {
  display: block;
  width: 100%;
  height: 180px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.wizard-nav,
.submit-panel {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.wizard-nav { position: sticky; bottom: 10px; }
.wizard-nav > *, .submit-panel > * { flex: 1; }

button {
  border: 0;
  border-radius: 16px;
  min-height: 52px;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 16px;
  cursor: pointer;
}
.primary-btn {
  color: white;
  background: linear-gradient(90deg, var(--accent), #ff6200 52%, var(--accent-2));
  box-shadow: 0 12px 28px rgba(0,0,0,0.24);
}
.secondary-btn {
  color: white;
  background: linear-gradient(90deg, rgba(43,140,255,0.8), rgba(43,140,255,0.95));
}
.ghost-btn {
  color: #e9f2ff;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
}
.mt-10 { margin-top: 10px; }

.submit-message {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  display: none;
  font-size: 14px;
  line-height: 1.6;
}
.submit-message.success {
  display: block;
  background: rgba(58,197,122,0.12);
  border: 1px solid rgba(58,197,122,0.32);
  color: #dff7ea;
}
.submit-message.error {
  display: block;
  background: rgba(255,108,108,0.11);
  border: 1px solid rgba(255,108,108,0.3);
  color: #ffe6e6;
}

.invalid {
  border-color: rgba(255,108,108,0.75) !important;
  box-shadow: 0 0 0 3px rgba(255,108,108,0.08);
}

@media (min-width: 720px) {
  .app-shell { padding: 28px 20px 50px; }
  .progress-top { padding: 20px 22px 14px; }
  form { padding: 22px; }
  .grid-1.two-col,
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

.grid-2 { display:grid; grid-template-columns:1fr; gap:14px; }
.full { grid-column: 1 / -1; }
.choice-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}
.choice-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.radio-row { display:flex; gap:10px; }
.radio-row.wrap { flex-wrap:wrap; }
.radio-chip {
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.radio-chip input {
  position:absolute;
  inset:0;
  opacity:0;
}
.radio-chip span { margin:0; }
.radio-chip:has(input:checked) {
  border-color: rgba(43,140,255,0.7);
  box-shadow: inset 0 0 0 1px rgba(43,140,255,0.5);
  background: rgba(43,140,255,0.12);
}
.step-note { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 14px; }
.circumstances-list { display:grid; gap:8px; }
.circ-row {
  display:grid;
  grid-template-columns: 34px 1fr 54px 54px;
  gap:8px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(255,255,255,0.03);
}
.circ-num {
  width:34px;height:34px;border-radius:12px;display:grid;place-items:center;
  background: rgba(255,255,255,0.06); font-weight:800;
}
.circ-label { font-size:14px; line-height:1.35; }
.circ-check {
  display:flex; align-items:center; justify-content:center; gap:6px;
  margin:0; min-height:42px; border-radius:12px; background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08); position:relative;
}
.circ-check input { width:18px; height:18px; }
.sketch-wrap canvas { height: 280px; }
.compact { margin-top: 10px; }
.mt-10 { margin-top:10px; }
.submit-message { margin-top: 12px; font-size: 14px; color: var(--muted); }
.submit-message.success { color: #8df1b5; }
.submit-message.error { color: #ff9a9a; }
.invalid { border-color: rgba(255,108,108,.9) !important; }

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
