#plan-header {
  text-align: center;
  color: #fff;           /* Set text color to white */
  margin: 0 auto;        /* Center the block element */
  max-width: 80%;        /* Do not exceed 50% of the container's width */
  width: 100%;           /* Allow the element to shrink if its content is smaller */
}

@media (max-width: 768px) {
  #plan-header {
    max-width: 60%;      /* Limit to 25% on mobile devices */
  }
}

.sales-button {
  display: inline-block;
  margin-top: 0px;
  padding: 8px 16px;
  background-color: #ff7b00; /* your orange color */
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.sales-button:hover {
  background-color: #ff9933; /* slightly lighter orange on hover */
}

/* If you'd like to center the button within the card */
.enterprise-action {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

/* 1. Set the background for the Plans section to black */
#plans {
  width: 100%;
  background-color: #000;
  padding: 40px 0; /* Add vertical padding as needed */
  box-sizing: border-box; /* Ensure padding doesn't exceed full width */
}

/* 2. Change the header text (h2 and the first paragraph) in the Plans section to white */
#plans > p {
  color: #fff;
}

/* 3. Within the Plans section, ensure proper text colors for white cards */
#plans .plan-card {
  color: #333;
}

#plans .plan-card h5 {
  color: #ff7b00 !important;
}

#plans .plan-card ul li {
  color: #666 !important;
}

#plans .plan-card .price {
  color: #ff7b00 !important;
}

#plans .plan-card .sales-button {
  color: #fff !important;
}

/* Set proper border styling for plan cards */
#plans .plan-card {
  border: 2px solid #ddd !important;
}

/* Orange border on hover */
#plans .plan-card:hover {
  border-color: #ff7b00 !important;
}

/* Orange border when selected */
#plans .plan-card.selected {
  border-color: #ff7b00 !important;
}

/***********************************************
  Section & Container Basics
***********************************************/
#plans {
  text-align: center;
  padding: 20px;
  margin: auto;
}
#plans h2,
#plans p {
  margin-bottom: 20px;
}

/***********************************************
  Plan Container & Axes Wrapper
***********************************************/
.plan-container {
  position: relative; /* Enables absolute positioning inside */
  width: 100%;
  margin: 50px 0 0 0;
}

/* Extend the decorative axes upward so the vertical line reaches up near "Our Plans" */
.chart-axes {
  position: absolute;
  top: -60px;          /* Extend upward 60px (adjust as needed) */
  left: 0;
  width: 100%;
  height: calc(100% + 60px);
  z-index: 0;
}

/* The plan cards are in their own wrapper that's pushed right */
.plans-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  flex-wrap: wrap;
  padding-left: 80px;    /* Push cards to the right so they don't cover the y-axis */
  padding-bottom: 60px;  /* Space for the x-axis arrow */
}



/***********************************************
  X-Axis (Horizontal)
***********************************************/
.axis-x {
  position: absolute;
  bottom: 40px;   /* Distance from bottom */
  left: 40px;     /* Starting point (same as vertical) */
  right: 10%;     /* Ends before the right edge */
  border-bottom: 2px solid #ff7b00;
}
.axis-x::after {
  content: '';
  position: absolute;
  right: -10px;   /* Place arrow just past the line end */
  bottom: -6px;   /* Adjust so the arrow is centered on the line */
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #ff7b00;
}

/***********************************************
  Y-Axis (Vertical)
***********************************************/
.axis-y {
  position: absolute;
  top: 0;         /* Now starts at the very top of .chart-axes */
  bottom: 40px;   /* Ends at the same level as the x-axis start */
  left: 40px;     /* Same starting point as x-axis */
  border-left: 2px solid #ff7b00;
}
.axis-y::after {
  content: '';
  position: absolute;
  top: -10px;     /* Arrow extends above the top end */
  left: -6px;     /* Center arrow on the vertical line */
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid #ff7b00;
}

