.card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  border-top-left-radius: 0;
  box-shadow: 0px 3px 6px #00000029;
  border: 1px solid #dedede;
  width: 100%;
  padding: 1rem;
  position: relative;
  height: 220px;
}

.card * {
  font-size: 14px;
}

.tag {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #2463eb;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-bottom-right-radius: 12px;
  z-index: 2;
}

.day-range {
  position: absolute;
  top: 0.25rem;
  right: 0.75rem;
  font-size: 0.85rem;
  color: #666;
}

.section {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.section strong {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.section .value {
  font-weight: bold;
  color: #111;
}

.modules {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modules-text {
  position:relative;
}

.modules-text > strong {
  position: absolute;
  right: 0px;
}

.btn {
  display: inline-block;
  background-color: #f7b500;
  color: black;
  padding: 0.5rem 1rem;
  text-align: center;
  border-radius: 9999px;
  text-decoration: none;
  font-weight 500;
}

.search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background-color: white;
  border-radius: 25px;
  box-shadow: 0px 3px 6px #00000029;
  border: 1px solid #dedede;
  padding: 1rem 1.5rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto 75px;
}

.lpt-filter-group {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: #444;
}

.lpt-filter-group label {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.lpt-filter-group select {
  font-size: 1rem;
  border: none;
  outline: none;
  background: none;
  appearance: none;
  padding-right: 2.2rem;
  font-weight: bold;
  color: #222;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23f4c041" height="12" viewBox="0 0 24 24" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 40px 40px;
  cursor: pointer;
}

.search-button {
  background-color: #f4c041;
  color: black;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 1rem;
}

.search-button:hover {
  background-color: #e6b93a;
  font-weight 500;
}

@media (max-width: 768px) {
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

.search-results-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 600px) {
  .search-results-container {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
}


/* Desktop: 3 cards */
@media (min-width: 1025px) {
  .search-results-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hr {
  width: 100%;
  position: absolute;
  left: 0;
  top: 16.5px;
  z-index: 1;
  border-width: .5px;
  border-color: rgb(208, 208, 208) !important;
}

.sections-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.checkout-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-weight: 600;
}

.checkout-btn:hover {
  background-color: #faf3e3 !important;
  color: #000 !important;
  font-weight: 600 !important;
}

#show-more {
  border-radius: 12px !important;
  margin: 80px auto 50px;
}

/* Modal styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  padding: 50px 75px;
  border-radius: 5px;
  width: 100%;
  max-width: 69vw;
  min-width: 800px;
  max-height: 65vh;
  overflow-y: auto;
  position: relative;
  margin: 50px auto;
}

.checkout-modal {
  max-width: 95vw;
  min-width: 900px;
  max-height: 69vh;
  width: auto;
}

.success-modal {
  max-width: 450px;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 34px;
  font-weight: bold;
  cursor: pointer;
  margin: 5px 0px 0px 10px;
  z-index: 9999;
}

.checkout-header {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 400;
}

#checkout-container {
  margin-top: 10px;
  padding: 20px;
  background-color: white;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  min-height: 200px;
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
}

#payment-form {
  margin-top: 20px;
  background-color: white !important;
  width: 100%;
  max-width: 100%;
}

#payment-form-container {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#payment-message {
  color: #e74c3c;
  padding: 10px;
  margin-top: 10px;
  text-align: center;
}

.payment-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.checkout-button {
  background-color: #5c6ac4;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.checkout-button:hover {
  background-color: #4d5aa7;
}

.checkout-button:disabled {
  background-color: #a0a0a0;
  cursor: not-allowed;
}

.success-message {
  text-align: center;
  padding: 30px;
  color: #2ecc71;
}

.error-message {
  color: #e74c3c;
  padding: 15px;
  background-color: #ffebee;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* Terms summary */
#terms-summary {
  margin: 15px 0;
  font-size: 14px;
}

#terms-summary a {
  color: #5c6ac4;
  text-decoration: underline;
}

.terms-text {
  margin: 20px 0;
  line-height: 1.5;
}

.close-button {
  background-color: #5c6ac4;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
}

/* Processing state overlay */
.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.processing-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #5c6ac4;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile total bar */
.mobile-total-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #5c6ac4 0%, #4d5aa7 100%);
  color: white;
  padding: 15px 20px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  z-index: 1002;
  display: none;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: slideUp 0.3s ease-out;
}

