/* ── INTAKE FORM — empirra.com/intake ──
   Standalone stylesheet. Nepriklauso nuo styles.css.
   Brand: dark theme, Inter, gold accent.
*/

:root {
  --gold: #C6A96B;
  --gold-h: #D4BB82;
  --gold-dim: #8B6F3A;
  --bg: #0B0B0C;
  --bg2: #0E0E0F;
  --surface: #111114;
  --surface-2: #15151A;
  --text: #F9FAFB;
  --muted: #9CA3AF;
  --muted-2: #6B7280;
  --border: rgba(198, 169, 107, 0.18);
  --border-sub: rgba(198, 169, 107, 0.08);
  --border-str: rgba(198, 169, 107, 0.42);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.08);
}

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

html { scroll-behavior: smooth; }

body.intake-body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.intake-header {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid var(--border-sub);
}
.intake-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.intake-logo:hover { opacity: 0.85; }
.intake-logo img { height: 26px; width: auto; display: block; }
.intake-logo-full { display: none; }
.intake-logo-full img { display: none; }
.intake-logo-mark { display: block; }
@media (min-width: 768px) {
  .intake-logo-full { display: block; }
  .intake-logo-full img { display: block; }
  .intake-logo-mark { display: none; }
}
.intake-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: auto;
  margin-right: 16px;
}

/* ── Language toggle ── */
.lang-toggle {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--border-sub);
  border-radius: 6px;
  overflow: hidden;
}
.lang-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn:hover {
  color: var(--text);
}
.lang-btn.is-active {
  background: var(--gold);
  color: #0B0B0C;
}
.lang-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Main ── */
.intake-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── States (loading, invalid, success, error) ── */
.intake-state {
  text-align: center;
  padding: 80px 16px;
}
.intake-state h1 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.intake-state p {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 24px;
}
.state-text { color: var(--muted-2); font-size: 14px; }
.state-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(198, 169, 107, 0.12);
  color: var(--gold);
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid var(--border-str);
}
.state-meta {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 16px;
}

/* ── Form intro ── */
.intake-intro {
  margin-bottom: 32px;
}
.intake-intro h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.intake-lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.intake-lead strong {
  color: var(--text);
  font-weight: 500;
}
.intake-required-legend {
  font-size: 12px;
  color: #888;
  margin: 8px 0 0;
}

/* ── Progress bar ── */
.progress-wrap {
  margin: 24px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.progress-bar {
  flex: 1;
  height: 3px;
  background: #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(to right, var(--gold-dim), var(--gold));
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.progress-meta {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}

/* ── Section ── */
.section {
  display: none;
  animation: fadeIn 0.3s ease-out;
}
.section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.section-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 32px;
}

/* ── Question block ── */
.q {
  margin-bottom: 28px;
}
.q-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}
.q-required {
  color: var(--gold);
  margin-left: 4px;
}
.q-hint {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  margin: -2px 0 10px;
}
.q-error {
  display: block;
  font-size: 13px;
  color: var(--error);
  margin-top: 8px;
  min-height: 1px;
}

/* ── Inputs ── */
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
input[type="text"]:hover,
input[type="email"]:hover,
input[type="url"]:hover,
textarea:hover,
select:hover {
  border-color: #555;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
  background: var(--surface-2);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
  opacity: 0.7;
}
textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}

.q.has-error input,
.q.has-error textarea,
.q.has-error select {
  border-color: var(--error);
  background: var(--error-bg);
}

/* ── Radio + Checkbox ── */
.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.choice:hover {
  border-color: var(--border-str);
  background: var(--surface-2);
}
.choice input[type="radio"],
.choice input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1.5px solid var(--border-str);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.choice input[type="radio"] { border-radius: 50%; }
.choice input[type="checkbox"] { border-radius: 4px; }
.choice input:checked {
  border-color: var(--gold);
  background: var(--gold);
}
.choice input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg);
}
.choice input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.choice-label {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
  font-weight: 300;
}
.choice:has(input:checked) {
  border-color: var(--gold);
  background: var(--surface-2);
}

/* "Other (specify)" composite — text input shown when checkbox checked */
.other-input {
  margin-top: 4px;
  width: 100%;
}

/* ── Form nav ── */
.form-nav {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 0.5px solid var(--border-sub);
}
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.1s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  margin-left: auto;
  box-shadow: 0 0 0 1px var(--border-str);
}
.btn-primary:hover:not(:disabled) {
  background: var(--gold-h);
  box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(198, 169, 107, 0.25);
}
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--border-str);
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(11, 11, 12, 0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footnote ── */
.form-footnote {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.5;
}

/* ── Footer ── */
.intake-footer {
  padding: 24px;
  border-top: 0.5px solid var(--border-sub);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted-2);
  flex-wrap: wrap;
  gap: 8px;
}
.intake-footer a {
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.intake-footer a:hover { color: #c9a84c; }

/* ── Mobile tweaks ── */
@media (max-width: 600px) {
  .intake-main { padding: 32px 18px 64px; }
  .intake-intro h1 { font-size: 26px; }
  .form-nav { flex-direction: column-reverse; }
  .btn-primary, .btn-secondary { width: 100%; margin-left: 0; }
  .choice { padding: 13px 14px; }
  .intake-header { padding: 18px; gap: 12px; }
  .intake-eyebrow { display: none; }
  .lang-btn { padding: 6px 9px; font-size: 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ───────────────────────────────────────────────────────
   s71 — TRACK SELECTOR (Landing vs Custom first screen)
   ─────────────────────────────────────────────────────── */

.intake-state.track-selector {
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  text-align: center;
}

.track-select-title {
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.track-select-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin: 0 auto 40px;
  max-width: 580px;
}

.track-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.track-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
  font-family: inherit;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.track-card:hover {
  border-color: var(--border-str);
  transform: translateY(-2px);
  background: var(--surface-2);
}

.track-card.is-selected {
  border-color: var(--gold);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(198, 169, 107, 0.18);
}

.track-card.is-selected::after {
  content: '✓';
  position: absolute;
  top: 16px;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-card-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.track-card-title {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.track-card-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.55;
}

.track-card-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-card-perks li {
  font-size: 13px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.track-card-perks li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 600;
}

.btn-primary.track-continue {
  min-width: 200px;
  margin-top: 8px;
}

.btn-primary.track-continue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Track switch link wizard'e */
.track-switch-btn {
  background: transparent;
  border: 0;
  color: var(--gold);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
.track-switch-btn:hover { color: var(--gold-h); text-decoration: underline; }

/* ───────────────────────────────────────────────────────
   s71 — STICKY PRICE TICKER (Landing track only)
   ─────────────────────────────────────────────────────── */

.price-ticker {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  z-index: 50;
  pointer-events: none;
}

.price-ticker-inner {
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(198, 169, 107, 0.18);
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.price-ticker-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.price-ticker-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.price-ticker-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--gold);
  font-feature-settings: 'tnum';
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.price-ticker-meta {
  font-size: 11px;
  color: var(--muted-2);
}

.price-ticker-warning {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 6px;
  font-size: 12px;
  color: #f87171;
  line-height: 1.4;
}

/* Mobile — price ticker tampa full-width bottom bar; track cards stack'inasi */
@media (max-width: 720px) {
  .track-cards { grid-template-columns: 1fr; gap: 14px; }
  .track-card { padding: 24px 20px; }
  .track-select-title { font-size: 26px; }
  .intake-state.track-selector { padding: 40px 16px 60px; }

  .price-ticker {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    padding: 0;
  }
  .price-ticker-inner {
    border-radius: 12px 12px 0 0;
    border-bottom: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
  }
}
