/* Version: 3.0.4 */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600&display=swap");

body {
  font-family: "Archivo", sans-serif;
  color: #76777b;
  overflow-x: hidden;
}

#wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
}

/* General Button Styles */
.beem-button-white {
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
  color: #ffffff;
  background-color: transparent;
  border-style: solid;
  border-width: 2px;
  border-color: #ffffff;
  border-radius: 100px;
}

.beem-button-padding {
  padding: 10px 50px;
}

.custom-select {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 15rem;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  z-index: 100;
  transition: opacity 0.3s ease-in-out;
}

.custom-select__option {
  width: 100%;
  padding: 0.5rem 1rem;
  color: #000;
  text-align: center;
  cursor: pointer;
}

.custom-select__option:hover {
  background-color: #ef4444;
  color: #fff;
}

.custom-select__button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
  color: var(--theme-color);
  background-color: transparent;
  border-style: solid;
  border-width: 2px;
  border-color: var(--theme-color);
  border-radius: 5px;
  padding: 10px 20px;
  min-width: 200px;
}

.custom-select__button svg {
  transform: rotate(90deg);
}

.custom-select__button:hover,
.custom-select__button:active {
  background-color: var(--primary-color);
  color: var(--bg-page);
  border-color: var(--primary-color);
  border-radius: 5px;
  padding: 10px 20px;
}

.custom-select__button:hover svg {
  fill: var(--bg-page);
}

#applyPromoBtn {
  padding: 10px 20px;
  font-size: 14px;
  height: 47px;
  min-width: 100px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Selectable Boxes */
.selectable-box {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background-color: #ff0000;
  padding: 15px 30px;
  border-radius: 100px;
  width: 200px;
  cursor: pointer;
}

.selectable-box-alt {
  font-weight: 500;
  color: #fa4238;
  background-color: #ffffff;
  border-style: solid;
  border-width: 1px;
  border-color: #fa4238;
  padding: 20px 30px;
  border-radius: 100px;
  cursor: pointer;
}

