/* Package Grid Layout */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50%, 1fr)); /* Increased width */
  gap: 10px;
  margin-top: 10px;
}

/* Package Box */
.package {
  border: 1px solid rgba(255, 255, 255, 0.2); /* Dark theme */
  border-radius: 6px;
  background: rgba(30, 30, 30, 0.4); /* Matches dark theme */
  color: #fff;
  padding: 8px; /* More padding */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: -10px; /* Adjusted margin */
  width: 98%; /* Maximum width */
  max-width: 100%;
}

/* Hover Effects */
.package:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(255, 255, 255, 0.15);
}

/* Package Header - Thumbnail and Sales Pitch Side by Side */
.package-header {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* Package Thumbnail */
.package-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 4px;
}

/* Package Sales Pitch  */
.package-pitch {
  flex-grow: 1;
  font-size: 1.1rem; /* Increased text size */
  margin: 0;
}

/* Package Title (In Header) */
.package h3 {
  font-size: 1.2rem;
  margin-top: 6px;
  text-align: center;
}

/* Hide Package Details by Default */
.package-details {
  display: none;
  margin-top: 6px;
}

/* Keep Starter Package Open */
.package.expanded .package-details {
  display: block;
}

/* Package Price */
.package-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffcc00; /* Gold accent */
  text-align: center;
  margin-top: 6px;
}

/* Order Now Button (Now 75% Width) */
.order-now {
  display: block;
  background: #007bff;
  color: white;
  text-align: center;
  padding: 6px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: bold;
  margin: 6px auto;
  width: 75%;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.order-now:hover {
  background: #0056b3;
}



/* Stripe Button Container */
.stripe-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 99%; /* Slightly increased from previous setting */
  margin: 1px auto;
  overflow: hidden; /* Ensures no excessive stretching */
  transform: none;
  padding: 1px 0; /* Adds vertical space without affecting other elements */
}



/* Responsive Adjustments */
@media (max-width: 1024px) { /* Larger Tablets */
  .packages-grid {
    grid-template-columns: repeat(auto-fit, minmax(60%, 1fr)); /* Wider layout */
  }
}

@media (max-width: 768px) { /* Small Tablets & Landscape Phones */
  .packages-grid {
    grid-template-columns: repeat(auto-fit, minmax(70%, 1fr)); /* More space for content */
  }
}

@media (max-width: 480px) { /* Smaller Phones (Vertical) */
  .packages-grid {
    grid-template-columns: repeat(auto-fit, minmax(98%, 1fr)); /* Almost full width */
  }
}