/***********************************************
  Plan Cards - Clean Professional Layout (Made Smaller)
***********************************************/
.plan-card {
  width: 20%;  /* Reduced from 22% */
  margin: 8px;  /* Reduced from 10px */
  padding: 0;
  border-radius: 12px;  /* Match sample reports */
  background: white;  /* Match sample reports */
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);  /* Match sample reports shadow */
  text-align: left;
  border: 2px solid #ddd;  /* Light border like sample reports */
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-2px);  /* More subtle bounce */
  box-shadow: 0 12px 35px rgba(255, 123, 0, 0.15);  /* Orange shadow on hover */
  border-color: #ff7b00;
}

.plan-card.selected {
  border-color: #ff7b00;
}

/* Card Header */
.plan-card h5 {
  margin: 0;
  padding: 15px 15px 8px 15px;  /* Reduced padding */
  font-size: 1.3em;  /* Reduced from 1.5em */
  font-weight: bold;
}

/* Card Content */
.plan-card ul {
  list-style: none;
  padding: 0 15px;  /* Reduced from 20px */
  margin: 0;
  flex-grow: 1;
}

.plan-card ul li {
  padding: 8px 0 8px 20px;
  position: relative;
  margin-bottom: 5px;
}

.plan-card ul li::before {
  content: '✓';
  color: #ff7b00;
  position: absolute;
  left: 0;
  top: 8px;
  font-weight: bold;
}

/* Card Footer - Contains Price and Button */
.plan-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin-top: auto;
  background-color: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 123, 0, 0.2);
}

.price {
  font-size: 1.5em;
  font-weight: bold;
  color: #ff7b00;
  margin: 0;
}

.plan-action,
.enterprise-action {
  margin: 0;
}

.sales-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff7b00;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.sales-button:hover {
  background-color: #ff9933;
}

/* Individual plan heights for visual hierarchy */
.plan-card.demonstration {
  min-height: 220px;  /* Reduced from 260px */
  background: white;  /* Match other cards */
  border-color: #ff7b00;
}

@media (max-width: 768px) {
  .plan-card.demonstration {
    min-height: 180px;  /* Reduced from 220px */
  }
}

.plan-card.basic         { min-height: 280px; }  /* Reduced from 320px */
.plan-card.plus          { min-height: 320px; }  /* Reduced from 380px */
.plan-card.premium       { min-height: 360px; }  /* Reduced from 440px */

/***********************************************
  Special Banner & Recommended Animation
***********************************************/
.special-banner {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #ff7b00;
  color: white;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 123, 0, 0.3);
  z-index: 10;
}
.recommended {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(255, 123, 0, 0.7); }
  70% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 0 0 8px rgba(255, 123, 0, 0); }
  100% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(255, 123, 0, 0); }
}



/***********************************************
  Tooltip for Data-Tooltip (Optional)
***********************************************/
.plan-card::before {
  content: attr(data-tooltip);
  position: absolute;
  display: none;
  width: 220px;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0,0,0,0.9);
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.85em;
  z-index: 999;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.plan-card:hover::before {
  display: block;
}

/***********************************************
  Note Text & Responsive Adjustments
***********************************************/
.note {
  color: lightgray;
  font-size: smaller;
}
@media (max-width: 768px) {
  .plans-wrapper {
    flex-direction: column;
    align-items: center;
    padding-left: 60px;
    padding-bottom: 80px;
  }
  .plan-card {
    width: 80%;
    margin: 15px 0;
  }
  .plan-card-footer {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px;
    text-align: center !important;
  }
  .plan-card-footer .price {
    margin-bottom: 5px;
  }
  .axis-x { left: 40px; right: 10%; }
  .axis-y { left: 40px; }

}

@media (max-width: 480px) {
  .plan-card {
    width: 90%;
  }
  .plan-card-footer {
    gap: 15px;
  }
  .plans-wrapper {
    padding-left: 40px;
  }

}

