/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Typeform-inspired palette — warm off-white bg, strong ink */
  --bg:          #f0ede8;
  --bg-screen:   #f0ede8;
  --ink:         #191919;
  --ink-80:      rgba(25,25,25,0.8);
  --ink-50:      rgba(25,25,25,0.5);
  --ink-25:      rgba(25,25,25,0.25);
  --ink-10:      rgba(25,25,25,0.08);
  --accent:      #0445af;        /* Typeform blue */
  --accent-light:#e8effe;
  --accent-dark: #0336a0;
  --success:     #00b37d;
  --danger:      #e24c4c;
  --white:       #ffffff;

  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SCREENS — full viewport, stacked, animated
   ============================================================ */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-screen);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  pointer-events: none;
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  z-index: 1;
}

.screen.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 2;
}

.screen.exit-up {
  opacity: 0;
  transform: translateY(-48px) scale(0.97);
  pointer-events: none;
}

/* ============================================================
   WELCOME SCREEN
   ============================================================ */
.screen-welcome { overflow: hidden; }

.welcome-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 680px;
  padding: 0 40px;
  width: 100%;
  animation: fadeUp 0.7s var(--ease-out) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink-10);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-80);
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(0,179,125,0.2);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(0,179,125,0.2); }
  50%      { box-shadow: 0 0 0 7px rgba(0,179,125,0.07); }
}

.welcome-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}

.welcome-title em {
  font-style: italic;
  color: var(--accent);
}

.welcome-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink-50);
  line-height: 1.7;
  margin-bottom: 44px;
}

.btn-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 16px 28px;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 32px rgba(4,69,175,0.3), 0 2px 8px rgba(4,69,175,0.2);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn-start svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease-spring); }
.btn-start:hover svg { transform: translateX(4px); }
.btn-start:hover { background: var(--accent-dark); box-shadow: 0 12px 40px rgba(4,69,175,0.38); transform: translateY(-2px); }
.btn-start:active { transform: translateY(1px) scale(0.98); box-shadow: 0 3px 10px rgba(4,69,175,0.25); transition-duration: 0.06s; }

.welcome-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-25);
}

/* ─── Welcome background shapes ─── */
.welcome-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.wb-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.wb-shape-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(4,69,175,0.12) 0%, transparent 70%);
  animation: floatShape 14s ease-in-out infinite;
}

.wb-shape-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -80px;
  background: radial-gradient(circle, rgba(0,179,125,0.1) 0%, transparent 70%);
  animation: floatShape 10s ease-in-out infinite reverse;
}

.wb-shape-3 {
  width: 300px; height: 300px;
  top: 50%; right: 20%;
  background: radial-gradient(circle, rgba(255,200,80,0.1) 0%, transparent 70%);
  animation: floatShape 12s ease-in-out infinite 4s;
}

@keyframes floatShape {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.08); }
}

/* ============================================================
   FORM SCREEN
   ============================================================ */
.screen-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--bg);
  overflow: hidden;
  padding: 0;
}

/* ── Progress bar ── */
.tf-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ink-10);
  z-index: 100;
}

.tf-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.4s var(--ease-out);
  border-radius: 0 2px 2px 0;
}

/* ── Steps container ── */
.steps-container {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Individual step ── */
.step {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 150px max(5vw, 40px) 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  overflow-y: auto;
}

.step.active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.step.exit-up {
  opacity: 0;
  transform: translateY(-60px);
  pointer-events: none;
}

.step-inner {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ── Step number ── */
.step-num {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-50);
  margin-bottom: 18px;
}

.step-num span { font-variant-numeric: tabular-nums; }
.step-num svg  { width: 11px; height: 11px; opacity: 0.7; }

/* ── Question ── */
.step-question {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 10px;
}

.step-question em {
  font-style: italic;
  color: var(--accent);
}

.step-question--big { font-size: clamp(28px, 5vw, 52px); }

.step-desc {
  font-size: 15px;
  color: var(--ink-50);
  line-height: 1.65;
  margin-bottom: 4px;
}

/* ── Underline input ── */
.tf-input-wrap {
  width: 100%;
  margin-top: 28px;
  position: relative;
}

.tf-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 500;
  color: var(--ink);
  padding: 0 0 12px;
  caret-color: var(--accent);
  letter-spacing: -0.01em;
}

.tf-input::placeholder { color: var(--ink-25); }