.selectable-box-colorful {
  font-weight: 500;
  color: #ffffff;
  background-image: linear-gradient(90deg, #ff0000 0%, #fa4238 100%);
  border-style: solid;
  border-width: 1px;
  border-color: #fa4238;
  padding: 20px 30px;
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.selectable-box-colorful.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Disabled and Selected States */
.selectable-box.disabled,
.selectable-box-alt.disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}

.selectable-box.enabled,
.selectable-box-alt.enabled {
  opacity: 1;
}

.selectable-box.selected,
.selectable-box-alt.selected {
  color: #ffffff;
  background-image: linear-gradient(90deg, #ff0000 0%, #fa4238 100%);
}

.selectable-box:hover:not(.disabled),
.selectable-box-alt:hover:not(.disabled) {
  border-color: rgba(255, 68, 56, 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Pricing Callout */
.pricing-callout {
  animation: pulse 1.5s infinite;
  max-width: 368px;
  width: 100%;
  margin: 0 auto;
}

/* Input Fields */
.input-field {
  width: 100% !important;
  max-width: 100% !important;
  background-color: #ffffff;
  border: 1px solid #76777bcc;
  border-radius: 25px !important;
  font-size: 16px;
  min-height: 47px;
  padding: 6px 16px;
  margin-bottom: 0;
  transition: all 0.2s ease;
}

.input-field:focus {
  border-color: #ff0000;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
  outline: none;
}

/* Ensure consistent styling for date input */
input[type="date"].input-field {
  padding-right: 16px;
  min-height: 47px;
  appearance: none;
  -webkit-appearance: none;
}

/* Style the date picker icon */
input[type="date"]::-webkit-calendar-picker-indicator {
  color: #ff0000;
  cursor: pointer;
  padding: 4px;
}

/* Style textarea consistently */
textarea.input-field {
  min-height: 100px;
  padding: 12px 16px;
  resize: vertical;
}

/* Section spacing */
.space-y-4.mx-auto.w-full.mb-8 {
  margin-bottom: 2rem;
}

/* Cost section styling */
.cost {
  background: #f8f8f8;
  border: 1px solid #e5e7eb;
  border-radius: 25px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.cost-row {
  padding: 0.75rem 0;
}

.cost-row:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}

/* Payment grid styling */
.grid.grid-cols-3.gap-4 {
  margin: 1rem 0;
}

/* Consistent label styling */
.mb-2.block.text-sm {
  color: #76777b;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Section headers */
.secondary-header-text {
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Remove any conflicting styles */
.form-item.payment-row__form-item {
  margin-bottom: 0;
  padding: 0;
}

/* Button Styles */
.button-style {
  width: 48%;
  padding: 8px;
  border-radius: 12px;
  transition: background-color 0.2s;
  max-height: 40px;
}

.button-next {
  background-color: #ff4438;
  color: white;
}

.button-next:hover {
  background-color: rgba(255, 68, 56, 0.9);
}

.button-back {
  background-color: #e5e7eb;
  color: #6b7280;
  width: 48%;
  padding: 8px;
  border-radius: 12px;
  transition: background-color 0.2s;
  max-height: 40px;
  border: none;
  cursor: pointer;
}

.button-back:hover {
  background-color: #d1d5db;
}

/* Header and Footer SVGs */
.beem-header-svg,
.beem-footer-svg {
  padding: 0px 0px 50px 0px;
  width: 100%;
  z-index: 999;
  position: relative;
  background: #fff;
}

.beem-footer-svg {
  transform: rotate(180deg);
}

.elementor-shape-fill {
  fill: #ff0000;
  transform-origin: center;
  transform: rotateY(0deg);
}

/* Text Styles */
.main-header-text {
  font-size: 40px;
  font-weight: 400;
  color: #ffffff;
  font-family: "Archivo", sans-serif;
  line-height: 1;
}

.third-header-text {
  color: #76777b;
  font-family: "Archivo", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

/* Section Styling */
.section {
  max-width: 1000px;
}

.section-padding {
  padding: 25px 25px;
}

/* Base Button */
.button-base {
  color: #fff;
  padding: 15px 30px;
}

.salt-3 {
  background-color: #ff0000;
}

/* Membership Options */
#membershipTypeOptions,
#membershipDurationOptions {
  justify-items: center;
  align-items: center;
}

/* Checkout Container and Rows */
.checkout-container {
  display: flex;
  flex-direction: column;
}

.checkout-row {
  display: flex;
  max-width: 880px;
  margin: 0 auto;
  gap: 2rem;
}

.checkout-column--left,
.checkout-column--right {
  width: 440px;
  flex: 0 0 440px;
}

.checkout-column {
  width: 48%;
}

/* Cost Section */
.cost-row--dark {
  font-weight: bold;
}

.cost-row-label {
  font-weight: bold;
  font-size: 1rem;
}

.cost-row-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ff4438;
}

/* Payment Section */
.payment-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-left: 0;
  padding-right: 0;
}

.payment-row__form-item {
  flex: 1;
}

.payment-row__form-item--small {
  flex: 0.5;
}

.expiration-fields {
  display: flex;
  gap: 8px;
}

.small-field {
  width: calc(50% - 4px);
  margin-right: 0;
  display: inline-block;
  box-sizing: border-box;
}

/* Submit Button Styling */
.payment-row__btn {
  width: 45%;
  padding: 10px 50px;
  background-color: #e5e7eb;
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 20px;
}

.submit-button {
  width: 55%;
  padding: 10px 50px;
  background-image: linear-gradient(90deg, #ff0000 0%, #fa4238 100%);
  border-color: #ff4438;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.payment-row__btn:hover {
  background-color: #d1d5db;
}

.submit-button:hover {
  background-color: #ff2a1f;
}

/* Disclaimer Text */
.disclaimer-text {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: justify;
  margin-top: 1rem;
  padding-bottom: 24px;
}

/* Footer Stickiness */
.stickToFooter {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 100px;
}

/* Loading Spinner */
#loadingSpinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background-image: linear-gradient(90deg, #ff0000 0%, #fa4238 100%);
  border-color: #ff4438;
  padding: 10px 20px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinner SVG */
#loadingSpinner svg {
  height: 30px;
  width: 30px;
}

/* Promo Code Feedback */
.promo-success {
  color: #ff0000;
  font-weight: 500;
}

.promo-error {
  color: #fa4238;
  font-weight: 500;
}

#promoFeedback {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* Error highlighting for checkboxes */
.input-checkbox.error {
  outline: 2px solid red;
  outline-offset: 2px;
}

.input-field.error {
  border-color: #ff4438;
  box-shadow: 0 0 0 2px rgba(255, 68, 56, 0.1);
}

.error-message {
  color: #ff4438;
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
}

.error-message:not(.hidden) {
  display: block;
}

.hidden {
  display: none;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .checkout-row {
    flex-direction: column;
    padding: 0 1rem;
    gap: 1rem;
  }

  .checkout-column--left,
  .checkout-column--right {
    width: 100%;
    flex: none;
  }

  .submit-button {
    width: 100%;
  }

  .small-field {
    width: calc(50% - 4px);
    margin-right: 4px;
    display: inline-block;
  }

  .disclaimer-text {
    padding-bottom: 150px;
  }

  #page2 .p-4.flex.justify-between {
    margin-bottom: 150px;
  }

  .stickToFooter {
    margin-bottom: 150px;
  }

  #page2 .p-4.flex.justify-between,
  #page2 .p-4.flex.justify-between {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin: 0;
    z-index: 1000;
  }

  .error-notification {
    width: calc(100% - 32px);
    top: 10px;
  }
}

@media (min-width: 768px) {
  #membershipTypeOptions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    gap: 1rem;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
}

#membershipTypeOptions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 100px;
}

#membershipTypeOptions > div {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* Card header */
#membershipTypeOptions > div > div:first-child {
  background-color: #ff0000;
  color: white;
  padding: 0.5rem;
  width: 100%;
  text-align: center;
}