.mobile-total-bar .total-text {
  font-weight: 600;
  font-size: 16px;
}

.mobile-total-bar .total-amount {
  font-weight: 700;
  font-size: 18px;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Currency selector styles */
.currency-selector {
  margin: 15px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.currency-selector label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.currency-selector select {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd6e2;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.currency-selector select:hover {
  border-color: #5c6ac4;
}

.currency-selector select:focus {
  outline: none;
  border-color: #5c6ac4;
  box-shadow: 0 0 0 3px rgba(92, 106, 196, 0.1);
}

.currency-info {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.tax-info {
  margin-top: 10px;
  padding: 10px;
  background-color: #e8f4f8;
  border-radius: 4px;
  font-size: 12px;
  color: #0068bf;
  display: none;
}

.tax-info.show {
  display: block;
}

/* Input field responsive fixes */
input[type="email"], input[type="text"], select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#customer-email {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #cbd6e2;
  border-radius: 4px;
  font-size: 16px;
}

/* Stripe Elements responsive fixes */
#shipping-address-element,
#billing-address-element,
#payment-element-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Enhanced Stripe Elements styling to reduce aggressive red borders */

/* Base Stripe Element styling */
.StripeElement {
  border: 1px solid #e6e6e6 !important;
  border-radius: 8px !important;
  padding: 12px !important;
  background-color: white !important;
  transition: border-color 0.3s ease !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Focus state - blue border instead of immediate red */
.StripeElement--focus {
  border-color: #5c6ac4 !important;
  box-shadow: 0 0 0 1px #5c6ac4 !important;
  outline: none !important;
}

/* Only show red border on blur with errors, not while typing */
.StripeElement--invalid {
  border-color: #ffcc99 !important; /* Orange instead of harsh red */
  background-color: #fffbf7 !important; /* Very light orange background */
  box-shadow: none !important;
}

/* Reduce the intensity of error states while user is still typing */
.StripeElement--invalid:focus {
  border-color: #ff9999 !important; /* Lighter red while typing */
  box-shadow: 0 0 0 1px #ff9999 !important;
  background-color: white !important;
}

/* Address element specific styling */
.StripeElement iframe[name*="address"] {
  border: none !important;
}

/* Payment element specific styling */
.StripeElement iframe[name*="payment"] {
  border: none !important;
}

/* Override Stripe's internal error styling for a gentler approach */
.StripeElement .InputContainer {
  border-color: #e6e6e6 !important;
}

.StripeElement .InputContainer--focus {
  border-color: #5c6ac4 !important;
  box-shadow: 0 0 0 1px #5c6ac4 !important;
}

/* Make error states less aggressive */
.StripeElement .InputContainer--invalid {
  border-color: #ffd966 !important; /* Amber/yellow for incomplete fields */
}

.StripeElement .InputContainer--invalid:focus {
  border-color: #ffb3b3 !important; /* Even lighter when focused */
}

/* Prevent premature validation styling */
.StripeElement--empty {
  border-color: #e6e6e6 !important;
}

.StripeElement--empty:focus {
  border-color: #5c6ac4 !important;
  box-shadow: 0 0 0 1px #5c6ac4 !important;
}

/* Specific iframe content styling */
.StripeElement iframe {
  border: none !important;
  outline: none !important;
  max-width: 100% !important;
}

/* Progressive validation - gentler approach */
.validation-gentle .StripeElement--invalid {
  border-color: #ffcc99 !important; /* Orange instead of red */
  background-color: #fffbf7 !important; /* Very light orange background */
}

.validation-gentle .StripeElement--invalid:focus {
  border-color: #ff9999 !important;
  background-color: white !important;
}

/* Add this class to containers when you want gentler validation */
.gentle-validation .StripeElement--invalid {
  border-color: #ffd966 !important; /* Amber/yellow for incomplete fields */
}

.gentle-validation .StripeElement--invalid.StripeElement--complete {
  border-color: #e74c3c !important; /* Red only for truly invalid complete fields */
}

/* Custom validation message styling */
.field-error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.field-error.show {
  display: block;
}

/* Validation success styling */
.field-success {
  color: #28a745;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.field-success.show {
  display: block;
}

/* Terms agreement responsive */
.terms-agreement {
  margin: 20px 0;
  width: 100%;
}

.terms-agreement label {
  font-size: 14px;
  line-height: 1.4;
  width: 100%;
  display: block;
}

/* Responsive styles */
@media (min-width: 1400px) {
  .checkout-modal {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .checkout-modal {
    min-width: 800px;
  }
}

@media (max-width: 900px) {
  .checkout-modal {
    min-width: auto;
    width: 95vw;
  }
  
  .checkout-modal div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .checkout-modal div[style*="flex: 1"] {
    min-width: auto !important;
  }
  
  .checkout-modal div[style*="flex: 0 0 300px"] {
    flex: none !important;
    order: -1;
    position: static !important;
  }
}

/* Enhanced Mobile Responsive Styles */
@media (max-width: 900px) {
  /* Modal and checkout adjustments */
  #checkout-popup {
    padding: 10px !important;
  }

  #checkout-container {
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding: 15px !important;
  }

  /* Main container layout changes */
  #payment-form-container > div:first-child {
    flex-direction: column !important;
    gap: 20px !important;
    min-width: unset !important;
    width: 100% !important;
  }
  
  /* Form side adjustments */
  #payment-form-container > div:first-child > div:first-child {
    flex: none !important;
    min-width: unset !important;
    width: 100% !important;
  }
  
  /* Order summary side adjustments */
  #payment-form-container > div:first-child > div:last-child {
    flex: none !important;
    width: 100% !important;
    position: static !important;
    order: -1; /* Show order summary first on mobile */
  }
  
  /* Form elements */
  #payment-form {
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 80px !important; /* Space for mobile total bar */
  }
  
  /* Input fields */
  #customer-email {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important; /* Prevent zoom on iOS */
    padding: 12px 10px !important;
  }
  
  /* Stripe Elements containers */
  #shipping-address-element,
  #billing-address-element,
  #payment-element-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  
  /* Headers */
  h4 {
    font-size: 16px !important;
    margin-bottom: 8px !important;
    margin-top: 15px !important;
  }
  
  /* Checkout button */
  .checkout-button {
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    margin-top: 15px !important;
    box-sizing: border-box !important;
  }
  
  /* Terms agreement */
  .terms-agreement {
    margin: 15px 0 !important;
    width: 100% !important;
  }
  
  .terms-agreement label {
    font-size: 13px !important;
    line-height: 1.3 !important;
    width: 100% !important;
  }
  
  /* Error messages */
  #payment-message {
    font-size: 14px !important;
    margin-top: 8px !important;
  }
  
  /* Mobile total bar adjustments */
  .mobile-total-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, #5c6ac4 0%, #4d5aa7 100%) !important;
    color: white !important;
    padding: 15px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    z-index: 1000 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
  }

  /* Search bar mobile */
  .lpt-filter-group {
    flex-direction: column;
  }
  
  .filter-control {
    width: 100%;
  }
  
  /* Table responsive */
  .modules-table th, 
  .modules-table td {
    padding: 8px;
  }
  
  .modules-table {
    font-size: 14px;
  }
  
  .enroll-button {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  /* Modal adjustments */
  .modal-content {
    width: 95% !important;
    min-width: auto !important;
    padding: 15px !important;
    margin: 20px auto !important;
    max-height: 69vh !important;
    overflow-y: auto !important;
    padding-bottom: 80px !important;
  }
  
  .checkout-modal {
    min-width: auto !important;
    width: 95vw !important;
    max-height: 95vh !important;
  }
  
  .checkout-modal div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .checkout-modal div[style*="flex: 1"] {
    min-width: auto !important;
  }
  
  .checkout-modal div[style*="flex: 0 0 300px"] {
    flex: none !important;
    order: -1 !important;
    position: static !important;
  }
  
  .moduleDetails {
    font-family: poppins;
    font-size: 18px;
    font-weight: 300;
  }

  /* Description text mobile */
  #shipping-description {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    margin-top: 15px !important;
  }

  /* Currency selector mobile */
  .currency-selector {
    padding: 12px !important;
    margin: 15px 0 !important;
  }

  .currency-selector select {
    font-size: 16px !important; /* Prevent zoom on iOS */
    padding: 12px 10px !important;
  }

  /* Mobile specific Stripe Elements adjustments */
  .StripeElement {
    padding: 10px !important;
    border-radius: 6px !important;
  }
  
  .StripeElement--focus {
    box-shadow: 0 0 0 2px #5c6ac4 !important;
  }
  
  .StripeElement--invalid:focus {
    box-shadow: 0 0 0 2px #ff9999 !important;
  }

  /* Payment element tabs on mobile */
  .Payment-Tab {
    padding: 10px !important;
    font-size: 14px !important;
  }
  
  /* Payment method selection */
  .Payment-Tabs {
    width: 100% !important;
  }
}