.tf-input-line {
  height: 2px;
  background: var(--ink-10);
  border-radius: 2px;
  overflow: hidden;
}

.tf-input-line-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s var(--ease-out);
}

.tf-input:focus ~ .tf-input-line .tf-input-line-fill,
.tf-input-wrap:focus-within .tf-input-line-fill { width: 100%; }

/* textarea variant */
.tf-textarea {
  resize: none;
  font-size: clamp(17px, 2.5vw, 24px);
  line-height: 1.55;
}

.tf-char-count {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-25);
  font-weight: 500;
  align-self: flex-end;
}

/* ── Phone row ── */
.tf-phone-wrap {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
  margin-top: 28px;
}

.tf-phone-code {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--ink-10);
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 0 8px 12px 0;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
}

.tf-phone-code option { background: var(--bg); color: var(--ink); }

.tf-input-phone { margin-top: 0; flex: 1; }
.tf-input-phone .tf-input { font-size: clamp(22px, 3vw, 30px); }

/* ── Two-col layout (company + title) ── */
.tf-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
}

.tf-col { display: flex; flex-direction: column; }

.tf-sublabel {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-50);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* ── Choices (single select) ── */
.tf-choices,
.tf-multi-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 28px;
}

.tf-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--ink-10);
  border-radius: 8px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.15s ease,
    background   0.15s ease,
    transform    0.12s var(--ease-spring),
    box-shadow   0.15s ease;
  width: 100%;
}

.tf-choice:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateX(5px);
}

.tf-choice.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(4,69,175,0.1);
}

/* 3D press */
.tf-choice:active {
  transform: translateX(2px) scale(0.99) !important;
  transition-duration: 0.06s !important;
}

.choice-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink-25);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--ink-50);
  background: rgba(255,255,255,0.6);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.tf-choice.selected .choice-key,
.tf-choice:hover .choice-key {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* ── Custom Select ── */
.tf-select-wrap {
  position: relative;
  width: 100%;
  margin-top: 28px;
}

.tf-select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
  color: var(--ink);
  padding: 0 40px 14px 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  caret-color: var(--accent);
}

.tf-select option { background: var(--bg); color: var(--ink); font-size: 16px; }
.tf-select:invalid, .tf-select option[value=""] { color: var(--ink-25); }

.tf-select-arrow {
  position: absolute;
  right: 2px;
  top: 4px;
  width: 22px; height: 22px;
  color: var(--ink-50);
  pointer-events: none;
  transition: transform 0.22s var(--ease-spring), color 0.15s;
}

.tf-select-wrap:focus-within .tf-select-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.tf-select-line {
  margin-top: 0;
}

.tf-select:focus ~ .tf-select-line .tf-input-line-fill,
.tf-select-wrap:focus-within .tf-select-line .tf-input-line-fill { width: 100%; }

/* ── Req asterisk ── */
.req { color: var(--accent); margin-left: 2px; }

/* ── Interest & Budget choices ── */
.interest-choices,
.budget-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.interest-choice,
.budget-choice {
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 18px !important;
}

.choice-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.choice-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.choice-sub {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-50);
  line-height: 1.4;
}

.interest-choice.selected .choice-sub,
.budget-choice.selected .choice-sub { color: rgba(4,69,175,0.65); }

/* ── Smaller input variant ── */
.tf-input-sm {
  font-size: clamp(15px, 2vw, 18px) !important;
  padding-bottom: 10px !important;
}

/* ── Webhook details ── */
.webhook-details {
  width: 100%;
  margin-top: 24px;
  border: 1.5px solid var(--ink-10);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
}

.webhook-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.12s;
}
.webhook-summary::-webkit-details-marker { display: none; }
.webhook-summary svg { width: 16px; height: 16px; flex-shrink: 0; }
.webhook-summary:hover { background: var(--accent-light); }

.webhook-body {
  padding: 6px 18px 18px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink-10);
}

/* ── Error ── */
.tf-error {
  display: block;
  font-size: 13px;
  color: var(--danger);
  margin-top: 10px;
  min-height: 18px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.tf-error:empty {
  min-height: 0;
  margin-top: 0;
}

/* ── OK button ── */
.btn-ok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 22px;
  cursor: pointer;
  margin-top: 28px;
  box-shadow: 0 4px 16px rgba(4,69,175,0.28);
  transition: background 0.12s, box-shadow 0.12s, transform 0.12s var(--ease-spring);
  letter-spacing: 0.02em;
  /* 3D bottom edge */
  border-bottom: 3px solid rgba(0,0,0,0.2);
}