/* Make the tooltip popup white with black text */
.plan-card::before {
  content: attr(data-tooltip);
  position: absolute;
  display: none;
  width: 220px;
  bottom: 110%;               /* Positions the tooltip above the card */
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;     /* White background for contrast */
  color: #000;                /* Black text for legibility */
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.85em;
  z-index: 999;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* Display the tooltip on hover */
.plan-card:hover::before {
  display: block;
}

.popup-container {
  position: relative;
  display: inline-block;
  cursor: default;
  border-bottom: 1px dotted #333;
}
.popup-container .popup-content {
  display: none;
  opacity: 0;  /* Start as invisible */
  position: absolute;
  bottom: 110%; /* Position it above the text */
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background-color: #fff;
  color: #000;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.85em;
  z-index: 999;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  transition: opacity 0.5s ease-out; /* Smooth fade-out effect */
}

.popup-container:hover .popup-content {
  display: block;
  opacity: 1; /* Fully visible */
}

/* Adjust the popup header to use the same font size and remove extra spacing */
.popup-container .popup-content h3 {
  font-size: 1em;
  margin: 10;
  line-height: 1;
}
.popup-container .popup-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.popup-container:hover .popup-content {
  display: block;
}

/* Stack price & button for medium screens */
@media (max-width: 1000px) {
  .plan-card-footer {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px;
    text-align: center !important;
  }
  .plan-card-footer .price { margin-bottom: 5px; }
}

/***********************************************
  New Package-Based Pricing Styles
***********************************************/
.pricing-explanation {
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.how-it-works h3 {
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.explanation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.explanation-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  text-align: left;
}

.explanation-icon {
  font-size: 2rem;
  background: #ff7b00;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.explanation-text h4 {
  color: #fff;
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.explanation-text p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
}

.package-selector {
  max-width: 600px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.package-selector h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.package-dropdown-container {
  position: relative;
}

#industry-package-selector {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
  border: 2px solid #ff7b00;
  border-radius: 10px;
  background: white;
  color: #333;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

#industry-package-selector:hover {
  border-color: #ff9933;
  box-shadow: 0 4px 15px rgba(255, 123, 0, 0.2);
}

.package-display {
  max-width: 700px;
  margin: 0 auto;
}

.package-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 2px solid #ddd;
  transition: all 0.3s ease;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 123, 0, 0.15);
  border-color: #ff7b00;
}

.package-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 20px;
}

.package-header h4 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin: 0;
}

.package-badge {
  background: #ff7b00;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.package-pricing {
  text-align: center;
  margin-bottom: 30px;
}

.base-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
}

.price-amount {
  font-size: 3rem;
  font-weight: bold;
  color: #ff7b00;
}

.price-period {
  font-size: 1.2rem;
  color: #666;
}

.price-description {
  color: #666;
  font-size: 1rem;
}

.package-features {
  margin-bottom: 30px;
}

.package-features h5 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.package-features ul {
  list-style: none;
  padding: 0;
}

.package-features li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  position: relative;
  padding-left: 25px;
}

.package-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff7b00;
  font-weight: bold;
}

.package-features li:last-child {
  border-bottom: none;
}

.package-addons {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.package-addons h5 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.addon-item {
  margin-bottom: 15px;
}

.addon-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.addon-checkbox input[type="checkbox"] {
  margin-top: 5px;
  transform: scale(1.2);
  accent-color: #ff7b00;
}

.addon-checkbox label {
  cursor: pointer;
  color: #333;
  line-height: 1.5;
}

.addon-checkbox label strong {
  color: #2c3e50;
}

.addon-description {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

.package-total {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px solid #ff7b00;
}

.total-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
}

#total-amount {
  color: #ff7b00;
  font-size: 2rem;
}

.package-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.cta-button {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}

.cta-button.primary {
  background: #ff7b00;
  color: white;
}

.cta-button.primary:hover {
  background: #ff9933;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 123, 0, 0.3);
}

