label {
  color: #2a567b;
  margin: 2px;
}

.formular {
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.formular_element {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: #ffffff;
  margin: 5px;
}

.formular_element input {
  text-align: center;
  border: 2px solid #d0e8ff;
  width: 290px;
  padding: 10px;
  margin: 0;
  box-sizing: border-box;
  border-radius: 3px;
  -moz-autocomplete: off;
  -ms-autocomplete: off;
}

.formular_element input:focus {
  outline: none;
  border: 2px solid #9bb1c7;
  width: 290px;
  background-color: #fffff6
}

.formular_element label {
  background-color: #ffffff;
  box-sizing: border-box;
  margin: 2px;
}

.formular_element button {
  width: 100%;
  font-family: "Ubuntu";
  font-weight: bold;
  background-color: #59b2ff;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  margin: 10px 0;
}


/* Required field validation - handled by JavaScript */
.formular_element input.required-empty,
input.required-empty {
  border: 2px solid #ebc0c5 !important;
  box-shadow: 0 0 5px 1px rgba(170, 65, 75, 0.1) !important;
}


/* Error animation */
.formular_error {
  animation: formularErrorSlideIn 0.3s ease-out;
}

@keyframes formularErrorSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success overlay */
.fixed_overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #3b824c;
  color: white;
  opacity: 0.9;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  animation: overlaySlideIn 0.3s ease-out;
  width: 250px;
}

.fixed_overlay p {
  margin: 8px 0;
  line-height: 1.4;
}

.fixed_overlay p:first-child {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

.fotografie_nahled {
  margin-top: 15px;
}

.fotografie_nahled img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 4px;
  margin-top: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s ease;
}

.fotografie_nahled img:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

@keyframes overlaySlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Form buttons */
.formular_button_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 10px 0;
}

.formular_buttons_container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 10px 0;
  flex-wrap: wrap;
}

.formular_buttons_container button {
  flex: 1;
  min-width: 120px;
  max-width: 200px;
}