/* Plans Public Styles - Flexbox & Pixel Perfect */

.fb-plans-wrapper {
  --fb-orange: #ffa500;
  --fb-dark-bg: linear-gradient(331deg, #9a9895 0%, #372f22 78%);
  --fb-card-bg: #4b4b4b;
  --fb-text-white: #ffffff;
  --fb-text-muted: rgba(255, 255, 255, 0.8);
  --fb-border: rgba(255, 255, 255, 0.2);

  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background-color: transparent;
  color: var(--fb-text-white);
  padding: 50px 20px;
}

/* Flexbox Grid Container */
.fb-plans-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Individual Plan Card */
.fb-plan-card {
  flex: 1 1 320px; /* Reduced flex basis for better wrap */
  max-width: 420px;
  background: var(--fb-card-bg);
  border-radius: 40px;
  padding: 35px;
  border: 1px solid var(--fb-border);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fb-plan-card:hover {
  transform: translateY(-8px);
}

/* Highlighted Plan */
.fb-plan-highlighted {
  border: 5px solid var(--fb-orange);
  box-shadow: 0 20px 60px rgba(255, 165, 0, 0.2);
}

/* Top Badge Area - Removed Absolute Positioning to prevent overlap */
.fb-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px; /* Spacing below badges */
  min-height: 48px;
  gap: 10px;
  flex-wrap: wrap; /* Allow badges to wrap if needed on very small screens */
}

.fb-card-ribbon {
  background: var(--fb-orange);
  color: #fff;
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.fb-card-badge {
  background: #e4e4e4;
  color: #333;
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* Content Area */
.fb-plan-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fb-plan-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 20px 0;
  color: #fff;
  line-height: 1.2;
}

/* Pricing Section */
.fb-plan-pricing-row {
  margin-bottom: 5px;
}

.fb-plan-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.fb-currency {
  font-size: 44px;
  color: var(--fb-orange);
  font-weight: 900;
}

.fb-amount {
  font-size: 32px;
  font-weight: 900;
  color: var(--fb-orange);
  line-height: 1;
}

.fb-plan-suffix {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}

.fb-plan-divider {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.4);
  margin: 25px 0;
}

.fb-plan-meta {
  font-size: 16px;
  font-weight: 800;
  color: var(--fb-text-muted);
  line-height: 1.5;
  min-height: 48px;
}

.fb-plan-duration-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 157, 95, 0.15);
  padding: 6px 12px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 25px;
  border: 1px solid rgba(197, 157, 95, 0.3);
  font-size: 14px;
  font-weight: 700;
  color: #c59d5f;
}

.fb-clock-icon {
  font-size: 16px;
}

/* Features List */
.fb-plan-features-list {
  margin-bottom: 20px;
  flex-grow: 1;
}

.fb-feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.fb-check {
  color: var(--fb-orange);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-feature-text {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}

/* Plan Button (Book Now / Talk to Expert) */
.fb-plan-action {
  margin-top: auto;
}

.fb-plan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 22px;
  text-align: center;
  text-decoration: none;
  border: 3px solid #fff;
  color: #fff;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 900;
  background: #333;
  transition: all 0.3s ease;
}

/* The orange "Book Now" button for highlighted plans */
.fb-plan-highlighted .fb-plan-button {
  background: var(--fb-orange);
  border-color: var(--fb-orange);
  color: #fff;
}

.fb-plan-button:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Flight Header Style Refinement for the new look */
.fb-plans-flight-header {
  max-width: 1000px;
  margin: 0 auto 50px auto;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 25px;
  display: none;
}

.fb-flight-info-row {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

/* Responsive Scaling */
@media (max-width: 992px) {
  .fb-plan-card {
    flex: 1 1 45%;
  }
}

@media (max-width: 768px) {
  .fb-plan-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .fb-flight-info-row {
    gap: 20px;
  }

  .fb-amount {
    font-size: 30px;
  }
}
