.wpcf7-form .wpcf7-form-control-wrap {
  overflow: visible !important;
  height: auto !important;
}

.wpcf7-form .wpcf7-not-valid-tip,
.wpcf7-form .cf7es-error,
.cf7es-error {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 20 !important;
  color: #ff0000 !important;
  background: #fff !important;
  border: 1px solid #e0b4b4 !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  margin: 8px 0 10px !important;
  padding: 2px 8px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  clip: auto !important;
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.wpcf7-form-control-wrap.cf7es-has-error .wpcf7-not-valid-tip:not(.cf7es-error),
.wpcf7-form-control-wrap:has(+ .cf7es-error) .wpcf7-not-valid-tip:not(.cf7es-error),
.wpcf7-not-valid-tip:not(.cf7es-error):has(+ .cf7es-error),
.cf7es-error + .wpcf7-not-valid-tip:not(.cf7es-error) {
  display: none !important;
}

.wpcf7-form .wpcf7-not-valid,
.wpcf7-form .cf7es-invalid {
  border: 2px solid #d63638 !important;
}

.wpcf7-form .cf7es-disabled,
.wpcf7-form input.wpcf7-submit:disabled,
.wpcf7-form button.wpcf7-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  pointer-events: none;
}

.wpcf7-form.cf7es-sent {
  text-align: center !important;
}

.wpcf7-form.cf7es-sent > *:not(.cf7es-thankyou):not(.wpcf7-response-output) {
  display: none !important;
}

.wpcf7-form.cf7es-sent .wpcf7-form-control-wrap,
.wpcf7-form.cf7es-sent .wpcf7-submit,
.wpcf7-form.cf7es-sent .cf7es-error,
.wpcf7-form.cf7es-sent .wpcf7-not-valid-tip,
.wpcf7-form.cf7es-sent p:not(:has(.wpcf7-response-output)):not(:has(.cf7es-send-another)):not(:has(.cf7es-thankyou)) {
  display: none !important;
}

.cf7es-thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  margin: 8px auto 0;
  padding: 8px 12px 4px;
  text-align: center;
}

.cf7es-thankyou-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #d8f5e4;
  background: radial-gradient(circle at 30% 25%, rgba(110, 231, 168, 0.45), rgba(22, 101, 52, 0.35) 62%, rgba(15, 61, 36, 0.55));
  border: 1px solid rgba(187, 247, 208, 0.45);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12), 0 12px 28px rgba(0, 0, 0, 0.18);
  animation: cf7es-pop 0.45s ease-out;
}

.wpcf7-form.cf7es-sent .wpcf7-response-output,
.wpcf7-form.sent .wpcf7-response-output,
.cf7es-thankyou .wpcf7-response-output {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 16px 22px !important;
  text-align: center !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.01em;
  box-sizing: border-box !important;
}

.wpcf7-form .cf7es-send-another {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 22px auto 0 !important;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, #2a7a4e 0%, #1b5e3b 100%);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.wpcf7-form .cf7es-send-another:hover,
.wpcf7-form .cf7es-send-another:focus {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  outline: none;
}

.wpcf7-form .cf7es-send-another:active {
  transform: translateY(0);
}

.wpcf7-form:not(.cf7es-sent) .cf7es-thankyou,
.wpcf7-form:not(.cf7es-sent) .cf7es-send-another {
  display: none !important;
}

.wpcf7-form .wpcf7-response-output.cf7es-rate-limit {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 14px !important;
  padding: 14px 18px !important;
  text-align: center !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
}

@keyframes cf7es-pop {
  0% {
    transform: scale(0.72);
    opacity: 0;
  }
  70% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
