/* Contact Form 7 — matches Solve Safety Webflow form styles */

.layout_submission_component {
  display: flex;
  flex-direction: column;
}

.contact-form-cf7__title {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--midnight-blue);
  font-family: Lato, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
}

.contact-form-cf7 .wpcf7 {
  width: 100%;
}

.contact-form-cf7 .wpcf7-form {
  display: grid;
  grid-column-gap: 1.5rem;
  grid-row-gap: 1.5rem;
  grid-template-columns: 1fr;
  margin: 0;
}

.contact-form-cf7 .wpcf7-form > p {
  margin: 0;
}

.contact-form-cf7 label {
  display: block;
  color: #2c2c2c;
  margin-bottom: 0;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
}

.contact-form-cf7 label br {
  display: none;
}

.contact-form-cf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.5rem;
}

.contact-form-cf7 .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-file) {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--white);
  color: var(--black);
  border: 1px solid #707070;
  height: auto;
  min-height: 2.75rem;
  margin-bottom: 0;
  padding: 0.9rem 0.75rem;
  font-family: Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  border-radius: 0;
  appearance: none;
  transition: border-color 0.2s ease;
}

.contact-form-cf7 textarea.wpcf7-form-control {
  height: auto;
  min-height: 11.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  resize: vertical;
}

.contact-form-cf7 .wpcf7-form-control:not(.wpcf7-submit):focus {
  border-color: #000;
  outline: none;
  box-shadow: none;
}

.contact-form-cf7 .wpcf7-form-control:not(.wpcf7-submit)::placeholder {
  color: #0009;
}

.contact-form-cf7 .wpcf7-form-control.wpcf7-not-valid {
  border-color: #e23939;
}

.contact-form-cf7 .wpcf7-not-valid-tip {
  color: #e23939;
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

.contact-form-cf7 .wpcf7-submit {
  background-color: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
  padding: 0.8rem 2rem;
  font-family: Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  border-radius: 0;
  appearance: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contact-form-cf7 .wpcf7-submit:hover,
.contact-form-cf7 .wpcf7-submit:focus {
  background-color: #a8222c;
  border-color: #a8222c;
  color: var(--white);
  outline: none;
}

.contact-form-cf7 .wpcf7-spinner {
  margin: 0.75rem auto 0;
  display: block;
}

.contact-form-cf7 .wpcf7-response-output {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid transparent;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-form-cf7 .wpcf7 form.sent .wpcf7-response-output {
  background-color: var(--light-grey);
  border-color: #cfcfcf;
  color: var(--black);
}

.contact-form-cf7 .wpcf7 form.failed .wpcf7-response-output,
.contact-form-cf7 .wpcf7 form.invalid .wpcf7-response-output {
  background-color: #fff5f5;
  border-color: #e23939;
  color: #e23939;
}

/* Boxed contact section (dark overlay + white form card) */
.layout_submission_component .contact-form-cf7 .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-file) {
  border-color: var(--grey-4);
  padding: 0.7rem 0.75rem;
}

@media screen and (min-width: 768px) {
  .layout_submission_component {
    padding: 4rem 2.5rem;
  }

  .contact-form-cf7 .wpcf7-submit {
    width: auto;
    min-width: 10rem;
  }
}

@media screen and (max-width: 767px) {
  .layout_submission_component {
    padding: 2rem 1.25rem;
  }

  .contact-form-cf7 .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-file) {
    font-size: 16px;
  }
}
