/* Talk to an Advisor — wizard */

.tta-page {
  background: var(--bg);
  min-height: 100vh;
}

/* Split shell */
.tta-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

/* === LEFT ================================================================= */
.tta-left {
  background: linear-gradient(180deg, #0E0F0E 0%, #1A2420 100%);
  color: #F4F4F2;
  position: relative;
  overflow: hidden;
  display: flex;
}
.tta-left::before {
  /* soft green glow */
  content: "";
  position: absolute;
  top: -120px; left: -120px;
  width: 540px; height: 540px;
  background: radial-gradient(closest-side, rgba(0,168,104,0.28), transparent 70%);
  pointer-events: none;
}
.tta-left::after {
  content: "";
  position: absolute;
  bottom: -200px; right: -180px;
  width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(0,168,104,0.14), transparent 70%);
  pointer-events: none;
}
.tta-left-inner {
  position: relative;
  z-index: 1;
  padding: 56px 64px 56px;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
}

.tta-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9CD9BA;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: var(--r-pill);
  transition: background 160ms ease, color 160ms ease;
  align-self: flex-start;
}
.tta-back-link:hover { background: rgba(255,255,255,0.06); color: #EAF7F0; }

.tta-left-head h1.tta-left-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 16px 0 18px;
  color: #F4F4F2;
  text-wrap: pretty;
}
.tta-left-h em {
  font-style: italic;
  color: #4FC08D;
}
.tta-left-sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: #BCBEBC;
  margin: 0;
  max-width: 480px;
  text-wrap: pretty;
}

/* Quote block */
.tta-quote {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 28px 30px 20px;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
  outline: none;
}
.tta-quote:hover,
.tta-quote:focus-visible {
  border-color: rgba(79,192,141,0.25);
  background: rgba(255,255,255,0.045);
}
.tta-quote.is-paused {
  border-color: rgba(79,192,141,0.35);
}

/* Stage holds all slides stacked; active one fades in */
.tta-quote-stage {
  position: relative;
  min-height: 240px;
}
.tta-quote-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 520ms ease, transform 520ms ease;
  pointer-events: none;
}
.tta-quote-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

/* Controls row — dots + status */
.tta-quote-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.tta-quote-dots {
  display: flex;
  gap: 6px;
}
.tta-quote-dot {
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  transition: background 220ms ease, width 220ms ease;
  padding: 0;
  cursor: pointer;
}
.tta-quote-dot:hover { background: rgba(255,255,255,0.22); }
.tta-quote-dot.is-active {
  background: var(--accent);
  width: 28px;
}
.tta-quote-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7A7C7A;
}
.tta-quote.is-paused .tta-quote-status { color: #9CD9BA; }
.tta-quote-mark {
  position: absolute;
  top: -14px; left: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,168,104,0.3);
}
.tta-quote blockquote {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  line-height: 1.45;
  color: #E8E8E6;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.tta-quote-who {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.tta-quote-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #4FC08D);
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.tta-quote-name {
  font-size: 14px;
  color: #F4F4F2;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.tta-quote-role {
  font-size: 12.5px;
  color: #9A9C9A;
  margin-top: 1px;
}
.tta-quote-stars {
  display: inline-flex;
  gap: 2px;
  color: #F4C24F;
}

/* Trust strip */
.tta-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  overflow: hidden;
}
.tta-trust-item {
  background: #11181500;
  padding: 18px 18px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.tta-trust-v {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: #F4F4F2;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.tta-trust-v span {
  font-size: 0.55em;
  color: #9A9C9A;
  font-style: italic;
  margin-left: 1px;
}
.tta-trust-l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9A9C9A;
  margin-top: 8px;
}

