.survey-form {
  max-width: 480px;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-group label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
}

.url-row {
  display: flex;
  gap: 0.5rem;
}

.url-row input {
  flex: 1;
}

input[type="url"],
input[type="email"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--transition);
}

input[type="url"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--link);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--link);
  color: var(--link);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: var(--link);
  color: var(--bg);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  font-size: 1rem;
  padding: 0.65rem 1.5rem;
  align-self: flex-start;
}

.qr-area {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
}

#qr-reader {
  width: 100%;
}

#qr-reader video {
  border-radius: 0;
}

.qr-stop-row {
  padding: 0.5rem;
  display: flex;
  justify-content: flex-end;
}

.form-status {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.form-status.success {
  border-color: #4caf50;
  color: #2e7d32;
  background: #f1f8f1;
}

.form-status.error {
  border-color: var(--accent);
  color: var(--accent);
  background: #fdf3f3;
}

.form-status.pending {
  border-color: var(--border);
  color: var(--text-muted);
  background: var(--bg-raised);
}

.code-display[hidden] {
  display: none;
}

.code-display {
  max-width: 480px;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-raised);
  border: 1px solid #4caf50;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.code-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-value {
  font-family: monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-heading);
}
