.activenow-table-container {
  margin-top: 2rem;
}

.activenow-table {
  font-size: small;
}

/* Opis kursu */
.activenow-form-class-description {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.activenow-class-title {
  color: #2c3e50 !important;
  font-weight: 600 !important;
  font-size: 1.3rem !important;
  margin-bottom: 1rem !important;
  text-align: center !important;
  border-bottom: 2px solid #f4a261 !important;
  padding-bottom: 0.5rem !important;
}

.activenow-class-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.5rem 0 !important;
  border-bottom: 1px solid #eee !important;
}

.activenow-class-row:last-child {
  border-bottom: none !important;
}

.activenow-class-label {
  font-weight: 500 !important;
  color: #6c757d !important;
  font-size: 0.9rem !important;
}

.activenow-class-value {
  font-weight: 600 !important;
  color: #2c3e50 !important;
  text-align: right !important;
}

.activenow-class-price-total {
  color: #e76f51 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
}

/* Pola formularza */
.activenow-form-field {
  margin-bottom: 1.5rem !important;
}

.activenow-form-field input,
.activenow-form-field select {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 2px solid #e9ecef !important;
  border-radius: 8px !important;
  font-size: 1.1rem !important;
  transition: all 0.3s ease !important;
  background: white !important;
  color: #2c3e50 !important;
}

.activenow-form-field input:focus,
.activenow-form-field select:focus {
  outline: none !important;
  border-color: #f4a261 !important;
  box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.1) !important;
}

.activenow-form-field input::placeholder {
  color: #6c757d !important;
  font-size: 1.1rem !important;
}

.activenow-form-field label {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  color: #2c3e50 !important;
  margin-left: 0.5rem !important;
}

.filters {
  display: none !important;
}

/* Stylizacja przycisku ZAPISZ SIĘ */
.btn.activenow-table-signup,
#active-now-submit {
  background-color: #ffcd4b !important;
  color: #1a1a2e !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  border: none !important;
  width: 160px;
  cursor: pointer;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.btn.activenow-table-signup:hover,
#active-now-submit:hover {
  background-color: #ffcd4b !important;
  filter: brightness(1.1) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Przycisk w modalu - wyśrodkowany i większy */
.modal__content #active-now-submit {
  display: block !important;
  margin: 2rem auto 0 auto !important;
  width: 200px !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
}
/* Stylizacja okna modalnego */
.modal__container {
  width: 60% !important;
  max-width: 600px !important;
  font-size: medium !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
  background: white !important;
  overflow: hidden !important;
}
#activenow-form-eventable-description-holder {
  display: none !important;
}

/* Stylizacja nagłówków sekcji dodanych przez JavaScript */
.course-section-header {
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  color: #2c3e50 !important;
  margin: 2rem 0 1rem 0 !important;
  padding: 0.5rem 0 !important;
  border-bottom: 2px solid #f4a261 !important;
  background: none !important;
  text-align: left !important;
  width: 100% !important;
  display: block !important;
  clear: both !important;
  float: none !important;
  position: relative !important;
  flex-basis: 100% !important;
  grid-column: 1 / -1 !important;
}

.course-section-header:first-child {
  margin-top: 1rem !important;
}

/* Zmniejszenie przerwy między kolorową kreską a nazwą kursu */
.activenow-table-name-container {
  margin-left: 0.5rem !important;
}

.activenow-table-column .activenow-table-name-container {
  padding-left: 0.5rem !important;
}
/* Nagłówek modala */
.modal__header {
  background: linear-gradient(135deg, #ffcd4b 0%, #8bbee8 100%) !important;
  color: #000000 !important;
  padding: 1.5rem 2rem !important;
  border-bottom: none !important;
  position: relative !important;
}

.modal__title {
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  color: #000000 !important;
}

.modal__close {
  cursor: pointer !important;
  position: absolute !important;
  top: 1.5rem !important;
  right: 2rem !important;
  width: 24px !important;
  height: 24px !important;
  background: none !important;
  border: none !important;
  color: #000000 !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.1) !important;
}

.modal__close::before {
  content: "×" !important;
}

/* Treść modala */
.modal__content {
  padding: 2rem !important;
  max-height: 70vh !important;
  overflow-y: auto !important;
}

/* Checkbox styling */
.activenow-form-field input[type="checkbox"] {
  width: auto !important;
  margin-right: 0.75rem !important;
  transform: scale(1.2) !important;
  accent-color: #f4a261 !important;
}

.activenow-form-field label {
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  user-select: none !important;
}

/* Błędy walidacji */
.activenow-error {
  color: #dc3545 !important;
  font-size: 0.875rem !important;
  margin-top: 0.25rem !important;
  font-weight: 500 !important;
}

/* Responsive styles */
@media screen and (max-width: 992px) {
  .modal__close {
    top: 1rem !important;
    right: 1.5rem !important;
  }
}
@media screen and (max-width: 768px) {
  .modal__container {
    width: 95% !important;
    margin: 1rem auto !important;
    max-height: 90vh !important;
  }

  .modal__header {
    padding: 1.25rem 1.5rem !important;
  }

  .modal__title {
    font-size: 1.2rem !important;
  }

  .modal__close {
    top: 0.5rem !important;
    right: 1.5rem !important;
  }

  .modal__content {
    padding: 1.5rem !important;
    max-height: 75vh !important;
  }

  .activenow-form-class-description {
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .activenow-class-title {
    font-size: 1.1rem !important;
  }

  .activenow-class-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .activenow-class-value {
    text-align: left !important;
    margin-top: 0.25rem !important;
  }

  .activenow-form-field input,
  .activenow-form-field select {
    padding: 14px 16px !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
  }

  .activenow-form-field {
    margin-bottom: 1.25rem !important;
  }

  .modal__content #active-now-submit {
    width: 100% !important;
    padding: 14px !important;
    font-size: 1.1rem !important;
    margin: 1.5rem auto 0 auto !important;
  }
}

/* Additional mobile optimizations */
@media screen and (max-width: 480px) {
  main {
    padding: 1rem;
    margin: 1rem;
  }

  .activenow-form-container {
    padding: 0.5rem;
  }

  .activenow-form-field label {
    display: block;
    margin-bottom: 0.5rem;
  }

  .activenow-form-field input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
  }
}
