/* Center the form on the page */
form {
  max-width: 500px;
  margin: 0 auto; /* Center the form horizontally */
  display: flex;
  flex-direction: column;
}

.form-category {
  margin-bottom: 20px;
}

.form-container {
  width: 100%; /* Ensures it uses full width of the form */
  max-width: 100%; /* Prevents it from exceeding the form’s width */
  box-sizing: border-box; /* Includes padding and border in the element's total width and height */
}

/* Use a flexbox container to align labels and inputs */
.form-group {
  display: flex;
  width: 100%;
  margin-bottom: 7px; /* Add some space between form groups */
}

.form-group label {
  width: auto;
  flex: 1;
  text-align: left; /* Align labels to the left */
  margin-right: 10px;
}

.form-group input, 
.form-group ul {
  width: 30%;
}

.form-group ul { 
  margin-top: 10px;
  list-style-type: none;
  padding: 0;
  text-align: left; /* Align labels to the left */
}

.form-group textarea {
  min-width: 50%;
  line-height: 1.25; /* Example line-height, adjust as needed */
  min-height: 5em; /* 4 lines * line-height (e.g., 1.5em) */
}

.form-group select {
  width: 30%;
  max-width: 300px;
  box-sizing: border-box;
}

#currentSubscriptionLabel {
  text-align: left;
}

#currentSubscription {
  flex: 1;
  text-align: right;
}

#stripe-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}

.subscription {
  display: flex;
  width: 100%;
  align-items: center;  /* vertical alignment */
  justify-content: center;
}

.product {
  text-align: center;
  border: 3px solid var(--primary-color);
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product table.details td {
  text-align: center;
}

.product table.details td:first-child {
  text-align: left;
}

/* Style for datalist options (limited browser support) */
datalist option {
  font-size: 16px; /* Font size for options */
}

.submit-container {
  display: flex; /* Use flexbox layout */
  justify-content: center; /* Center buttons horizontally */
  gap: 10px; /* Space between buttons */
}

.submit-container input {
  width: auto; /* Allow button width to adjust based on content */
  min-width: 25%;
  font-size: 20px;
}

/* Style for checkboxes */
.checkbox-container {
  display: flex;
  align-items: center;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: var(--secondary-color); /* Set background color */
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.modal-content button {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
}
