/* Pre-Qualification Quiz specific styles */
/* Extends quiz.css with prequal-specific overrides */

/* Header with Verified Investor branding */
.prequal-header {
  background: linear-gradient(135deg, #00A8B5 0%, #008B94 100%);
}

.prequal-header h1 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Override primary gradient for prequal progress bar */
.quiz-progress-bar {
  background: linear-gradient(135deg, #00A8B5 0%, #F7941D 100%);
  box-shadow: 0 0 10px rgba(0, 168, 181, 0.5);
}

/* Multi-select buttons */
.multi-select.selected {
  background: linear-gradient(135deg, rgba(0, 168, 181, 0.3), rgba(0, 139, 148, 0.3));
  border-color: #00A8B5;
}

/* Info box with HIS branding */
.info-box ul {
  margin: 0.5rem 0 0 1.5rem;
  padding: 0;
}

.info-box li {
  margin-bottom: 4px;
}

/* ============================================ */
/* SUCCESS PAGE - CRITICAL FIXES */
/* ============================================ */

/* Fix: Make success page scroll from top instead of centering (which cuts off top) */
#success.quiz-success {
  align-items: flex-start !important;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Fix: Expand success card width for pricing cards */
#success .success-card {
  max-width: 900px !important;
  width: 100%;
  text-align: left;
}

/* Center the header elements */
#success .quiz-success-icon {
  display: flex !important;
  margin: 0 auto 24px auto !important;
}

#success .success-card > h2 {
  text-align: center;
  margin-bottom: 16px;
}

#success .success-card > .success-message {
  text-align: center;
  margin-bottom: 16px;
}

#success .success-card > .success-submessage {
  text-align: center;
  margin-bottom: 24px;
}

/* Success benefits box - "What's in Your Letter" */
#success .success-benefits {
  background: rgba(0, 168, 181, 0.1);
  border: 1px solid rgba(0, 168, 181, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  text-align: left;
}

#success .success-benefits h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #00A8B5;
}

#success .benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#success .benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  text-align: left;
}

#success .benefits-list .benefit-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
}

/* ============================================ */
/* PRICING SECTION */
/* ============================================ */

.pricing-section {
  margin-top: 30px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(0, 168, 181, 0.08), rgba(0, 139, 148, 0.12));
  border-radius: 16px;
  border: 1px solid rgba(0, 168, 181, 0.3);
}

.pricing-section h3 {
  text-align: center;
  color: #00A8B5;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.pricing-intro {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Pricing Cards Grid */
.pricing-cards {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
  margin-bottom: 24px;
}

/* Individual Pricing Card */
.pricing-card {
  background: rgba(30, 30, 40, 0.8) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  overflow: hidden !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  display: block !important;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Featured/VIP Card */
.pricing-card.pricing-card-featured {
  border: 2px solid #00A8B5 !important;
  position: relative;
  background: linear-gradient(135deg, rgba(0, 168, 181, 0.15), rgba(0, 139, 148, 0.2)) !important;
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #00A8B5, #F7941D);
  color: #000;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 0 14px 0 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Pricing Header */
.pricing-header {
  padding: 24px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

.pricing-header h4 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
}

.pricing-amount {
  font-size: 2.8rem;
  font-weight: bold;
  color: #00A8B5;
  line-height: 1;
}

.pricing-savings {
  margin-top: 10px;
  color: #10b981;
  font-weight: bold;
  font-size: 1rem;
}

/* Pricing Body */
.pricing-body {
  padding: 24px;
}

/* Pricing Features List */
.pricing-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pricing-features li {
  padding: 10px 0 !important;
  padding-left: 28px !important;
  position: relative !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.95rem !important;
  text-align: left !important;
}

.pricing-features li::before {
  content: "✓" !important;
  position: absolute !important;
  left: 0 !important;
  color: #10b981 !important;
  font-weight: bold !important;
  font-size: 1rem !important;
}

.pricing-card-featured .pricing-features li::before {
  color: #00A8B5 !important;
}

/* Pricing Highlight Box */
.pricing-highlight {
  margin-top: 20px;
  padding: 14px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  text-align: center;
  color: #10b981;
  font-size: 0.95rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Pricing Disclaimer */
.pricing-disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 20px;
}

/* ============================================ */
/* CTA SECTION */
/* ============================================ */

.prequal-cta {
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.prequal-cta p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

.prequal-cta .quiz-button {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, #00A8B5, #F7941D);
  color: #000;
  font-weight: 600;
}

.prequal-cta .quiz-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 168, 181, 0.5);
}

/* ============================================ */
/* DECLINED STATE */
/* ============================================ */

.declined-card {
  border-color: rgba(239, 68, 68, 0.3);
}

.declined-icon {
  background: var(--warning, #f59e0b) !important;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.5) !important;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */

@media (max-width: 768px) {
  .prequal-header {
    padding: 30px 15px;
  }

  #success .success-card {
    padding: 24px 16px;
  }

  #success .benefits-list {
    grid-template-columns: 1fr;
  }

  .pricing-section {
    padding: 20px 16px;
  }

  .pricing-cards {
    grid-template-columns: 1fr !important;
  }

  .pricing-amount {
    font-size: 2.2rem;
  }

  .prequal-cta .quiz-button {
    width: 100%;
  }
}
