/* ==========================================================================
   TrustServices - Mobile-First Interactive Funnel Styles
   ========================================================================== */

/* FUNNEL CONTAINER */
.funnel-card {
  background: linear-gradient(135deg, var(--primary-blue, #0f172a) 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 28px 22px;
  border: 2px solid var(--accent-gold, #d97706);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 35px;
  position: relative;
  overflow: hidden;
}

/* PROGRESS BAR */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, var(--accent-gold, #d97706), #f59e0b);
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* STEPS TRANSITIONS */
.quiz-step {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.quiz-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.step-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 8px;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
}

.step-subtitle {
  font-size: 14px;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 22px;
}

/* OPTIONS GRID & CARDS */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.option-card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.option-card:hover {
  background-color: rgba(217, 119, 6, 0.15);
  border-color: var(--accent-gold, #d97706);
  transform: translateY(-2px);
}

.option-card:active,
.option-card.selected {
  background-color: var(--accent-gold, #d97706);
  border-color: var(--accent-gold-hover, #b45309);
  color: #ffffff;
  transform: scale(0.98);
}

/* FORM ELEMENTS */
.form-group {
  margin-bottom: 14px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid #475569;
  background-color: #0f172a;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold, #d97706);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.25);
}

.form-input.input-error {
  border-color: var(--accent-red, #dc2626);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

.phone-input-group {
  display: flex;
  gap: 8px;
}

.phone-prefix-select {
  width: 110px;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid #475569;
  background-color: #0f172a;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

.phone-prefix-select:focus {
  outline: none;
  border-color: var(--accent-gold, #d97706);
}

/* SUBMIT BUTTON & FALLBACK */
.btn-funnel-action {
  display: block;
  width: 100%;
  background-color: var(--accent-gold, #d97706);
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 700;
  padding: 15px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  margin-top: 16px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-funnel-action:hover {
  background-color: var(--accent-gold-hover, #b45309);
  transform: translateY(-1px);
}

.btn-funnel-action:active {
  transform: scale(0.99);
}

.fallback-wa-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 16px;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.fallback-wa-link:hover {
  color: var(--accent-gold, #d97706);
}

/* MOBILE ADAPTATION */
@media (max-width: 600px) {
  .funnel-card {
    padding: 20px 14px;
    border-radius: 12px;
  }
  .step-title {
    font-size: 19px;
  }
  .options-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .option-card {
    padding: 14px;
    font-size: 14px;
  }
}