/* Plan Selection Page - Clean CSS */
.plan-selection-plan-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Open Sans', Arial, sans-serif;
}

.plan-selection-header {
  text-align: center;
  margin-bottom: 40px;
}

.plan-selection-header h1 {
  color: #2c3e50;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.plan-selection-header p {
  color: #666;
  font-size: 18px;
  margin: 0;
}

.plan-selection-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.plan-selection-plan-card {
  background: white;
  border: 2px solid #ecf0f1;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-height: 450px;
  display: flex;
  flex-direction: column;
}

.plan-selection-plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #2157ac;
}

.plan-selection-plan-card.featured {
  border-color: #2157ac;
  transform: scale(1.02);
}

.plan-selection-plan-card.selected {
  background: #f0f7ff;
  border-color: #27ae60;
  border-width: 3px;
}

.plan-selection-plan-card.originally-selected::before {
  content: 'Your Original Choice';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #27ae60;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* MOST POPULAR badge for featured card */
.plan-selection-plan-card.featured::after {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2157ac;
  color: white;
  padding: 6px 16px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

/* Style for the actual HTML badge element */
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2157ac;
  color: white;
  padding: 6px 16px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}


/* Plan Header Styles */
.plan-header {
  margin-bottom: 25px;
}

.plan-header h3 {
  color: #2c3e50;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.plan-price {
  font-size: 36px;
  font-weight: 700;
  color: #2157ac;
  margin-bottom: 8px;
}

.plan-price span {
  font-size: 16px;
  color: #666;
  font-weight: 400;
}

.plan-billing {
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
}

/* Search Limit Badges */
.search-limit {
  background: transparent;
  border: 2px solid #95a5a6;
  color: #95a5a6;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
}

.search-limit.basic {
  border-color: #95a5a6;
  color: #95a5a6;
}

.search-limit.pro {
  border-color: #2157ac;
  color: #2157ac;
}

.search-limit.unlimited {
  border-color: #27ae60;
  color: #27ae60;
}

/* Plan Features */
.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex: 1;
  text-align: left;
}

.plan-features li {
  padding: 5px 0;
  color: #555;
  font-size: 14px;
  position: relative;
  padding-left: 18px;
  line-height: 1.4;
  text-align: left;
}

.plan-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
  font-size: 12px;
}

/* Plan Buttons */
.plan-selection-plan-button {
  background: #2157ac;
  color: white !important;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
  text-decoration: none !important;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.plan-selection-plan-button:hover {
  background: #1a4a94;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 87, 172, 0.3);
  text-decoration: none !important;
}

/* Footer Section */
.plan-selection-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ecf0f1;
}

.continue-original-link {
  display: inline-block;
  background: #27ae60;
  color: white !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.continue-original-link:hover {
  background: #229954;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
  text-decoration: none;
}

/* Static Support Section */
.plan-selection-support {
  text-align: center;
  margin: 40px auto;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 12px;
  max-width: 600px;
}

.plan-selection-support h4 {
  color: #2c3e50;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.plan-selection-support p {
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.support-link {
  background: #2157ac;
  color: white !important;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.support-link:hover {
  background: #1a4a94;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Tooltip Styles */
.tooltip-item {
  position: relative;
  cursor: pointer;
}

.tooltip-icon {
  margin-left: 6px;
  font-size: 12px;
  color: #2157ac;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.tooltip-icon:hover {
  opacity: 1;
}

.tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 2px solid #2157ac;
  border-radius: 8px;
  padding: 16px;
  width: 320px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  color: #2c3e50;
}

.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #2157ac;
}

.tooltip-content h4 {
  color: #2157ac;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.tooltip-content h5 {
  color: #2c3e50;
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tooltip-content p {
  margin: 0 0 8px 0;
  color: #555;
}

.tooltip-content ul {
  margin: 6px 0 0 0;
  padding-left: 16px;
}

.tooltip-content li {
  margin: 4px 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.3;
}

.tooltip-content li:before {
  content: "•";
  color: #2157ac;
  font-weight: bold;
  position: absolute;
  margin-left: -12px;
}

.tooltip-content a {
  color: #2157ac;
  text-decoration: underline;
  font-weight: 600;
}

.tooltip-content a:hover {
  color: #1a4a94;
}

/* Show tooltip on hover and click */
.tooltip-item:hover .tooltip-content,
.tooltip-item.tooltip-active .tooltip-content {
  opacity: 1;
  visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .plan-selection-plan-container {
    padding: 20px 15px;
  }
  
  .plan-selection-header h1 {
    font-size: 24px;
  }
  
  .plan-selection-plans-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .plan-selection-plan-card.featured {
    transform: none;
  }
  
  .plan-price {
    font-size: 28px;
  }
  
  .plan-selection-support {
    margin: 30px 15px;
    padding: 25px 20px;
  }
  
  .plan-selection-support h4 {
    font-size: 18px;
  }
  
  .plan-selection-support p {
    font-size: 15px;
  }
  
  .support-link {
    font-size: 13px;
    padding: 10px 20px;
  }
  
  /* Mobile tooltip adjustments */
  .tooltip-content {
    width: 280px;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .tooltip-content::after {
    display: none;
  }
  
  /* Close button for mobile */
  .tooltip-content::before {
    content: '✕';
    position: absolute;
    top: 8px;
    right: 12px;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    z-index: 1001;
  }
}