.btn-ok svg { width: 15px; height: 15px; transform: rotate(-90deg); }
.btn-ok:hover { background: var(--accent-dark); box-shadow: 0 6px 24px rgba(4,69,175,0.38); transform: translateY(-2px); }
.btn-ok:active { transform: translateY(2px) !important; box-shadow: 0 1px 4px rgba(4,69,175,0.2) !important; border-bottom-width: 0px !important; transition-duration: 0.05s !important; }

/* ── Hint ── */
.tf-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-25);
}

kbd {
  display: inline-block;
  background: var(--ink-10);
  border: 1px solid var(--ink-10);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-50);
}

.skip-link {
  color: var(--ink-50);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.12s;
}

.skip-link:hover { color: var(--ink); }

/* ── Payload preview (terminal style) ── */
.payload-preview {
  width: 100%;
  margin-top: 24px;
  background: #1c1c1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.payload-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #2c2c2e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.payload-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}

.payload-dot--red    { background: #ff5f57; }
.payload-dot--yellow { background: #febc2e; }
.payload-dot--green  { background: #28c840; }

.payload-title {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-left: 6px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.payload-code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.75;
  color: #a8f0a8;
  padding: 16px 20px;
  overflow-x: auto;
  max-height: 220px;
  white-space: pre;
}

/* ── Consent ── */
.tf-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  margin-top: 28px;
  user-select: none;
}

.tf-checkbox-wrap { flex-shrink: 0; margin-top: 2px; }
.tf-checkbox-wrap input { position: absolute; opacity: 0; width: 0; height: 0; }

.tf-checkbox-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border: 2px solid var(--ink-25);
  border-radius: 6px;
  background: var(--white);
  transition: border-color 0.15s, background 0.15s, transform 0.18s var(--ease-spring);
}

.tf-checkbox-box svg { width: 14px; height: 12px; opacity: 0; transform: scale(0.4); transition: opacity 0.15s, transform 0.2s var(--ease-spring); }

input:checked + .tf-checkbox-box {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

input:checked + .tf-checkbox-box svg { opacity: 1; transform: scale(1); }
.tf-consent-label:active .tf-checkbox-box { transform: scale(0.9) !important; }

.tf-consent-text { font-size: 16px; color: var(--ink-80); line-height: 1.6; }
.tf-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ── Submit button ── */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  padding: 18px 36px;
  cursor: pointer;
  margin-top: 32px;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 40px rgba(4,69,175,0.35),
    0 2px 8px rgba(4,69,175,0.2),
    inset 0 1px 0 rgba(255,255,255,0.15);
  border-bottom: 4px solid rgba(0,0,0,0.2);
  transition: background 0.12s, box-shadow 0.12s, transform 0.15s var(--ease-spring), border-bottom-width 0.06s;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.btn-submit svg { width: 20px; height: 20px; transition: transform 0.2s var(--ease-spring); }
.btn-submit:hover svg { transform: translateX(4px); }

.btn-submit:hover:not(:disabled) {
  background: var(--accent-dark);
  box-shadow: 0 16px 52px rgba(4,69,175,0.45), 0 3px 12px rgba(4,69,175,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

/* 3D press */
.btn-submit:active:not(:disabled) {
  transform: translateY(3px) !important;
  box-shadow: 0 2px 8px rgba(4,69,175,0.2) !important;
  border-bottom-width: 0px !important;
  transition-duration: 0.05s !important;
}

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

.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Bottom nav ── */
.tf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(5vw, 40px);
  border-top: 1px solid var(--ink-10);
  background: var(--bg);
  flex-shrink: 0;
}

.tf-nav-left { display: flex; gap: 6px; }

.tf-nav-btn {
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink-10);
  border-radius: 6px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.12s, background 0.12s, transform 0.12s var(--ease-spring), box-shadow 0.12s;
}

.tf-nav-btn svg { width: 14px; height: 14px; }

.tf-nav-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(4,69,175,0.12);
}


/* 3D click on nav buttons */
.tf-nav-btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.94) !important;
  box-shadow: none !important;
  transition-duration: 0.05s !important;
}

.tf-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.tf-step-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-50);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   SUCCESS SCREEN
   ============================================================ */
.screen-success { overflow: hidden; }

.success-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 540px;
  padding: 0 32px;
  width: 100%;
  animation: fadeUp 0.6s var(--ease-out) both;
}