/* Bullets */
.tta-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #BCBEBC;
}
.tta-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tta-bullets svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* === RIGHT ================================================================ */
.tta-right {
  background: var(--bg);
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tta-form-wrap {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Progress */
.tta-progress {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tta-steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.tta-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  transition: color 180ms ease;
}
.tta-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-sunken);
  border: 1px solid var(--rule);
  color: var(--ink-muted);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  transition: all 180ms ease;
}
.tta-step.is-active .tta-step-num {
  background: var(--accent-wash-2);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.tta-step.is-done .tta-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.tta-step-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tta-step.is-active { color: var(--ink); }
.tta-step.is-done   { color: var(--accent-ink); }

.tta-progress-track {
  height: 3px;
  background: var(--rule-soft);
  border-radius: 999px;
  overflow: hidden;
}
.tta-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 420ms cubic-bezier(.33,1,.68,1);
}

/* Form container */
.tta-form {
  flex: 1;
}
.tta-step-panel {
  animation: ttaFade 320ms cubic-bezier(.33,1,.68,1);
}
@keyframes ttaFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tta-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.tta-section-h {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: var(--ink);
  text-wrap: pretty;
}
.tta-section-sub {
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0 0 28px;
  line-height: 1.55;
  max-width: 520px;
}

/* Fields */
.tta-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tta-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tta-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tta-field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.tta-field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.tta-req { color: var(--accent-ink); }
.tta-field-hint {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 400;
  text-align: right;
}
.tta-field-error {
  font-size: 12px;
  color: #B5441C;
  font-weight: 500;
}

.tta-field input,
.tta-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
  letter-spacing: -0.005em;
}
.tta-field textarea {
  resize: vertical;
  min-height: 84px;
  font-family: var(--font-sans);
  line-height: 1.5;
}
.tta-field input:focus,
.tta-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.tta-field input::placeholder,
.tta-field textarea::placeholder {
  color: var(--ink-faint);
}
.tta-field.has-error input,
.tta-field.has-error textarea {
  border-color: #E6A08C;
  box-shadow: 0 0 0 3px rgba(181,68,28,0.08);
}

/* Custom state dropdown — matches input chrome */
.tta-select {
  position: relative;
  width: 100%;
}
.tta-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  outline: none;
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
  letter-spacing: -0.005em;
}
.tta-select-trigger:hover { border-color: var(--ink-faint); }
.tta-select.is-open .tta-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.tta-select.has-error .tta-select-trigger {
  border-color: #E6A08C;
  box-shadow: 0 0 0 3px rgba(181,68,28,0.08);
}
.tta-select-placeholder { color: var(--ink-faint); }
.tta-select-value {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.tta-select-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  background: var(--accent-wash-2);
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.tta-select-name {
  font-size: 14.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tta-select-caret {
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: transform 200ms cubic-bezier(.33,1,.68,1);
}
.tta-select.is-open .tta-select-caret {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Popover */
.tta-select-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow:
    0 1px 2px rgba(20, 22, 20, 0.04),
    0 12px 28px rgba(20, 22, 20, 0.10),
    0 24px 48px rgba(20, 22, 20, 0.06);
  overflow: hidden;
  animation: ttaSelectPop 160ms cubic-bezier(.33,1,.68,1);
}
@keyframes ttaSelectPop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.tta-select-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink-muted);
}
.tta-select-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink);
  padding: 2px 0;
  letter-spacing: -0.005em;
}
.tta-select-search input::placeholder { color: var(--ink-faint); }

.tta-select-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.tta-select-list::-webkit-scrollbar { width: 8px; }
.tta-select-list::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; border: 2px solid var(--bg-raised); }

.tta-select-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background 100ms ease, color 100ms ease;
  user-select: none;
}
.tta-select-opt .tta-select-name {
  flex: 1;
  color: inherit;
}
.tta-select-opt.is-highlight {
  background: var(--accent-wash);
  color: var(--ink);
}
.tta-select-opt.is-selected {
  color: var(--accent-ink);
}
.tta-select-opt.is-selected .tta-select-name { color: var(--accent-ink); font-weight: 500; }
.tta-select-check { color: var(--accent); flex-shrink: 0; }

