/* ==========================================================================
   TYPEFORM FUNNEL STYLES · MINIMALIST LUXURY INTERACTIVE FLOW
   ========================================================================== */

:root {
  --tf-bg: #07080c;
  --tf-card: #0d0f17;
  --tf-border: rgba(255, 255, 255, 0.1);
  --tf-gold: #e5a93c;
  --tf-gold-light: #fcd34d;
  --tf-text: #f8fafc;
  --tf-muted: #94a3b8;
  --tf-dim: #64748b;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
}

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

body {
  background: var(--tf-bg);
  color: var(--tf-text);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Top Progress Header */
.tf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(7, 8, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 50;
}

.tf-brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
}

.tf-brand span {
  color: var(--tf-muted);
  font-weight: 300;
}

.tf-brand i {
  color: var(--tf-gold);
  font-style: normal;
}

.tf-progress-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tf-step-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tf-muted);
}

.tf-progress-track {
  width: 140px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.tf-progress-fill {
  height: 100%;
  width: 12%;
  background: linear-gradient(90deg, #e5a93c, #fcd34d);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Main Container */
.tf-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* Step Card Transitions */
.tf-step {
  display: none;
  width: 100%;
  animation: fadeInStep 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tf-step.active {
  display: block;
}

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

.tf-num-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--tf-gold);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.tf-question {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.tf-subtext {
  font-size: 0.9375rem;
  color: var(--tf-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Inputs */
.tf-input-wrapper {
  margin-bottom: 32px;
}

.tf-text-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding: 14px 0;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: #fff;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.25s ease;
}

.tf-text-input:focus {
  border-color: var(--tf-gold);
}

.tf-text-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.tf-textarea {
  width: 100%;
  background: var(--tf-card);
  border: 1px solid var(--tf-border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 1.05rem;
  color: #fff;
  font-family: var(--font-sans);
  outline: none;
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
  transition: border-color 0.25s ease;
}

.tf-textarea:focus {
  border-color: var(--tf-gold);
}

/* Option Choices */
.tf-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.tf-option {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--tf-card);
  border: 1px solid var(--tf-border);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.tf-option:hover {
  border-color: rgba(229, 169, 60, 0.5);
  background: rgba(229, 169, 60, 0.05);
  transform: translateX(4px);
}

.tf-option.selected {
  border-color: var(--tf-gold);
  background: rgba(229, 169, 60, 0.12);
}

.tf-key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--tf-gold-light);
  flex-shrink: 0;
}

.tf-option.selected .tf-key-badge {
  background: var(--tf-gold);
  color: #07080c;
  border-color: var(--tf-gold);
}

.tf-option-text strong {
  display: block;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
}

.tf-option-text span {
  display: block;
  font-size: 0.875rem;
  color: var(--tf-muted);
  margin-top: 2px;
}

/* Actions & Footer */
.tf-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tf-btn-next {
  background: linear-gradient(135deg, #fcd34d 0%, #e5a93c 100%);
  color: #07080c;
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.tf-btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(229, 169, 60, 0.4);
}

.tf-press-enter {
  font-size: 0.8125rem;
  color: var(--tf-dim);
}

.tf-press-enter kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  color: var(--tf-muted);
}

.tf-footer-nav {
  position: fixed;
  bottom: 24px;
  right: 32px;
  display: flex;
  gap: 8px;
  z-index: 50;
}

.tf-nav-btn {
  background: var(--tf-card);
  border: 1px solid var(--tf-border);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tf-nav-btn:hover:not(:disabled) {
  border-color: var(--tf-gold);
  color: var(--tf-gold);
}

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

/* Success Card */
.tf-success-card {
  background: var(--tf-card);
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 0 50px rgba(229, 169, 60, 0.08);
}

.tf-success-icon {
  width: 72px;
  height: 72px;
  background: rgba(16, 185, 129, 0.12);
  border: 2px solid #10b981;
  color: #10b981;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.tf-success-card h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.tf-success-card p {
  font-size: 1rem;
  color: var(--tf-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 28px;
}

/* Error message */
.tf-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 8px;
  display: none;
}
