/* ============================================================
   Gott Content — LinkedIn Authority Intro Call form
   Brand tokens (edit here to re-theme the whole form)
   ============================================================ */
:root {
  --bg: #000000;
  --surface: #111113;
  --surface-2: #161618;
  --text: #f4f4f5;
  --muted: #8a8a92;
  --accent: #c75c5c;          /* coral red — matches the "G" mark */
  --accent-hover: #d56d6d;
  --accent-contrast: #ffffff;
  --border: #2a2a2e;
  --border-strong: #3a3a40;
  --radius: 12px;
  --radius-sm: 9px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          Helvetica, Arial, sans-serif;
  --maxw: 600px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; }

/* ---------- shell + progress ---------- */
.form-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--surface);
  z-index: 10;
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-inner {
  width: 100%;
  max-width: var(--maxw);
  padding: clamp(28px, 6vw, 64px) 24px 80px;
  margin: 0 auto;
}

/* ---------- brand ---------- */
.brand { margin-bottom: clamp(28px, 6vw, 48px); }
.brand__logo { width: 64px; height: 64px; display: block; object-fit: contain; }

/* "Insert logo" placeholder — shown only until assets/logo.png exists */
.brand__placeholder {
  align-items: center;
  gap: 10px;
  min-width: 64px;
  min-height: 64px;
  padding: 10px 14px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
}
.brand__placeholder svg { width: 26px; height: 26px; flex: none; }
.brand__placeholder code {
  font-size: 0.72rem;
  color: var(--accent);
}

/* ---------- steps ---------- */
.step-container { position: relative; }

.step {
  animation: stepIn 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 26px;
  transition: color 0.15s;
}
.step__back:hover { color: var(--text); }
.step__back svg { width: 15px; height: 15px; }

.step__title {
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 6px;
}
.step__req { color: var(--accent); margin-left: 2px; }

.step__desc {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 8px;
}

.step__hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 6px 0 0;
}

/* ---------- welcome step ---------- */
.welcome__title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.welcome__desc {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 32px;
  max-width: 46ch;
}

/* ---------- choice options ---------- */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 26px 0 0;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.06s;
}
.option:hover { border-color: var(--border-strong); background: var(--surface-2); }
.option:active { transform: scale(0.992); }
.option__key {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.15s;
}
.option.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.option.is-selected .option__key {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.option__check {
  margin-left: auto;
  width: 18px; height: 18px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
}
.option.is-selected .option__check { opacity: 1; }

/* ---------- text inputs ---------- */
.fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 26px 0 0;
}
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 13px 15px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.15s;
}
.field input::placeholder { color: var(--muted); opacity: 0.7; }
.field input:focus {
  outline: none;
  border-color: var(--accent);
}
.field input[aria-invalid="true"] { border-color: var(--accent); }
.field__error {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}
.field.has-error .field__error { display: block; }

/* ---------- buttons ---------- */
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.06s;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 11px 20px;
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn .spinner {
  width: 15px; height: 15px;
  border: 2px solid color-mix(in srgb, var(--accent-contrast) 35%, transparent);
  border-top-color: var(--accent-contrast);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- final / thank-you screens ---------- */
.done {
  text-align: left;
  animation: stepIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.done__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.done__icon svg { width: 28px; height: 28px; color: var(--accent); }
.done__title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.done__desc {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 44ch;
  margin: 0 0 30px;
}

/* ---------- responsive ---------- */
@media (max-width: 520px) {
  .form-inner { padding-top: 28px; }
  .step__title { font-size: 1.35rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .step, .done, .progress__bar { animation: none; transition: none; }
}
