:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1a1f29;
  --muted: #5d6573;
  --line: #e3e6ec;
  --primary: #1f3a68;
  --primary-hover: #16294a;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 24px 8px;
}
.logo {
  max-width: 320px;
  width: 78%;
  height: auto;
  display: block;
}
.site-header .kicker {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-header h1 {
  margin: 22px 0 0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.intro {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 18px 0;
  box-shadow: var(--shadow);
}
.intro p { margin: 0 0 8px; }
.intro p:last-child { margin-bottom: 0; }

.small { font-size: 13px; }
.muted { color: var(--muted); }

.progress-wrap { margin: 18px 0; }
.progress-track {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%; width: 25%;
  background: var(--primary);
  transition: width 240ms ease;
}
.progress-label {
  font-size: 13px; color: var(--muted);
  margin: 8px 0 0;
}

form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

fieldset.step {
  border: none; padding: 0; margin: 0;
  display: none;
}
fieldset.step.active { display: block; }

legend {
  font-size: 18px; font-weight: 600;
  margin: 0 0 16px; padding: 0;
}

label {
  display: block;
  margin: 14px 0;
}
label > span {
  display: block;
  font-size: 14px; font-weight: 500;
  margin-bottom: 6px;
}
.req { color: #c0392b; }

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,58,104,0.12);
}
textarea { resize: vertical; min-height: 72px; }

/* Custom select chevron — thin V (stroke), matches the native-style chevron
   but positioned inset from the right edge so it doesn't look stuck against
   the border. */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235d6573' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='1,2 6,7 11,2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.checkbox-row span { font-size: 14px; }
.checkbox-row input { margin-top: 3px; }

.upload-block { margin: 18px 0; padding: 0; }
.upload-label {
  margin: 0 0 12px;
  font-size: 14px;
}
.dropzone {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  background: var(--card);
  transition: border-color 120ms ease, background 120ms ease;
  cursor: pointer;
}
.dropzone:hover { border-color: var(--primary); }
.dropzone.dragover {
  border-color: var(--primary);
  background: rgba(31,58,104,0.04);
}
.dropzone-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.dropzone-hint { margin: 6px 0 0; }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover { color: var(--primary-hover); }
.screenshot-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  margin: 10px 0 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.screenshot-row .row {
  display: flex; gap: 10px; align-items: center;
}
.screenshot-row .filename {
  font-size: 13px;
  color: var(--text);
  flex: 1;
}
.screenshot-row textarea { min-height: 50px; }
.screenshot-row .remove-btn {
  background: transparent; border: none;
  color: #c0392b; cursor: pointer;
  font-size: 13px; padding: 4px 8px;
}

.step-nav {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line);
}

.btn {
  font: inherit;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 18px;
  cursor: pointer;
  font-weight: 500;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn.primary {
  background: var(--primary);
  color: white;
}
.btn.primary:hover { background: var(--primary-hover); }
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn.ghost:hover { background: var(--bg); }

.thank-you {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.thank-you h2 { margin: 0 0 10px; color: var(--primary); }

.footer-note {
  text-align: center;
  margin-top: 22px;
}
.footer-note .footer-primary {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.footer-note .footer-secondary {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 540px) {
  .site-header { padding: 18px 16px 6px; }
  .logo { max-width: 220px; width: 70%; }
  .site-header h1 { font-size: 21px; }
  main { padding: 0 16px 40px; }
  form { padding: 18px; }
  .step-nav { flex-direction: column-reverse; }
  .step-nav .btn { width: 100%; }
}
