#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; }
}

