:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1a1f36;
  --muted: #697386;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --border: #e3e8ee;
  --error: #dc2626;
  --success: #10b981;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 20px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 64px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.card header { margin-bottom: 24px; }

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.q {
  margin-bottom: 24px;
}

.q > label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}

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

/* NPS */
.nps {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.nps input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nps label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s;
  user-select: none;
}

.nps label:hover {
  border-color: var(--accent);
  background: #f5f5ff;
}

.nps input:checked + label {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.nps input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nps-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* Inputs */
select, input[type="number"], textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: white;
  color: var(--text);
  transition: border-color 0.15s;
}

select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

textarea { resize: vertical; min-height: 90px; }

.currency-input {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.currency-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.currency-input .prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f5f7fa;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}

.currency-input input {
  border: none;
  border-radius: 0;
  flex: 1;
}

.currency-input input:focus { box-shadow: none; }

/* Submit */
button[type="submit"] {
  width: 100%;
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
}

button[type="submit"]:hover:not(:disabled) { background: var(--accent-hover); }

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error {
  color: var(--error);
  font-size: 14px;
  margin: 12px 0 0;
}

.success h1, .error-card h1 { margin-bottom: 16px; }

/* Mobile */
@media (max-width: 480px) {
  .card { padding: 24px 20px; }
  h1 { font-size: 22px; }
  .nps label { font-size: 13px; min-height: 40px; }
}