.cta-button.secondary {
  background: transparent;
  color: #ff7b00;
  border: 2px solid #ff7b00;
}

.cta-button.secondary:hover {
  background: #ff7b00;
  color: white;
  transform: translateY(-2px);
}

    .pricing-benefits {
    max-width: 700px;
    margin: 30px auto 0 auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 123, 0, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }

  .benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
  }

  .pricing-benefits .benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .pricing-benefits .benefit-item i {
    color: #ff7b00;
    font-size: 1.3rem;
    flex-shrink: 0;
  }

  .pricing-benefits .benefit-item span {
    color: #fff !important;
  }

/***********************************************
  Modern Compact Pricing Section with 3D Flip Cards
***********************************************/
.three-tier-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
}

/* Target the specific medium width range where we get 2-1 layout */
@media (min-width: 769px) and (max-width: 950px) {
  .three-tier-pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    justify-items: center;
  }
  
  .pricing-tier {
    width: 300px;
    max-width: 300px;
  }
  
  .pricing-tier:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  
  .pricing-tier:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  
  .pricing-tier:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-self: center;
  }
}

.pricing-tier {
  flex: 1;
  perspective: 1000px;
}

.tier-card {
  background: transparent;
  border: none;
  border-radius: 12px;
  min-height: 420px; /* Reduced for better proportions */
  max-height: 500px; /* Reduced for better proportions */
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.tier-card:hover:not(.flipped) {
  transform: translateY(-3px);
}

.tier-card.flipped {
  transform: rotateY(180deg);
}

.tier-card.flipped:hover {
  transform: rotateY(180deg) translateY(-3px);
}

/* Card Front and Back Sides */
.card-side {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: white;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  border: 2px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-front {
  z-index: 2;
}

.card-back {
  z-index: 1;
  transform: rotateY(180deg);
}

/* Hover effects for individual card sides */
.tier-card:hover:not(.flipped) .card-front {
  box-shadow: 0 8px 25px rgba(255, 123, 0, 0.15);
  border-color: #ff7b00;
}

.tier-card:hover:not(.flipped) .card-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 123, 0, 0.02);
  pointer-events: none;
  z-index: 1;
}

.tier-card.flipped:hover .card-back {
  box-shadow: 0 8px 25px rgba(255, 123, 0, 0.15);
  border-color: #ff7b00;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px; /* Reduced margin */
  padding-bottom: 8px; /* Reduced padding */
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0; /* Prevent shrinking */
}

.tier-header h3 {
  color: #2c3e50;
  font-size: 1.2rem; /* Reduced font size */
  margin: 0;
  font-weight: 600;
}

.tier-badge {
  padding: 3px 8px; /* Reduced padding */
  border-radius: 10px;
  font-size: 0.7rem; /* Reduced font size */
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.tier-badge.free {
  background: #e8f5e8;
  color: #2e7d32;
}

.tier-badge.popular {
  background: #ff7b00;
  color: white;
}

.tier-badge.premium {
  background: #6c757d;
  color: white;
}

.tier-pricing {
  text-align: center;
  margin-bottom: 15px; /* Reduced margin */
  flex-shrink: 0;
}

.tier-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin-bottom: 4px; /* Reduced margin */
}

.tier-price .price-amount {
  font-size: 2.2rem; /* Reduced font size */
  font-weight: bold;
  color: #ff7b00;
  line-height: 1;
}

.tier-price .price-period {
  font-size: 0.85rem;
  color: #666;
}

.price-description {
  color: #666;
  font-size: 0.8rem; /* Reduced font size */
  margin-bottom: 12px; /* Reduced margin */
}

.tier-features {
  margin-bottom: 12px; /* Reduced margin */
  flex-grow: 1;
  overflow-y: auto; /* Allow scrolling if needed */
  min-height: 0; /* Allow flex item to shrink */
}

