/* CSS custom properties — set by form.js from /api/config */
:root {
  --accent: #00A890;
  --bg: #041616;
  --text: #e8f0ef;
  --text-muted: #8aa8a3;
  --surface: #0a2020;
  --border: #1a3030;
  --font: 'Inter', system-ui, sans-serif;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
}

.container { width: 100%; max-width: 560px; }

.header { margin-bottom: 1.5rem; }

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 1rem;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.tab--active { color: var(--accent); border-bottom-color: var(--accent); }

.field { margin-bottom: 1.25rem; }

.label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; }

.optional { font-weight: 400; color: var(--text-muted); }

.input, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}

.input:focus, .textarea:focus { border-color: var(--accent); }
.textarea { resize: vertical; }

.hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.link { color: var(--accent); }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.15s;
}

.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.state { text-align: center; padding: 2rem 0; }
.state__message { margin-bottom: 1rem; }

.btn-retry {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 0.5rem 1.5rem;
  font-family: var(--font);
  cursor: pointer;
}
