.wpcf7 form .cf7cs [hidden],
.wpcf7 form .cf7cs input[type="hidden"],
.wpcf7 form .cf7cs .cf7cs-input .wpcf7-submit,
.wpcf7 form .cf7cs .cf7cs-input input[type="submit"],
.wpcf7 form .cf7cs .cf7cs-input button[type="submit"],
.wpcf7 form .cf7cs .cf7cs-input .wpcf7-spinner,
.wpcf7 form .cf7cs .cf7cs-input .ajax-loader {
  display: none !important;
}

/* Some themes override CF7's initial response-output visibility. */
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form .wpcf7-response-output:empty {
  display: none !important;
}

.wpcf7 form .cf7cs {
  --cf7cs-accent: #2271b1;
  --cf7cs-accent-dark: #135e96;
  --cf7cs-border: #dedede;
  margin: 0 0 24px;
}

.wpcf7 form .cf7cs .cf7cs-steps {
  display: flex;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-bottom: 1px solid var(--cf7cs-border);
}

.wpcf7 form .cf7cs .cf7cs-steps li {
  flex: 1;
  margin: 0;
  padding: 15px 6px;
  border-bottom: 3px solid transparent;
  color: #666;
  font-size: 15px;
  text-align: center;
}

.wpcf7 form .cf7cs .cf7cs-steps li[aria-current="step"] {
  border-color: var(--cf7cs-accent);
  color: var(--cf7cs-accent-dark);
  font-weight: 700;
}

.wpcf7 form .cf7cs .cf7cs-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 26px;
  height: 26px;
  margin-right: 4px;
  border-radius: 50%;
  background: #eee;
  color: #555;
  line-height: 1;
}

.wpcf7 form .cf7cs .cf7cs-steps [aria-current="step"] span {
  background: var(--cf7cs-accent);
  color: #fff;
}

.wpcf7 form .cf7cs .cf7cs-input label {
  display: block;
}

.wpcf7 form .cf7cs .cf7cs-input input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 form .cf7cs .cf7cs-input select,
.wpcf7 form .cf7cs .cf7cs-input textarea {
  box-sizing: border-box;
  max-width: 100%;
}

.wpcf7 form .cf7cs h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.5;
}

.wpcf7 form .cf7cs h2:focus {
  outline: none;
}

.wpcf7 form .cf7cs p {
  line-height: 1.8;
}

.wpcf7 form .cf7cs .cf7cs-values {
  margin: 24px 0;
  border-top: 1px solid var(--cf7cs-border);
}

.wpcf7 form .cf7cs .cf7cs-values > div {
  display: grid;
  grid-template-columns: minmax(150px, 34%) minmax(0, 1fr);
  border-bottom: 1px solid var(--cf7cs-border);
}

.wpcf7 form .cf7cs .cf7cs-values dt,
.wpcf7 form .cf7cs .cf7cs-values dd {
  margin: 0;
  padding: 17px 18px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.7;
}

.wpcf7 form .cf7cs .cf7cs-values dt {
  background: #f5f5f5;
  font-weight: 700;
}

.wpcf7 form .cf7cs .cf7cs-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 8px;
}

.wpcf7 form .cf7cs button.cf7cs-next,
.wpcf7 form .cf7cs button.cf7cs-back,
.wpcf7 form .cf7cs .cf7cs-actions .wpcf7-submit,
.wpcf7 form .cf7cs .cf7cs-actions input[type="submit"],
.wpcf7 form .cf7cs .cf7cs-actions button[type="submit"] {
  appearance: none;
  min-height: 48px;
  margin: 0;
  padding: 15px 25px;
  border: 1px solid var(--cf7cs-accent);
  border-radius: 3px;
  background: var(--cf7cs-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.wpcf7 form .cf7cs button.cf7cs-back {
  border-color: #999;
  background: #fff;
  color: #333;
}

.wpcf7 form .cf7cs button:focus-visible,
.wpcf7 form .cf7cs input[type="submit"]:focus-visible {
  outline: 3px solid #222;
  outline-offset: 3px;
}

.wpcf7 form .cf7cs button:hover,
.wpcf7 form .cf7cs input[type="submit"]:hover {
  filter: brightness(0.93);
}

.wpcf7 form .cf7cs button:disabled,
.wpcf7 form .cf7cs input[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wpcf7 form .cf7cs .cf7cs-notice,
.wpcf7 form .cf7cs .cf7cs-noscript {
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid #ba202b;
  background: #fff5f5;
  color: #8c121d;
}

.wpcf7 form .cf7cs .cf7cs-field-error {
  display: block;
  margin-top: 5px;
  color: #a3111c;
  font-size: 14px;
}

.wpcf7 form .cf7cs .cf7cs-complete {
  padding: 28px 0;
}

@media (max-width: 600px) {
  .wpcf7 form .cf7cs .cf7cs-steps li {
    padding: 12px 2px;
    font-size: 13px;
  }

  .wpcf7 form .cf7cs .cf7cs-steps span {
    width: 22px;
    height: 22px;
  }

  .wpcf7 form .cf7cs h2 {
    font-size: 21px;
  }

  .wpcf7 form .cf7cs .cf7cs-values > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .wpcf7 form .cf7cs .cf7cs-values dt {
    padding: 10px 14px;
  }

  .wpcf7 form .cf7cs .cf7cs-values dd {
    padding: 12px 14px 18px;
  }

  .wpcf7 form .cf7cs .cf7cs-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .wpcf7 form .cf7cs .cf7cs-actions .wpcf7-spinner,
  .wpcf7 form .cf7cs .cf7cs-actions .ajax-loader {
    align-self: center;
  }

  .wpcf7 form .cf7cs button.cf7cs-next,
  .wpcf7 form .cf7cs button.cf7cs-back,
  .wpcf7 form .cf7cs .cf7cs-actions .wpcf7-submit,
  .wpcf7 form .cf7cs .cf7cs-actions input[type="submit"],
  .wpcf7 form .cf7cs .cf7cs-actions button[type="submit"] {
    width: 100%;
  }
}
