/**
 * Copy of styles for input[type="text"] for time
 */
input[type="time"] {
  position: relative;
  width: 100%;
  margin: 0 0 0;
  padding: 12px 13px;
  font-family: inherit;
  font-size: 14px;
  font-weight: inherit;
  line-height: calc(50px - (12px * 2) - 2px);
  color: #000;
  background-color: transparent;
  border: 2px solid #000;
  border-radius: 0;
  outline: 0;
  -webkit-appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: border-color .2s ease-in-out;
  -o-transition: border-color .2s ease-in-out;
  transition: border-color .2s ease-in-out;
}

.wpcf7-form-control.wpcf7-time {
  padding: 12px 20px;
}

/**
 * CF7 CleverReach newsletter form
 */
.ha-cf7-newsletter-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ha-cf7-newsletter-flex .wpcf7-form-control-wrap {
  margin-bottom: 0;
}

.ha-cf7-newsletter-flex__child {
  flex-grow: 1;
}

.ha-cf7-newsletter-flex__child > * {
  margin: 0 !important;
}

.ha-cf7-newsletter-flex__child--50 {
}

.ha-cf7-newsletter-flex__child--100 {
  flex-basis: 100%;
}

.ha-cf7-newsletter-checkbox {
  margin-top: 1rem;
}

.ha-cf7-newsletter-checkbox .wpcf7-list-item,
.ha-cf7-newsletter-checkbox a {
  font-size: 14px;
  margin: 0;
  color: white;
}

.ha-cf7-newsletter-checkbox a {
  display: block;
  margin-bottom: 1.5rem;
  text-decoration: underline;
}

.ha-cf7-newsletter-checkbox a:hover {
  color: white;
  text-decoration: none;
}

.ha-cf7-newsletter-checkbox .wpcf7-list-item input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* Make block clickable. With inline there are non clickable regions. */
.ha-cf7-newsletter-checkbox .wpcf7-list-item-label {
  display: block;
}

.ha-cf7-newsletter-checkbox .wpcf7-list-item input[type="checkbox"]:checked ~
.wpcf7-list-item-label::before {
  content: "✓";
}

.ha-cf7-newsletter-checkbox .wpcf7-list-item .wpcf7-list-item-label::before {
  border: 2px solid white;
  content: "";
  display: block;
  float: left;
  font-size: 16px;
  font-weight: 700;
  height: 1em;
  line-height: 1em;
  margin: 0 0.5em 0 0;
  text-align: center;
  width: 1em;
}

.wpcf7-form-control-wrap {
  display: block;
  margin-top: 1em;
  margin-bottom: 1.5em;
}

/* Reduce gap between text and .wpcf7-form-control-wrap */
span + .wpcf7-form-control-wrap {
  margin-top: .5em;
}

.wpcf7-form-control-wrap > input,
.wpcf7-form-control-wrap > select,
.wpcf7-form-control-wrap > textarea {
  margin: 0 !important;
}

/* Loading feedback */
.wpcf7-form[data-status="submitting"] .wpcf7-submit,
.wpcf7-form[data-status="resetting"] .wpcf7-submit {
  pointer-events: none;
  opacity: .5;
}
.wpcf7-form[data-status="submitting"] .wpcf7-submit::after,
.wpcf7-form[data-status="resetting"] .wpcf7-submit::after {
  content: "(loading…)";
  margin-left: 0.5em;
}
[lang="de-DE"] .wpcf7-form[data-status="submitting"] .wpcf7-submit::after,
[lang="de-DE"] .wpcf7-form[data-status="resetting"] .wpcf7-submit::after {
  content: "(lädt…)";
}
/* End Loading feedback */

.edgtf-wpcf7-newsletter-form .wpcf7-submit.edgtf-btn {
  position: static !important;
  width: auto !important;
}

.edgtf-wpcf7-newsletter-form .wpcf7-submit.edgtf-btn .edgtf-btn-text {
  display: inline !important;
  margin-left: 1rem !important;
}