/* Card content */
#membershipTypeOptions > div > div.p-6 {
  padding: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Price container */
#membershipTypeOptions .flex.justify-center {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  #membershipTypeOptions {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #membershipTypeOptions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  #membershipTypeOptions {
    grid-template-columns: 1fr;
  }
}

.selectable-box-alt,
.selectable-box-colorful {
  width: 48%;
  padding: 10px 30px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
}

.selectable-box-alt {
  background-color: #e5e7eb;
  color: #6b7280;
  border: none;
}

.selectable-box-colorful {
  background-image: linear-gradient(90deg, #ff0000 0%, #fa4238 100%);
  border-color: #ff4438;
  color: #fff;
  border: none;
}

.selectable-box-alt:hover {
  background-color: #d1d5db;
}

.selectable-box-colorful:hover {
  opacity: 0.9;
}

.line-through {
  text-decoration: line-through;
}

/* Add these styles */
html,
body {
  min-height: 100vh;
  margin: 0;
}

#content {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
}

footer:not(.gifts__footer, .cards__footer) {
  width: 100%;
  display: none;
}

/* Remove any extra spacing */
#page1,
#page2,
#page2 {
  padding-bottom: 2rem;
}

/* Add/update these styles */
body {
  overflow-x: hidden;
}

/* Update the wave container styles */
div[style*="overflow: hidden; transform: rotate(180deg)"] {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow-x: hidden;
}

/* Add this to your existing styles */
.contact-cta {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  color: #76777b;
}

.contact-cta a {
  color: #ff0000;
  text-decoration: none;
  font-weight: 500;
}

.contact-cta a:hover {
  color: #fa4238;
}

/* Add new styles for page-specific padding */
#page2 .p-4.flex.justify-between {
  margin-bottom: 100px;
}

.promo-input-container {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 4px;
}

.promo-input-container .input-field {
  margin-bottom: 0;
  flex: 1;
}

.input-field.promo-input {
  margin-bottom: 10px !important;
}

#promoSpinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Add these new styles */
#agreementSection {
  background: #f8f8f8;
  border: 1px solid #e5e7eb;
  border-radius: 25px;
  padding: 1rem;
  margin-top: 2rem;
}

.agreement-terms {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.signature-container {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.5rem;
}

#signatureCanvas {
  border: none;
  width: 100%;
  height: 150px;
  background: white;
}

#clearSignature {
  color: #6b7280;
  font-size: 0.875rem;
  padding: 0.5rem;
  cursor: pointer;
  border: none;
  background: none;
}

#clearSignature:hover {
  color: #374151;
}

/* Update these styles */
#page2 .p-4.flex.justify-between {
  position: relative;
  z-index: 10;
  background: white;
  margin-top: 2rem;
  padding-bottom: 100px;
}