.tier-features h4 {
  color: #2c3e50;
  margin-bottom: 10px; /* Reduced margin */
  font-size: 0.95rem; /* Reduced font size */
  font-weight: 600;
}

.tier-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tier-features li {
  padding: 3px 0; /* Reduced padding */
  color: #555;
  position: relative;
  padding-left: 18px; /* Reduced padding */
  font-size: 0.8rem; /* Reduced font size */
  line-height: 1.3; /* Reduced line height */
}

.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff7b00;
  font-weight: bold;
  font-size: 0.85rem;
}

/* Back side specific styles */
.card-back .tier-features {
  margin-bottom: 8px; /* Reduced margin */
}

.card-back .tier-features h4 {
  color: #2c3e50;
  font-size: 1rem;
  margin-bottom: 12px;
  text-align: center;
  border-bottom: 2px solid #ff7b00;
  padding-bottom: 6px; /* Reduced padding */
}

.card-back .tier-features li {
  font-size: 0.75rem; /* Reduced font size */
  padding: 2px 0; /* Reduced padding */
  line-height: 1.2; /* Reduced line height */
}

.industry-selector {
  margin-bottom: 12px; /* Reduced margin */
  flex-shrink: 0;
}

.industry-selector select {
  width: 100%;
  padding: 6px 10px; /* Reduced padding */
  border: 2px solid #e9ecef;
  border-radius: 6px;
  background: white;
  color: #333;
  font-size: 0.8rem; /* Reduced font size */
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease;
  position: relative;
  z-index: 2; /* Ensure select is above card click layer */
}

.industry-selector select:hover,
.industry-selector select:focus {
  border-color: #ff7b00;
}

.tier-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px; /* Reduced gap */
  flex-shrink: 0; /* Prevent shrinking */
  padding-top: 8px; /* Add some top padding */
}

.tier-button {
  width: 100%;
  padding: 8px 12px; /* Further reduced padding */
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem; /* Further reduced font size */
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* Further reduced gap */
  cursor: pointer;
  border: none;
  position: relative;
  z-index: 2; /* Ensure buttons are above card click layer */
  margin-bottom: 0.5rem; /* Add spacing between buttons */
}

.tier-button.primary {
  background: #ff7b00;
  color: white;
}

.tier-button.primary:hover {
  background: #e6690a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 123, 0, 0.3);
}

.tier-button.secondary {
  background: transparent;
  color: #ff7b00;
  border: 2px solid #ff7b00;
  padding: 8px 16px; /* Reduced padding */
  font-size: 0.8rem; /* Reduced font size */
}

.tier-button.secondary:hover {
  background: #ff7b00;
  color: white;
}

/* More Details Button */
.more-details-btn {
  background: transparent;
  color: #ff7b00;
  border: 2px solid #ff7b00;
  padding: 6px 12px; /* Reduced padding */
  border-radius: 6px;
  font-size: 0.8rem; /* Reduced font size */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* Reduced gap */
  position: relative;
  z-index: 2; /* Ensure buttons are above card click layer */
}

.more-details-btn:hover {
  background: #ff7b00;
  color: white;
  transform: translateY(-1px);
}

/* Back Button */
.back-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 6px 12px; /* Reduced padding */
  border-radius: 6px;
  font-size: 0.8rem; /* Reduced font size */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* Reduced gap */
  position: relative;
  z-index: 2; /* Ensure buttons are above card click layer */
}

.back-btn:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

/* Selected plan styling */
.tier-card.selected-plan .card-side {
  border-color: #ff7b00 !important;
  box-shadow: 0 8px 25px rgba(255, 123, 0, 0.2) !important;
}

.tier-card.selected-plan::after {
  content: "✓ SELECTED";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff7b00;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  z-index: 10;
}

/***********************************************
  Compact Add-ons Section
***********************************************/
.addons-section h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 4px;
  text-align: center;
}

.addons-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  font-size: 0.85rem;
  text-align: center;
}