.tta-select-empty {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

/* Pill selectors */
.tta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tta-pill {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  transition: all 160ms ease;
  letter-spacing: -0.005em;
}
.tta-pill:hover { border-color: var(--ink-faint); background: var(--bg); color: var(--ink); }
.tta-pill.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 2px 6px rgba(0,168,104,0.22);
}

/* Radio cards / check cards */
.tta-radio-grid,
.tta-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tta-radio-card,
.tta-check-card {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  text-align: left;
  cursor: pointer;
  transition: all 160ms ease;
}
.tta-radio-card:hover,
.tta-check-card:hover {
  border-color: var(--ink-faint);
  transform: translateY(-1px);
}
.tta-radio-card.is-selected,
.tta-check-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-wash-2);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.tta-radio-mark {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: var(--bg);
  position: relative;
  margin-top: 3px;
  transition: all 160ms ease;
}
.tta-radio-card.is-selected .tta-radio-mark {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--bg-raised);
}
.tta-check-box {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--rule);
  background: var(--bg);
  display: grid; place-items: center;
  color: transparent;
  margin-top: 2px;
  transition: all 160ms ease;
}
.tta-check-card.is-selected .tta-check-box {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.tta-radio-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.tta-radio-hint {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 3px;
  line-height: 1.45;
}

/* Nav */
.tta-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
}
.tta-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  padding: 10px 4px;
  transition: color 160ms ease;
}
.tta-back:hover:not(:disabled) { color: var(--ink); }
.tta-back:disabled { opacity: 0.3; cursor: not-allowed; }
.tta-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  background: var(--ink);
  color: var(--bg);
  transition: all 160ms ease;
}
.tta-next:hover:not(:disabled) { transform: translateY(-1px); background: #1a1b1a; }
.tta-next:disabled { background: var(--rule); color: var(--ink-faint); cursor: not-allowed; }
.tta-next.is-final { background: var(--accent); }
.tta-next.is-final:hover:not(:disabled) { background: var(--accent-hover); }

/* Footer */
.tta-foot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: -0.005em;
}
.tta-foot a { color: var(--accent-ink); border-bottom: 1px solid var(--accent-line); }
.tta-foot a:hover { border-color: var(--accent-ink); }

/* === DONE ================================================================ */
.tta-done {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  animation: ttaFade 340ms cubic-bezier(.33,1,.68,1);
}
.tta-done-badge {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 0 0 8px var(--accent-wash), 0 12px 30px rgba(0,168,104,0.25);
  margin-bottom: 8px;
}
.tta-done-h {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 8px 0 4px;
  color: var(--ink);
}
.tta-done-sub {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 500px;
  margin: 0 0 12px;
  text-wrap: pretty;
}
.tta-done-sub strong { color: var(--ink); font-weight: 500; }

.tta-done-card {
  text-align: left;
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 24px 26px;
  margin: 16px 0;
}
.tta-done-card-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.tta-done-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tta-done-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.tta-done-steps li strong { color: var(--ink); font-weight: 500; }
.tta-done-step-n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-ink);
  letter-spacing: 0.1em;
  padding-top: 3px;
}

.tta-done-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* === Responsive ========================================================== */
@media (max-width: 960px) {
  .tta-shell { grid-template-columns: 1fr; }
  .tta-left { min-height: auto; }
  .tta-left-inner { padding: 48px 32px; max-width: none; }
  .tta-left::after { display: none; }
  .tta-right { padding: 44px 32px; }
  .tta-row-2 { grid-template-columns: 1fr; }
  .tta-radio-grid, .tta-check-grid { grid-template-columns: 1fr; }
  .tta-trust-v { font-size: 24px; }
}
@media (max-width: 560px) {
  .tta-left-inner { padding: 36px 24px; gap: 28px; }
  .tta-right { padding: 32px 20px; }
  .tta-quote { padding: 24px 22px 20px; }
  .tta-steps { gap: 6px; }
  .tta-step-label { display: none; }
}