/* SVG circle check animation */
.success-anim {
  position: relative;
  width: 96px; height: 96px;
  margin-bottom: 28px;
}

.success-circle {
  width: 96px; height: 96px;
  transform: rotate(-90deg);
}

.circle-track {
  stroke: var(--ink-10);
  stroke-width: 4;
  fill: none;
}

.circle-fill {
  stroke: var(--accent);
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s var(--ease-out) 0.2s;
}

.screen-success.active .circle-fill { stroke-dashoffset: 0; }

.success-check {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-line {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  transition: stroke-dashoffset 0.4s var(--ease-out) 0.85s;
}

.screen-success.active .check-line { stroke-dashoffset: 0; }

.success-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

.success-msg {
  font-size: 17px;
  color: var(--ink-80);
  line-height: 1.7;
  margin-bottom: 28px;
}

.success-card {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--ink-10);
  border-radius: 16px;
  padding: 24px 28px;
  font-size: 14px;
  color: var(--ink-80);
  line-height: 2;
  text-align: left;
  margin-bottom: 32px;
  font-family: var(--font-body);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(25, 25, 25, 0.05);
}

.success-card .row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid var(--ink-10);
  padding: 8px 0;
}
.success-card .row:last-child { border-bottom: none; }
.success-card .row-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-50);
  min-width: 100px;
}
.success-card .row-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.success-card strong { color: var(--ink-50); font-weight: 600; margin-right: 8px; }

.btn-restart {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(4, 69, 175, 0.25);
  transition: all 0.2s var(--ease-out);
}

.btn-restart:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 40px rgba(4, 69, 175, 0.35);
  transform: translateY(-2px);
}
.btn-restart:active { transform: translateY(1px) scale(0.97) !important; }

/* ── Success bg ── */
.success-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.sb-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}

.sb-shape-1 {
  width: 500px; height: 500px;
  top: -150px; right: -80px;
  background: radial-gradient(circle, rgba(197, 168, 92, 0.15) 0%, transparent 70%);
  animation: floatShape 12s ease-in-out infinite;
}

.sb-shape-2 {
  width: 350px; height: 350px;
  bottom: -80px; left: -60px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  animation: floatShape 9s ease-in-out infinite reverse;
}

/* ============================================================
   TOAST
   ============================================================ */
.tf-toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1c1c1e;
  color: #fff;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring);
  white-space: nowrap;
}

.tf-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tf-toast.error { background: var(--danger); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .welcome-inner, .tf-nav { padding-left: 24px; padding-right: 24px; }
  .step { padding: 130px 24px 24px; }
  .step-inner { margin-top: 0; }
  .tf-two-col { grid-template-columns: 1fr; }
  .interest-choices,
  .budget-choices { grid-template-columns: 1fr; }
  .tf-choices, .tf-multi-choices { max-height: 55vh; overflow-y: auto; }
  .tf-toast { left: 16px; right: 16px; transform: translateY(20px); white-space: normal; text-align: center; }
  .tf-toast.show { transform: translateY(0); }
  .btn-submit { font-size: 16px; padding: 15px 28px; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.preloader-logo {
  max-width: 130px;
  height: auto;
  animation: logoPulse 1.8s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(4, 69, 175, 0)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 0 12px rgba(4, 69, 175, 0.15)); }
}

.preloader-bar {
  width: 140px;
  height: 3px;
  background: var(--ink-10);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  animation: fillPreloader 1.4s var(--ease-out) forwards;
}

@keyframes fillPreloader {
  to { width: 100%; }
}

/* ============================================================
   LOGO STYLES
   ============================================================ */
.welcome-logo-wrap {
  margin-bottom: 24px;
  width: 100%;
}

.welcome-logo {
  max-width: 130px;
  height: auto;
  display: inline-block;
  animation: logoFadeIn 0.8s var(--ease-out) both;
}

@keyframes logoFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.form-header-logo-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  position: absolute;
  top: 24px;
  left: 0;
  z-index: 100;
  pointer-events: none;
}

.form-header-logo {
  max-width: 150px;
  height: auto;
  opacity: 0.85;
  animation: logoFadeIn 0.8s var(--ease-out) both;
}

@media (max-width: 600px) {
  .form-header-logo-wrap {
    top: 20px;
  }
  .form-header-logo {
    max-width: 110px;
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-10); border-radius: 99px; }