/* Mobile styles */
@media (max-width: 768px) {
  #page2 .p-4.flex.justify-between {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-top: 0;
    z-index: 1000;
  }

  /* Add padding to container to prevent content from being hidden behind fixed buttons */
  #page2 .checkout-container {
    padding-bottom: 100px;
  }

  /* Ensure buttons are properly sized on mobile */
  #page2 .selectable-box-alt,
  #page2 .selectable-box-colorful {
    width: 48%;
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* Update the button container styles */
#page2 .p-4.flex.justify-between {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: white;
  z-index: 10;
}

/* Base styles for the buttons */
#page2 .selectable-box-alt,
#page2 .selectable-box-colorful {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  cursor: pointer;
}

/* Container spacing */
#page2 .checkout-container {
  padding-bottom: 120px;
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Fixed button container at bottom */
  #page2 .p-4.flex.justify-between {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 1rem;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  /* Adjust button sizes for mobile */
  #page2 .selectable-box-alt,
  #page2 .selectable-box-colorful {
    font-size: 14px;
    padding: 10px 15px;
    height: 41px;
    margin-top: 10;
  }

  /* Additional padding for content */
  #page2 .checkout-container {
    padding-bottom: 150px;
  }

  /* Ensure footer doesn't overlap */
  footer {
    margin-top: 80px;
    padding-bottom: 80px;
  }
}

/* Ensure buttons are visible */
#page2 .selectable-box-alt,
#page2 .selectable-box-colorful {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Remove any potential conflicting styles */
#page2 .hidden {
  display: flex !important;
}

/* Ensure footer stays at bottom */
footer {
  position: relative;
  width: 100%;
  z-index: 1;
}

.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#backButton3 {
  background-color: #ccc;
}

#submitButton {
  background-color: #ff4438;
  color: white;
}

/* Processing state styles */
#submitButton.processing {
  background-image: linear-gradient(90deg, #ff0000 0%, #fa4238 100%);
  cursor: wait;
}

/* Loading spinner for submit button */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Update these styles */
@media (max-width: 768px) {
  /* Sticky buttons for both page 2 and 3 */
  #page2 .p-4.flex.justify-between,
  #page2 .p-4.flex.justify-between {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin: 0;
    z-index: 1000;
  }

  footer .text-center.text-white.text-sm {
    padding-bottom: 80px;
  }

  #page2 .space-y-4,
  #page2 .checkout-container {
  }

  footer {
    margin-top: 0;
    padding-bottom: 0;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
  }
}

/* Update these button container styles */
#page2 .p-4.flex.justify-center {
  margin-top: 2rem;
  margin-bottom: 4rem;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  position: relative;
  z-index: 10;
}

/* Add padding to page 2 container */
#page2.space-y-6.section-padding {
  padding-bottom: 6rem;
}

/* Remove the fixed positioning for mobile */
@media (max-width: 768px) {
  #page2 .p-4.flex.justify-center {
    position: static;
    margin: 1rem auto;
    padding: 1rem;
  }
}

/* Remove the extra padding from page2 */
#page2 .space-y-6.section-padding {
  padding-bottom: 0;
}

@media (max-width: 768px) {
  .checkout-row {
    flex-direction: column;
  }

  /* Force order of elements on mobile */
  .checkout-column--left {
    order: -1;
    margin-bottom: 2rem;
  }

  .checkout-column--right {
    order: 1;
  }

  /* Ensure proper spacing */
  .checkout-container {
    padding: 1rem;
  }

  /* Make button full width on mobile */
  #submitButton {
    width: 100%;
    margin: 0;
  }
}

/* Add to your existing styles */
.general-error-message {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.general-error-message + button {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .general-error-message {
    margin: 1rem;
  }
}

.error-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  max-width: 90%;
  width: 400px;
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  border-radius: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: 25px;
}

.error-text-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.error-text {
  color: #dc2626;
  font-size: 14px;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
}

.error-subtitle {
  color: #4b5563;
  font-size: 12px;
  font-family: "Archivo", sans-serif;
}

.error-close {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  font-family: "Archivo", sans-serif;
}

.error-close:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .error-notification {
    width: calc(100% - 32px);
    top: 10px;
  }
}

.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner.hidden {
  display: none;
}

#membershipTypeOptions {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Make cards consistent width */
#membershipTypeOptions > div > div {
  width: 300px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  #membershipTypeOptions > div {
    flex-wrap: wrap;
  }
}

