/* General body styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Form container */
form {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form inputs and labels */
label {
  display: block;
  margin-bottom: 5px;
}

.bus-stations label {
  font-weight: bold;
}

.enrollment-type label {
  font-weight: bold;
}

input,
select,
button {
  font-size: 16px;
  padding: 10px;
  width: 100%;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
}

/* Style for Bus station radio buttons */
p label {
  display: block;
  margin-bottom: 10px;
}

label.radio-label {
  display: block;
  margin-bottom: 10px;
}

input[type="radio"] {
  display: inline-block;
  margin-right: 8px;
}

/* Style for Tagesfahrten checkboxes */
fieldset legend {
  color: #007bff;
  font-size: 1.2em;
  font-weight: bold;
}

fieldset p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

fieldset p input[type="checkbox"] {
  margin: 0;
  transform: scale(1.2);
}

/* Select dropdown styling */
select {
  background: #fdfdfd;
}

/* Buttons */
button[type="button"],
button[type="submit"] {
  width: auto;
  background: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s;
}

button:hover {
  background: #0056b3;
}

/* Section headings */
h3 {
  border-bottom: 2px solid #007bff;
  padding-bottom: 5px;
  margin-bottom: 15px;
  color: #007bff;
}

/* Fieldset styling */
fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 15px;
}

/* Error messages */
.error {
  color: red;
  font-size: 14px;
  margin-top: -10px;
}

/* Participant section styling */
.participants {
  margin-top: 20px;
}

/* Participant buttons */
#add-participant {
  margin-bottom: 15px;
}

button#add-participant {
  background: #28a745;
}

button#add-participant:hover {
  background: #218838;
}

/* Confirmation message */
p.submit-confirmation {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

p.membership-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px;
}

p.membership-status input[type="radio"] {
  margin-right: 5px;
}

/* Price Overview Component */
.price-overview {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-overview h3 {
  color: #495057;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.price-overview table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.price-overview th,
.price-overview td {
  border: 1px solid #dee2e6;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.9rem;
}

.price-overview th {
  background-color: #e9ecef;
  font-weight: 600;
  color: #495057;
}

.price-overview tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.price-overview tr:last-child {
  border-top: 2px solid #007bff;
  font-weight: 600;
}

.price-overview tr:last-child td {
  background-color: #e7f3ff;
}

.price-overview p {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
}

/* Empty state styling */
.price-overview.empty {
  text-align: center;
  color: #6c757d;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
}

.price-overview.empty .empty-message {
  margin: 10px 0;
  font-size: 1rem;
  color: inherit;
  font-style: normal;
}

/* Responsive design */
@media (max-width: 768px) {
  .price-overview {
    margin: 15px -10px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .price-overview table {
    font-size: 0.8rem;
  }
  
  .price-overview th,
  .price-overview td {
    padding: 6px 8px;
  }
}