/* Fix for Stripe Elements on mobile */
@media (max-width: 900px) {
  /* Ensure Stripe elements are properly contained */
  .StripeElement {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Address elements specific fixes */
  .StripeElement iframe {
    max-width: 100% !important;
  }
}

/* Additional utility classes for mobile */
@media (max-width: 900px) {
  /* Hide desktop-only elements */
  .desktop-only {
    display: none !important;
  }
  
  /* Show mobile-only elements */
  .mobile-only {
    display: block !important;
  }
  
  /* Full width utility */
  .mobile-full-width {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Remove horizontal margins on mobile */
  .no-mobile-margin {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Default hide mobile-only elements on desktop */
@media (min-width: 901px) {
  .mobile-only {
    display: none !important;
  }
}

/* Extra small devices - phones in portrait mode */
@media (max-width: 480px) {
  #checkout-popup {
    padding: 5px !important;
  }
  
  /* Even smaller adjustments for very small screens */
  #payment-form-container > div:first-child {
    gap: 15px !important;
  }
  
  /* Order summary */
  #payment-form-container > div:first-child > div:last-child > div {
    padding: 12px !important;
    margin-bottom: 15px !important;
  }
  
  /* Headers */
  h4 {
    font-size: 15px !important;
  }
  
  /* Customer info adjustments */
  #customer-email {
    padding: 12px 10px !important;
  }
  
  /* Mobile total bar for very small screens */
  .mobile-total-bar {
    padding: 12px 15px !important;
    font-size: 15px !important;
  }
  
  /* Form bottom padding adjustment */
  #payment-form {
    padding-bottom: 75px !important;
  }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
  /* Reduce padding in landscape to maximize space */
  #checkout-popup {
    padding: 8px !important;
  }
  
  #payment-form-container > div:first-child {
    gap: 15px !important;
  }
  
  h4 {
    margin-top: 12px !important;
    margin-bottom: 6px !important;
  }
  
  .mobile-total-bar {
    padding: 10px 15px !important;
    font-size: 14px !important;
  }
  
  #payment-form {
    padding-bottom: 65px !important;
  }
}

/* Processing overlay mobile adjustments */
@media (max-width: 900px) {
  #processing-overlay {
    padding: 20px !important;
  }
  
  #processing-overlay p {
    font-size: 16px !important;
    margin-top: 15px !important;
  }
}

/* Success and error modals mobile */
@media (max-width: 900px) {
  #success-modal > div,
  #terms-modal > div {
    width: 95% !important;
    max-width: 95% !important;
    margin: 20px auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
}