/* Add these styles */
.membership-section {
  width: 100%;
}

#monthlyMembershipOptions,
#yearlyMembershipOptions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  #monthlyMembershipOptions,
  #yearlyMembershipOptions {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #monthlyMembershipOptions,
  #yearlyMembershipOptions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  #monthlyMembershipOptions,
  #yearlyMembershipOptions {
    grid-template-columns: 1fr;
  }
}

/* Input Container and Groups */
.input-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: 780px !important;
  margin: 0 auto !important;
}

.input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

/* Input Fields */
.input-field {
  width: 100% !important;
  max-width: 100% !important;
  background-color: #ffffff;
  border: 1px solid #76777bcc;
  border-radius: 25px !important;
  font-size: 16px;
  min-height: 47px;
  padding: 6px 16px;
  margin-bottom: 0;
  transition: all 0.2s ease;
}

.input-field:focus {
  border-color: #ff0000;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
  outline: none;
}

/* Ensure consistent styling for date input */
input[type="date"].input-field {
  padding-right: 16px;
  min-height: 47px;
  appearance: none;
  -webkit-appearance: none;
}

/* Style the date picker icon */
input[type="date"]::-webkit-calendar-picker-indicator {
  color: #ff0000;
  cursor: pointer;
  padding: 4px;
}

/* Style textarea consistently */
textarea.input-field {
  min-height: 100px;
  padding: 12px 16px;
  resize: vertical;
}

/* Error Messages */
.error-message {
  color: #ff4438;
  font-size: 0.875rem;
  margin-top: 4px;
  width: 100%;
}

.error-message:not(.hidden) {
  display: block;
}

/* Specific to Page 2 Form */
#page2 .input-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#page2 .input-group {
  margin-bottom: 0;
}

#page2 .input-field {
  width: 100%;
  max-width: 100%;
}

/* Remove conflicting styles */
.input-field {
  margin-bottom: 0 !important;
}

/* Add spacing between payment section and agreement section */
#agreementSection {
  background: #f8f8f8;
  border: 1px solid #e5e7eb;
  border-radius: 25px;
  padding: 1rem;
  margin-top: 2rem;
}

/* Optional: Add bottom margin to the billing zip container */
.form-item.payment-row__form-item:last-child {
  margin-bottom: 2rem;
}

.gift-card-option {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gift-card-option:hover {
    border-color: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.gift-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 0.5rem;
}

.gift-description {
    color: #6b7280;
    margin-bottom: 1rem;
}

.select-gift-btn {
    background-color: #ff0000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    width: 100%;
    font-weight: 500;
    transition: background-color 0.2s;
}

.select-gift-btn:hover {
    background-color: #fe8b6f;
}

/* Gift Card Select Styles */
select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ff0000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65rem auto;
    padding-right: 2.5rem;
}

select.input-field:focus {
    border-color: #ff0000;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
    outline: none;
}

select.input-field option {
    color: #76777b;
    padding: 0.5rem;
}

select.input-field:required:invalid {
    color: #76777b80;
}

select.input-field option[value=""][disabled] {
    display: none;
}

/* Success Message Styles */
.success-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
    text-align: center;
}

.success-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.success-title {
    color: #ff0000;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: "Archivo", sans-serif;
}

.success-message {
    color: #76777b;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.barcode-container {
    background: #f8f8f8;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0 auto;
    display: block;
    min-width: 250px;
    margin-bottom: 2rem;
}

.barcode-label {
    color: #76777b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.barcode-id {
    color: #fa4238;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: monospace;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.delivery-info {
    color: #76777b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.email-icon {
    color: #ff0000;
    flex-shrink: 0;
}

.return-home-btn {
    background-image: linear-gradient(90deg, #ff0000 0%, #fa4238 100%);
    color: white;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.return-home-btn:hover {
    opacity: 0.9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .success-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .success-title {
        font-size: 1.75rem;
    }

    .success-message {
        font-size: 1rem;
    }

    .return-home-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

/* Email delivery info styles */
.email-delivery-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #76777b;
    font-size: 0.875rem;
}

.email-delivery-info .email-icon {
    color: #ff0000;
    flex-shrink: 0;
}

.email-delivery-info.hidden {
    display: none;
}
