.multiStepForm {
  margin: 0 auto;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  width: 100%;
}

/* Allgemein */
.cf-input,
.cf-counter,
.cf-checkbox,
.cf-select,
.cf-text {
  background: #fff;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 18px;
  color: #4a4a4a;
  border: none;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none; /* Safari: Reset default input styles */
  appearance: none; /* Standard reset for input appearance */
}

.cf-textarea {
  background: #fff;
  border-radius: 30px;
  padding: 20px 20px;
  font-size: 18px;
  color: #4a4a4a;
  border: none;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none; /* Safari: Reset default input styles */
  appearance: none; /* Standard reset for input appearance */
}

/* Datepicker Felder */
.cf-input {
  text-align: left;
  font-family: inherit;
}

/* Counter */
.cf-counter {
  display: -webkit-flex; /* Safari: Ensure flexbox compatibility */
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.cf-counter-input {
  border: none;
  background: transparent;
  width: 40px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  -webkit-appearance: none; /* Safari: Prevent default input styling */
  appearance: none;
}

.cf-counter button {
  background: none;
  border: none;
  font-size: 22px;
  color: #6f7554;
  cursor: pointer;
  padding: 0 10px;
}

.cf-counter button:focus {
  outline: none;
}

.cf-label {
  flex: 1;
  text-align: left;
  font-size: 14px;
  color: #6f7554;
}

.multiStepForm button {
  background: #6f7554;
  color: white;
  cursor: pointer;
}

.multiStepForm button:hover {
  opacity: 0.9;
}

.form-fields-wrapper {
  display: -webkit-flex; /* Safari: Ensure flexbox compatibility */
  display: flex;
  gap: 2rem;
  row-gap: 1.5rem;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.form-fields-wrapper .col-50 {
  width: calc(50% - 1rem);
}

.form-fields-wrapper .col-100 {
  width: 100%;
}

@media screen and (max-width: 767px) {
  .form-fields-wrapper .col-50 {
    width: 100%;
  }
}

.cf-datepicker,
.cf-counter,
.cf-checkbox,
.cf-select {
  display: -webkit-flex; /* Safari: Ensure flexbox compatibility */
  display: flex;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
  font-size: 18px;
}

@media screen and (max-width: 767px) {
  .cf-datepicker,
  .cf-counter,
  .cf-checkbox,
  .cf-select {
    font-size: 16px;
  }
}

.cf-datepicker label,
.cf-counter label,
.cf-checkbox label {
  display: -webkit-flex; /* Safari: Ensure flexbox compatibility */
  display: flex;
  font-size: 18px;
}

@media screen and (max-width: 767px) {
  .cf-datepicker label,
  .cf-counter label,
  .cf-checkbox label {
    font-size: 16px;
  }
}

.cf-datepicker input {
  display: -webkit-flex; /* Safari: Ensure flexbox compatibility */
  display: flex;
  border: none;
  font-size: 18px;
  text-align: right;
  -webkit-appearance: none; /* Safari: Prevent default input styling */
  appearance: none;
  background: transparent; /* Ensure input background doesn’t hide calendar */
}

@media screen and (max-width: 767px) {
  .cf-datepicker input {
    font-size: 16px;
  }
}

.cf-counter--field {
  display: -webkit-flex; /* Safari: Ensure flexbox compatibility */
  display: flex;
  max-width: 33%;
  font-size: 18px;
}

@media screen and (max-width: 767px) {
  .cf-counter--field {
    font-size: 16px;
    min-width: 110px;
  }
}

.cf-counter--field button {
  background: none;
  color: black;
}

.cf-counter--field button:hover,
.cf-counter--field button:focus {
  background: none;
  color: black;
}

.cf-counter--field input {
  border: 0;
  -webkit-appearance: none; /* Safari: Prevent default input styling */
  appearance: none;
}

.cf-checkbox {
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

.cf-checkbox input {
  -webkit-transform: scale(1.5) translateX(-0.5rem); /* Safari: Vendor prefix */
  transform: scale(1.5) translateX(-0.5rem);
  -webkit-appearance: checkbox; /* Safari: Ensure checkbox rendering */
  appearance: checkbox;
}

.cf-select select {
  border: none;
  font-size: 18px;
  padding: 10px 0;
  border-radius: 25px;
  background: none !important;
  -webkit-appearance: none; /* Safari: Prevent default select styling */
  appearance: none;
}

.cf-select select:focus {
  border: none; /* Simplified focus state for Safari */
  outline: none;
}

@media screen and (max-width: 767px) {
  .cf-select select {
    font-size: 16px;
  }
}

input.cf-text {
  padding: 18px 20px;
  border-radius: 2rem;
  font-size: 18px;
}

@media screen and (max-width: 767px) {
  input.cf-text {
    font-size: 16px;
  }
}

.btn-wrapper {
  display: -webkit-flex; /* Safari: Ensure flexbox compatibility */
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.btn-wrapper.float-right {
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
}
.btn-wrapper.float-center {
  -webkit-justify-content: center;
  justify-content: center;
}

.multiStepForm button.next-btn,
.multiStepForm button.prev-btn,
.multiStepForm button.submit-btn {
  background-color: var(--e-global-color-054df62);
  border: none;
  border-radius: 3rem;
  padding-left: 3rem;
  padding-right: 3rem;
  padding-top: 10px;
  padding-bottom: 10px;
}

button.submit-btn {
  background-color: var(--e-global-color-054df62);
  color: white;
  border: none;
  border-radius: 3rem;
  padding-left: 3rem;
  padding-right: 3rem;
  padding-top: 10px;
  padding-bottom: 10px;
}

button.submit-btn:hover {
  background-color: var(--e-global-color-054df62);
}

.multiStepForm button.next-btn:hover,
.multiStepForm button.prev-btn:hover,
.multiStepForm button.submit-btn:hover {
  background-color: var(--e-global-color-054df62);
}

/* Flatpickr-specific styles */
.flatpickr-day.selected {
  background: #A7AD8B;
  color: #fff;
  border-radius: 50%;
  border-color: #A7AD8B;
}

.flatpickr-day:hover {
  background: #A7AD8B;
  border-color: #A7AD8B;
  color: #fff;
}

.flatpickr-day.today {
  border-color: #A7AD8B !important;
}

.flatpickr-day.today:hover {
  background: #A7AD8B !important;
}

/* Ensure Flatpickr calendar is visible in Safari */
.flatpickr-calendar {
  z-index: 9999; /* Ensure calendar appears above other elements */
  -webkit-user-select: none; /* Safari: Prevent text selection */
  user-select: none;
  background: #fff; /* Ensure visibility */
  border: 1px solid #ccc;
  border-radius: 5px;
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Safari: Vendor prefix */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ensure Flatpickr dropdowns are styled correctly */
.flatpickr-monthDropdown-months,
.flatpickr-yearDropdown {
  -webkit-appearance: menulist; /* Safari: Ensure dropdown rendering */
  appearance: menulist;
  background: #fff;
  border: none;
  font-size: 16px;
  padding: 5px;
}

/* Prevent parent containers from hiding the calendar */
.form-fields-wrapper,
.cf-datepicker {
  position: static; /* Ensure calendar popup isn’t clipped */
  overflow: visible; /* Prevent overflow: hidden from hiding calendar */
}

span.flatpickr-next-month + span.flatpickr-prev-month{
  display:none;
}