/* Website Studio theme: black, yellow, grey. Shared by the survey and the dashboard. */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: #161616;
  --surface-2: #1d1d1d;
  --line: #2a2a2a;
  --line-2: #3a3a3a;

  --yellow: #ffd400;
  --yellow-2: #ffe14d;
  --yellow-dim: rgba(255, 212, 0, 0.12);
  --yellow-line: rgba(255, 212, 0, 0.35);
  --on-yellow: #0a0a0a;

  --text: #f2f2f2;
  --text-2: #b3b3b3;
  --text-3: #7a7a7a;

  --radius: 12px;
  --radius-sm: 8px;
  --focus: 0 0 0 3px rgba(255, 212, 0, 0.25);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

.page {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}

/* Header */
.hero { margin-bottom: 32px; }

.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-yellow);
  background: var(--yellow);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.lead {
  color: var(--text-2);
  font-size: 16px;
  max-width: 620px;
  margin: 0;
}

/* Card */
.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form { padding: 8px 32px 32px; }

/* Sections */
.section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }

.section-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.section-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.section-head p { margin: 2px 0 0; color: var(--text-3); font-size: 14px; }

.step-num {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  color: var(--on-yellow);
  background: var(--yellow);
}

/* Fields */
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.grid .field { margin-bottom: 0; }

label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.req { color: var(--yellow); }

input[type="text"], input[type="email"], input[type="url"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, textarea:focus, select:focus {
  border-color: var(--yellow);
  box-shadow: var(--focus);
}
textarea { resize: vertical; min-height: 90px; }

.field.invalid input, .field.invalid textarea { border-color: var(--yellow); box-shadow: var(--focus); }
.error { display: none; font-size: 13px; color: var(--yellow); }
.field.invalid .error { display: block; }
.hint-row { display: flex; justify-content: space-between; align-items: center; min-height: 18px; }
.counter { font-size: 12px; color: var(--text-3); margin-left: auto; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--line-2);
  transition: all .15s;
  user-select: none;
}
.chip:hover span { border-color: var(--text-3); color: var(--text); }
.chip input:checked + span {
  color: var(--on-yellow);
  background: var(--yellow);
  border-color: var(--yellow);
  font-weight: 600;
}
.chip input:focus-visible + span { box-shadow: var(--focus); }

.checkline { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; color: var(--text-2); }
.checkline input { width: 18px; height: 18px; accent-color: var(--yellow); margin: 0; }

.color-row { display: flex; gap: 10px; align-items: center; }
input[type="color"] {
  flex: none;
  width: 48px; height: 46px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { border-color: var(--text-3); background: #242424; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  color: var(--on-yellow);
  border-color: var(--yellow);
  background: var(--yellow);
}
.btn-primary:hover { background: var(--yellow-2); border-color: var(--yellow-2); }

.btn-ghost { background: transparent; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  flex-wrap: wrap;
}
.fineprint { margin: 0; color: var(--text-3); font-size: 13px; max-width: 440px; }

/* Success */
.success { padding: 44px 32px; text-align: center; }
.success h2 { margin: 0 0 10px; font-size: 26px; }
.success p { margin: 6px 0; color: var(--text-2); }
.success code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--line-2);
}
.muted { color: var(--text-3) !important; }
.check {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--on-yellow);
  background: var(--yellow);
}
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

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

@media (max-width: 640px) {
  .page { padding: 36px 16px 56px; }
  .form { padding: 4px 18px 22px; }
  .grid.two { grid-template-columns: 1fr; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .success { padding: 32px 18px; }
}

/* File upload */
.dropzone {
  display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center;
  padding: 22px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
  color: var(--text-3); font-size: 13px; cursor: pointer; transition: all .15s;
}
.dropzone strong { color: var(--text); font-size: 14px; }
.dropzone:hover, .dropzone.over { border-color: var(--yellow); background: var(--yellow-dim); }
.file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.file-item { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.file-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.file-item .doc { display: grid; place-items: center; aspect-ratio: 4 / 3; font-size: 12px; font-weight: 700; color: var(--yellow); }
.file-item .fname { padding: 6px 8px; font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .rm {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 4px; border: 0;
  background: rgba(0,0,0,.75); color: #fff; font-size: 14px; line-height: 1; cursor: pointer;
}
.file-item .rm:hover { background: var(--yellow); color: var(--on-yellow); }