.addons-container {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid #e9ecef;
}

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

.addon-row:last-child {
  border-bottom: none;
}

.addon-info {
  flex: 1;
}

.addon-info h4 {
  color: #2c3e50;
  font-size: 1.05rem;
  margin: 0 0 3px 0;
  font-weight: 600;
}

.addon-info p {
  color: #666;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.3;
}

.addon-info a {
  color: #ff7b00;
  text-decoration: none;
  font-weight: 500;
}

.addon-info a:hover {
  text-decoration: underline;
}

.addon-pricing {
  display: flex;
  align-items: center;
  gap: 12px;
}

.addon-price {
  background: #ff7b00;
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.85rem;
  border: 1px solid #e6690a;
}

.addon-checkbox {
  display: flex;
  align-items: center;
  gap: 4px;
}

.addon-checkbox input[type="checkbox"] {
  transform: scale(1.1);
  accent-color: #ff7b00;
  margin: 0;
}

.addon-checkbox label {
  cursor: pointer;
  color: #2c3e50;
  font-weight: 500;
  font-size: 0.85rem;
  margin: 0;
}

/***********************************************
  Add-ons Section
***********************************************/
.addons-section {
  max-width: 1000px;
  margin: 25px auto;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.final-pricing {
  max-width: 600px;
  margin: 25px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}




.final-cta {
  text-align: center;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.final-cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: #ff7b00;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-bottom: 8px;
}

.final-cta-button:hover {
  background: #e6690a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 123, 0, 0.3);
  color: white;
  text-decoration: none;
}

.cta-note {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  margin: 0;
}

.pricing-benefits {
  max-width: 1000px;
  margin: 20px auto 0 auto;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

/* Removed duplicate benefit-item styles - using .pricing-benefits .benefit-item above */

/***********************************************
  Modal for Feature Details
***********************************************/
.features-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #ff7b00;
}

.modal-content h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-content li {
  padding: 8px 0;
  color: #555;
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff7b00;
  font-weight: bold;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/***********************************************
  Responsive Design
***********************************************/
@media (max-width: 768px) {
  .three-tier-pricing {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }
  
  .tier-card {
    height: 380px; /* Slightly shorter on mobile */
  }
  
  .card-side {
    padding: 15px;
  }
  
  .tier-header h3 {
    font-size: 1.2rem;
  }
  
  .tier-price .price-amount {
    font-size: 2rem;
  }
  
  .addon-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .addon-pricing {
    width: 100%;
    justify-content: space-between;
  }
  
  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  

}

@media (max-width: 480px) {
  .tier-card {
    height: 360px;
  }
  
  .tier-price .price-amount {
    font-size: 1.8rem;
  }
  
  .tier-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .tier-badge {
    align-self: flex-end;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .tier-card {
    min-height: 400px; /* Increased from 380px to 400px (+20px) */
    max-height: 470px; /* Increased from 450px to 470px (+20px) */
  }
  
  .card-side {
    padding: 12px; /* Reduced padding on mobile */
  }
  
  .tier-header h3 {
    font-size: 1.1rem; /* Smaller font on mobile */
  }
  
  .tier-price .price-amount {
    font-size: 1.8rem; /* Smaller price on mobile */
  }
  
  .tier-features li {
    font-size: 0.75rem; /* Smaller features text on mobile */
    padding: 2px 0;
    line-height: 1.2;
  }
  
  .card-back .tier-features li {
    font-size: 0.7rem; /* Even smaller on back side */
  }
  
  .tier-button {
    padding: 8px 12px; /* Smaller buttons on mobile */
    font-size: 0.8rem;
  }
  
  .more-details-btn,
  .back-btn {
    padding: 5px 10px; /* Smaller detail buttons on mobile */
    font-size: 0.75rem;
  }
  
  .tier-actions {
    gap: 4px; /* Smaller gap on mobile */
  }
}

