/* ===== Funnel Layout ===== */
.funnel-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 100px 0 80px;
}

/* ===== Funnel Intro ===== */
.funnel-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
  padding: 40px 0 0;
}

.funnel-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.funnel-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-green 2s ease-in-out infinite;
}

.funnel-intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}

.funnel-intro p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.funnel-trust {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.funnel-trust span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===== Progress Bar ===== */
.funnel-progress {
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 99px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #111111, #555555);
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  transition: opacity 0.4s;
}

.progress-step.active,
.progress-step.done {
  opacity: 1;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 2px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-step.active .step-dot {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.04); }
}

.progress-step.done .step-dot {
  background: #444444;
  border-color: #444444;
  color: #ffffff;
}

.progress-step span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.progress-step.active span {
  color: var(--text);
}

/* ===== Steps ===== */
.funnel-step {
  display: none;
}

.funnel-step.active {
  display: block;
  animation: stepIn 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.funnel-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 52px;
  border-radius: 24px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.07), 0 1px 0 rgba(0, 0, 0, 0.04);
}

.funnel-header {
  margin-bottom: 44px;
}

.funnel-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.funnel-header p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== Fields ===== */
.funnel-fields {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.funnel-field > label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ===== Option Buttons ===== */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.option-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.option-btn {
  position: relative;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  overflow: hidden;
}

.option-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #111111;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  z-index: 0;
}

.option-btn span,
.option-btn {
  position: relative;
  z-index: 1;
}

.option-btn:hover {
  border-color: rgba(0, 0, 0, 0.3);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.option-btn.selected {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  font-weight: 600;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.option-btn.selected::after {
  content: '✓';
  position: absolute;
  top: 7px;
  right: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  opacity: 0.7;
  z-index: 2;
}

/* ===== Slider ===== */
.slider-container {
  padding: 8px 0;
}

.funnel-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(to right, #111111 0%, #e0e0e0 0%);
  outline: none;
  cursor: pointer;
}

.funnel-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #111111;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1.5px #111111, 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.funnel-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.funnel-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #111111;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1.5px #111111, 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.funnel-slider::-moz-range-progress {
  background: #111111;
  height: 6px;
  border-radius: 6px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slider-value {
  font-weight: 800;
  color: #111111;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

/* ===== Navigation ===== */
.funnel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--glass-border);
}

.funnel-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ===== Results ===== */
.results-card {
  max-width: 800px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.result-item {
  text-align: center;
  padding: 32px 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, #6b6b6b 0%, #7a7a7a 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: resultReveal 0.6s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}

.result-item:nth-child(1) { animation-delay: 0.1s; }
.result-item:nth-child(2) { animation-delay: 0.25s; }
.result-item:nth-child(3) { animation-delay: 0.4s; }

@keyframes resultReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.result-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.result-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
  position: relative;
  z-index: 1;
}

.result-value {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
  transition: opacity 0.3s;
}

.result-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

.result-value.counting {
  animation: countPulse 0.25s ease;
}

@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ===== Results CTA ===== */
.results-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 28px;
  font-size: 1.05rem;
  padding: 18px;
  border-radius: 14px;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
  animation: pulse-cta 2.2s ease-in-out infinite;
}

.results-cta:hover {
  background: #15803d;
  box-shadow: 0 8px 32px rgba(22, 163, 74, 0.4);
}

@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.35); }
  50%       { box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); }
}

/* ===== Breakdown ===== */
.results-breakdown {
  margin-bottom: 24px;
}

.results-breakdown h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
}

.breakdown-item:last-child { border-bottom: none; }

.breakdown-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.breakdown-left span:first-child { font-size: 1.2rem; }
.breakdown-left span:last-child {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breakdown-value {
  font-weight: 700;
  color: #111111;
  font-size: 0.95rem;
}

/* ===== Results Note ===== */
.results-note {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 16px 20px;
}

.results-note p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .funnel-card { padding: 28px 20px; }

  .funnel-intro h1 { font-size: 1.8rem; }

  .option-grid,
  .option-grid.cols-3,
  .option-grid.cols-4 { grid-template-columns: 1fr 1fr; }

  .results-grid { grid-template-columns: 1fr; gap: 12px; }

  .funnel-header h2 { font-size: 1.4rem; }

  .progress-step span { display: none; }

  .funnel-trust { gap: 16px; }

  #funnel-contact-form div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .option-grid,
  .option-grid.cols-3,
  .option-grid.cols-4 { grid-template-columns: 1fr; }
}
