.hbdv-lmp-form-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: sans-serif;
}

.hbdv-lmp-progress-bar {
  display: flex;
  /* Removed justify-content: space-between; to allow natural flow */
  margin-bottom: 30px;
  overflow-x: auto; /* Allows horizontal scrolling on small screens */
  white-space: nowrap; /* Prevents steps from wrapping to next line */
  padding-bottom: 10px; /* Space for scrollbar on some systems */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
  gap: 10px; /* Space between steps */
}

/* Hide scrollbar for Webkit browsers */
.hbdv-lmp-progress-bar::-webkit-scrollbar {
  display: none;
}

.hbdv-lmp-progress-step {
  flex-shrink: 0; /* Prevent steps from shrinking */
  text-align: center;
  padding: 12px 15px; /* Slightly more padding for better touch targets */
  background-color: #e0e0e0;
  border: 1px solid #ccc;
  border-radius: 8px; /* More rounded corners */
  margin: 0; /* Ensure no external margins */
  font-size: 0.85em; /* Slightly smaller font for more steps */
  color: #666;
  transition: all 0.3s ease;
  min-width: 120px; /* Ensure a minimum width for readability */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.hbdv-lmp-progress-step.active {
  background-color: #0073aa; /* WordPress Blue */
  color: white;
  border-color: #0073aa;
  box-shadow: 0 2px 5px rgba(0, 115, 170, 0.2); /* More prominent shadow for active */
}

.hbdv-lmp-progress-step.completed {
  background-color: #4caf50; /* Green */
  color: white;
  border-color: #4caf50;
  box-shadow: 0 2px 5px rgba(76, 175, 80, 0.2); /* More prominent shadow for completed */
}

.hbdv-lmp-form-step {
  display: none;
  padding: 20px;
  border: 1px solid #eee;
  background-color: #fff;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hbdv-lmp-form-step.active {
  display: block;
}

.hbdv-lmp-form-step h3,
.hbdv-lmp-form-step h4 {
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
}
.hbdv-lmp-form-step h4 {
  font-size: 1.1em;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.hbdv-lmp-form-group {
  margin-bottom: 15px;
}

.hbdv-lmp-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}
.hbdv-lmp-form-group.checkbox-group label {
  font-weight: normal;
}

.hbdv-lmp-form-group input[type="text"],
.hbdv-lmp-form-group input[type="email"],
.hbdv-lmp-form-group input[type="tel"],
.hbdv-lmp-form-group input[type="date"],
.hbdv-lmp-form-group textarea,
.hbdv-lmp-form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.hbdv-lmp-form-group .radio-group label,
.hbdv-lmp-form-group .checkbox-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: normal;
}
.hbdv-lmp-form-group .radio-group input[type="radio"],
.hbdv-lmp-form-group .checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
}

#hbdv-lmp-spielerliste-tabelle {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}
#hbdv-lmp-spielerliste-tabelle th,
#hbdv-lmp-spielerliste-tabelle td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
#hbdv-lmp-spielerliste-tabelle th {
  background-color: #f2f2f2;
}
#hbdv-lmp-spielerliste-tabelle input {
  width: calc(100% - 10px); /* Etwas Platz für Padding */
}
.hbdv-lmp-remove-spieler {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.hbdv-lmp-disclaimer-box {
  border: 1px solid #e0e0e0;
  padding: 15px;
  margin-bottom: 20px;
  background-color: #fdfdfd;
  border-radius: 4px;
}
.hbdv-lmp-disclaimer-box h4 {
  margin-top: 0;
  color: #0073aa;
}
.hbdv-lmp-disclaimer-box p,
.hbdv-lmp-disclaimer-box ul {
  font-size: 0.9em;
  color: #444;
  line-height: 1.6;
}

.hbdv-lmp-form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.hbdv-lmp-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
}

.hbdv-lmp-btn-primary {
  background-color: #0073aa;
  color: white;
}
.hbdv-lmp-btn-primary:hover {
  background-color: #005a87;
}

.hbdv-lmp-btn-secondary {
  background-color: #777;
  color: white;
}
.hbdv-lmp-btn-secondary:hover {
  background-color: #555;
}

.hbdv-lmp-btn-success {
  background-color: #4caf50;
  color: white;
}
.hbdv-lmp-btn-success:hover {
  background-color: #3e8e41;
}
.hbdv-lmp-btn-neutral {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
}
.hbdv-lmp-btn-neutral:hover {
  background-color: #e0e0e0;
}

.hbdv-lmp-error-field {
  border-color: red !important;
}
.hbdv-lmp-error-message-inline {
  color: red;
  font-size: 0.85em;
  display: block;
  margin-top: 3px;
}

.hbdv-lmp-message-box {
  padding: 15px;
  margin-top: 20px;
  border-radius: 4px;
  text-align: center;
}
.hbdv-lmp-message-box.hbdv-lmp-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.hbdv-lmp-message-box.hbdv-lmp-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
  .hbdv-lmp-form-container {
    padding: 15px; /* Reduce padding on very small screens */
    margin: 10px auto; /* Adjust margin */
  }
}
