/* banner image */
.banner-img {
  max-height: 500px;
}

/* banner buttons */
.banner-btns {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.banner-btns>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.health-insurance-policy-builder-btn:hover {
  background-color: transparent !important;
  border: 1px solid #f30404;
}

/* index page h1 */
.banner-heading {
  font-size: 42px !important;
  line-height: 54px !important;
}

.justify-text {
  text-align: justify;
}

.main-navbar .navbar .navbar-brand img,
.footer-widget a img {
  max-width: 300px;
}

.navbar-brand>img {
  max-height: 66px;
}

.tusted-by-img {
  height: 100px;
  object-fit: contain;
}

.place-map>div>iframe {
  width: 100%;
}

.footer-link {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #000 !important;
}

.blog-author>img {
  max-height: 40px;
}

/* form */
.form-img-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-img-card>label>img {
  max-height: 80px;
}

.health-insurance-policy-analyser-card>label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.health-insurance-policy-analyser-card>label>img {
  max-height: 120px;
}

/* testimonial image */
.testimonial-img {
  height: 85px !important;
  width: 85px !important;
}

@media (max-width: 1200px) {
  .banner-btns {
    flex-direction: column;
    gap: 0;
  }
}

@media (min-width: 768px) {
  .blog-img>a>img {
    min-height: 280px;
  }
}

@media (min-width: 1000px) {
  .contact-card {
    min-height: 220px;
  }
}

@media (max-width: 1000px) {
  .c-s {
    display: none;
  }
}

.recommendation-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.recommendation-card:hover,
.best-plan-tag:hover+.recommendation-card {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.recommendation-card-container:hover .best-plan-tag {
  transform: translateY(-2px);
  box-shadow: 0 -2px 8px rgba(220, 53, 69, 0.3), 0 6px 25px rgba(0, 0, 0, 0.15);
}

.recommendation-card-container:hover .recommendation-card {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.recommendation-card.expanded {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.card-content {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.company-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2dc38c, #2cbba0);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.plan-info {
  flex: 1;
}

.plan-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.plan-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.sum-insured-badge {
  background: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}

.score-badge {
  background: #ffc107;
  color: #333;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}

.plan-details-row {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #666;
  font-size: 14px;
  flex-wrap: wrap;
}

.best-plan-badge {
  background: #dc3545;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 10px;
  font-weight: bold;
  margin-left: 10px;
  white-space: nowrap;
}

.best-plan-tag {
  background: #dc3545;
  color: white;
  padding: 8px 20px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0;
  margin-left: -88.5%;
  z-index: -3;
  box-shadow: 0 -2px 8px rgba(220, 53, 69, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recommendation-card.with-best-plan {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.recommendation-card-container.best-plan {
  position: relative;
}

.right-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.plan-price {
  text-align: right;
}

.price-amount {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.price-period {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.show-more-btn {
  background: linear-gradient(135deg, #2dc38c, #2cbba0);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.show-more-btn:hover {
  background: linear-gradient(135deg, #28a376, #27a08a);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.show-more-btn.active {
  background: linear-gradient(135deg, #259d6d, #238f7c);
}

.recommendations-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 30px;
  align-items: center;
  width: 100%;
}

.recommendation-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
  /* Reduced from 1200px to make cards shorter than user card */
  margin-bottom: 20px;
}

.plan-details-dropdown {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-top: none;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  padding: 20px;
  display: none;
  animation: slideDown 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.plan-details-dropdown.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-section {
  margin-bottom: 25px;
}

.detail-section h5 {
  color: #007bff;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f8f9fa;
}

.detail-label {
  font-weight: 500;
  color: #495057;
  flex: 1;
}

.detail-value {
  color: #333;
  font-weight: 500;
  flex: 1;
  text-align: right;
}

.no-recommendations {
  text-align: center;
  padding: 50px;
  background: #f8f9fa;
  border-radius: 15px;
  margin-top: 30px;
}

/* Center the entire recommendations section */
#user_policy_recommendation {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#user_policy_recommendation h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Main container adjustments */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

@media (max-width: 768px) {
  .card-content {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .left-section {
    width: 100%;
  }

  .right-section {
    width: 100%;
    justify-content: space-between;
  }

  .plan-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .plan-details-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .price-amount {
    font-size: 20px;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .detail-value {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .card-content {
    padding: 15px;
  }

  .company-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .plan-title {
    font-size: 16px;
  }

  .best-plan-tag {
    margin-left: -74%;
  }

  .sum-insured-badge,
  .score-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* ADD THIS TO THE EXISTING <style> SECTION IN thank-you.php */

.fps-filter-notice {
  background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
  border: 1px solid #2196f3;
  color: #1565c0;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fps-filter-notice i {
  color: #2196f3;
  margin-right: 8px;
  font-size: 1.1em;
}

.fps-filter-notice strong {
  color: #0d47a1;
}

/* Enhanced alert styles for no recommendations */
.alert-info {
  border-left: 4px solid #2196f3;
  background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
}

.alert-info h5 {
  color: #1565c0;
  font-weight: 600;
}

.alert-info .bg-light {
  background-color: #ffffff !important;
  border: 1px solid #dee2e6;
}

.alert-info ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.alert-info ul li {
  margin-bottom: 5px;
  color: #495057;
}

/* Button styling for no recommendations section */
.alert-info .btn-block {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-info .text-muted {
  font-size: 0.85em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fps-filter-notice {
    padding: 12px 15px;
    font-size: 0.9em;
  }

  .alert-info .row .col-md-6 {
    margin-bottom: 10px;
  }
}