.section-add-race {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 2rem 10rem 2rem;
  padding-top: calc(var(--header-size) + 1.5rem) !important;
  margin-bottom: 15rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1.6rem;
}
input[type='text'],
input[type='email'],
input[type='url'],
input[type='date'],
select,
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 0.1rem solid #ddd;
  border-radius: 0.4rem;
  font-size: 1.5rem;
}
textarea {
  height: 15rem;
}
.map-container {
  margin-bottom: 2rem;
}
#map-placeholder {
  width: 100%;
  height: 30rem;
  background-color: var(--color-background-shade);
  border: 0.1rem solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  z-index: 1;
  position: relative;
}
#map-placeholder .leaflet-pane,
#map-placeholder .leaflet-control-container,
#map-placeholder .leaflet-top,
#map-placeholder .leaflet-bottom {
  z-index: 1 !important;
}
#map-placeholder .leaflet-control {
  z-index: 2 !important;
}
.marker-default {
  background-color: var(--info-highlight-background2);
  border-radius: 50%;
  border: 0.1rem solid var(--color-primary);
  width: 1rem;
  height: 1rem;
}
#coordinates-display {
  height: 1.5rem;
  margin-top: 1rem;
  font-size: 1.4rem;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}
button {
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  background-color: var(--color-background-shade);
  border: none;
  border-radius: 0.4rem;
}
button:hover {
  background-color: var(--info-highlight-background);
}
.multi-day-toggle {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.multi-day-toggle label {
  margin-bottom: 0;
}
#end-date-container {
  margin-top: 1rem;
}
.picture-upload-container {
  margin-bottom: 1.5rem;
}
.picture-upload-input {
  display: none;
}
.picture-upload-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1.4rem;
  cursor: pointer;
  background-color: var(--color-background-shade);
  border: none;
  border-radius: 0.4rem;
}
.picture-upload-button:hover {
  background-color: var(--info-highlight-background);
}
.picture-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.picture-tag {
  display: flex;
  align-items: center;
  background-color: var(--info-highlight-background);
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 1.2rem;
}
.picture-tag .picture-name {
  margin-right: 0.5rem;
  font-size: 1.4rem;
}
.picture-tag .remove-picture {
  cursor: pointer;
  font-weight: bold;
  font-size: 1.4rem;
  color: var(--color-primary);
}
.picture-tag .remove-picture:hover {
  color: var(--color-warning);
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background-color: var(--color-background);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 0.4rem;
  max-width: 80rem;
  max-height: 80vh;
  overflow-y: auto;
}
.heading-large {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.heading-medium {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.text-regular {
  font-size: 1.5rem;
  line-height: 1.5;
}
.section-header {
  font-size: 2.5rem;
  margin-bottom: 4rem;
}
@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }
  .section-add-race {
    padding: 1.5rem;
  }
}
@media (max-width: 75em) {
  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--info-highlight-background2);
}
button:active {
  transform: translateY(0.1rem);
}
#distance-input {
  font-size: 1.4rem;
}
#add-distance {
  margin: 0.3rem 0 0.6rem 0.3rem;
}
.quick-distance {
  margin-right: 0.6rem;
  margin-bottom: 0.6rem;
}
#distances-container {
  display: flex;
  flex-wrap: wrap;
}
#distances-container .distance-tag {
  margin-right: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
}
.form-group + .form-group {
  margin-top: 2rem;
}
#map-placeholder:hover {
  background-color: var(--color-background);
}
.modal-content {
  box-shadow: 0 0.4rem 0.6rem rgba(0, 0, 0, 0.1);
}
input,
select,
textarea {
  transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 0.2rem rgba(52, 188, 140, 0.25);
}
.drag-drop-area {
  border: 2px dashed #ccc;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.drag-drop-area.dragging-over {
  background-color: #f0f0f0;
  border-color: #999;
}
.image-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1rem 0;
}
.uploaded-image-container {
  position: relative;
  width: 20rem;
  height: 15rem;
}
.uploaded-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.delete-icon {
  position: absolute;
  top: 1px;
  right: 5px;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  background-color: var(--color-background-shade);
  border: none;
  border-radius: 0.4rem;
}
#clear-form {
  margin-top: 1rem;
}
.custom-alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-background);
  padding: 1.5rem 2.5rem;
  border-radius: 0.4rem;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
  z-index: 1001;
  animation: slideDown 0.3s ease-out;
  font-size: 1.5rem;
  border: 0.1rem solid var(--info-highlight-background2);
  color: var(--color-text);
}
@media (max-width: 75em) {
  .custom-alert {
    width: 90%;
    max-width: 40rem;
    text-align: center;
  }
}
@keyframes slideDown {
  from {
    top: -10rem;
    opacity: 0;
  }
  to {
    top: 2rem;
    opacity: 1;
  }
}