.wpcf7-not-valid-tip {
  background: white;
  color: black;
  padding: 12px 20px;
  border-style: solid;
  border-color: black;
  border-width: 0 2px 2px 2px;
}

.wpcf7-response-output {
  background: white !important;
  margin: 2em 0 1em 0 !important;
  padding: 12px 20px !important;
}

/* Make .cf7_custom_style_3 default */
.wpcf7-form:not([class*="cf7_custom_style_"]) input.wpcf7-form-control.wpcf7-text,
.wpcf7-form:not([class*="cf7_custom_style_"]) input.wpcf7-form-control.wpcf7-number,
.wpcf7-form:not([class*="cf7_custom_style_"]) input.wpcf7-form-control.wpcf7-date,
.wpcf7-form:not([class*="cf7_custom_style_"]) input.wpcf7-form-control.wpcf7-time,
.wpcf7-form:not([class*="cf7_custom_style_"]) textarea.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form:not([class*="cf7_custom_style_"]) select.wpcf7-form-control.wpcf7-select,
.wpcf7-form:not([class*="cf7_custom_style_"]) input.wpcf7-form-control.wpcf7-quiz,
.wpcf7-form:not([class*="cf7_custom_style_"]) .cf7_captcha .wpcf7-form-control-wrap {
  color: #444444;
  font-family: Roboto;
  font-size: 16px;
  font-weight: 600;
  border-color: rgba(0, 0, 0, 1);
  border-width: 2px;
  margin-top: 15px;
}
.wpcf7-form:not([class*="cf7_custom_style_"]) input.wpcf7-form-control.wpcf7-text::placeholder,
.wpcf7-form:not([class*="cf7_custom_style_"]) input.wpcf7-form-control.wpcf7-number::placeholder,
.wpcf7-form:not([class*="cf7_custom_style_"]) input.wpcf7-form-control.wpcf7-date::placeholder,
.wpcf7-form:not([class*="cf7_custom_style_"]) input.wpcf7-form-control.wpcf7-time::placeholder,
.wpcf7-form:not([class*="cf7_custom_style_"]) textarea.wpcf7-form-control.wpcf7-textarea::placeholder,
.wpcf7-form:not([class*="cf7_custom_style_"]) select.wpcf7-form-control.wpcf7-select::placeholder,
.wpcf7-form:not([class*="cf7_custom_style_"]) input.wpcf7-form-control.wpcf7-quiz::placeholder {
  color: #000000;
}

.wpcf7-form:not([class*="cf7_custom_style_"]) .cf7_captcha .wpcf7-form-control-wrap {
  color: #000;
}
/* Remove line-breaks via <br> tags generated by [cleverreach …] element */
.ha-cf7-newsletter-checkbox br {
  display: none;
}

/**
 * CF7 general
 */
.ph-cf7-label-text {
  display: block;
  margin-top: 2em !important;
}

/**
 * CF7 time from to fields
 */
.ph-cf7-time-from-to-fields {
  display: flex;
  gap: 20px;
}

.ph-cf7-time-from-to-fields .wpcf7-form-control-wrap {
  flex-grow: 1;
}

.ph-cf7-time-from-to-fields label {
  align-items: center;
  display: flex;
  flex-grow: 1;
  gap: 10px;
}

/* Reduce margin, because no margin collapse. Quick fix. */
.ph-cf7-time-from-to-fields .wpcf7-form-control-wrap {
  margin-bottom: 0;
}

/**
 * CF7 Captcha Styles
 */
.edgtf-wpcf7-newsletter-form .cf7_captcha {
  color: white;
}

.cf7_captcha .c-header {
  margin-bottom: 1rem;
}

.cf7_captcha .wpcf7-form-control-wrap label {
  display: flex;
  align-items: center;
  font-size: 20px;
  gap: 15px;
  margin-top: 10px;
}

.cf7_custom_style_2 .cf7_captcha input,
.cf7_custom_style_2 .cf7_captcha input::placeholder {
  color: white;
  border-color: white;
  font-weight: bold;
}

.cf7_custom_style_2 .cf7_captcha img{
  filter: invert(1);
}