/* Contact Form 7 on the shared inquiry page. */
.ecoriver-standard-page .wp-entry-content > .wp-block-paragraph,
.ecoriver-standard-page .wp-entry-content > .wp-block-list,
.ecoriver-standard-page .wp-entry-content > .wpcf7 {
  max-width: 820px;
}

.ecoriver-standard-page .wp-entry-content > .wp-block-paragraph {
  margin-block: 0 14px;
}

.ecoriver-standard-page .wp-entry-content > .wp-block-list {
  margin-block: 26px;
  padding: 22px 26px 22px 48px;
  border-left: 4px solid #123f6b;
  background: #f3f7f9;
}

.ecoriver-standard-page .wp-entry-content > .wp-block-list li + li {
  margin-top: 8px;
}

.ecoriver-standard-page .wp-entry-content > .wpcf7 {
  margin-top: 42px;
}

.ecoriver-standard-page .ecoriver-contact-form,
.ecoriver-standard-page .ecoriver-contact-form * {
  box-sizing: border-box;
}

.ecoriver-standard-page .ecoriver-contact-form {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid #ccd8e1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 42px rgb(23 54 77 / 10%);
}

.ecoriver-standard-page .ecoriver-contact-form p {
  margin: 0;
}

.ecoriver-standard-page .ecoriver-contact-form p > br:first-child,
.ecoriver-standard-page .ecoriver-contact-form .form-field > p:first-child > label + br {
  display: none;
}

.ecoriver-standard-page .ecoriver-contact-form .form-required-note {
  margin-bottom: 28px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #5e2d18;
  background: #fff3ed;
  font-size: 14px;
}

.ecoriver-standard-page .ecoriver-contact-form .required {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-inline: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  background: #b93617;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  vertical-align: middle;
}

.ecoriver-standard-page .ecoriver-contact-form .form-field,
.ecoriver-standard-page .ecoriver-contact-form .form-fieldset {
  margin: 0 0 28px;
}

.ecoriver-standard-page .ecoriver-contact-form .form-fieldset {
  min-inline-size: 0;
  padding: 22px;
  border: 1px solid #cbd7e0;
  border-radius: 10px;
  background: #f7fafc;
}

.ecoriver-standard-page .ecoriver-contact-form label,
.ecoriver-standard-page .ecoriver-contact-form legend {
  color: #17222c;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.ecoriver-standard-page .ecoriver-contact-form legend {
  padding-inline: 6px;
}

.ecoriver-standard-page .ecoriver-contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin-top: 9px;
}

.ecoriver-standard-page .ecoriver-contact-form :is(
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  select,
  textarea
) {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 2px solid #9eafbc;
  border-radius: 8px;
  color: #17222c;
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.ecoriver-standard-page .ecoriver-contact-form textarea {
  min-height: 190px;
  resize: vertical;
}

.ecoriver-standard-page .ecoriver-contact-form :is(input, select, textarea)::placeholder {
  color: #71808c;
  opacity: 1;
}

.ecoriver-standard-page .ecoriver-contact-form :is(
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  select,
  textarea
):hover {
  border-color: #647b8c;
}

.ecoriver-standard-page .ecoriver-contact-form :is(
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  select,
  textarea
):focus {
  border-color: #123f6b;
  outline: 0;
  box-shadow: 0 0 0 4px rgb(18 63 107 / 16%);
}

.ecoriver-standard-page .ecoriver-contact-form :is(input, select, textarea)[aria-invalid="true"] {
  border-color: #b42318;
  background: #fff8f7;
}

.ecoriver-standard-page .ecoriver-contact-form .wpcf7-radio,
.ecoriver-standard-page .ecoriver-contact-form .wpcf7-checkbox {
  display: grid;
  gap: 10px;
}

.ecoriver-standard-page .ecoriver-contact-form .wpcf7-radio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecoriver-standard-page .ecoriver-contact-form .wpcf7-checkbox {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ecoriver-standard-page .ecoriver-contact-form .wpcf7-list-item {
  display: block;
  margin: 0;
}

.ecoriver-standard-page .ecoriver-contact-form .wpcf7-list-item label {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 2px solid #c3d0da;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ecoriver-standard-page .ecoriver-contact-form .wpcf7-list-item label:hover,
.ecoriver-standard-page .ecoriver-contact-form .wpcf7-list-item label:has(input:focus-visible) {
  border-color: #123f6b;
  box-shadow: 0 0 0 3px rgb(18 63 107 / 12%);
}

.ecoriver-standard-page .ecoriver-contact-form .wpcf7-list-item label:has(input:checked) {
  border-color: #123f6b;
  background: #edf5fb;
}

.ecoriver-standard-page .ecoriver-contact-form :is(input[type="radio"], input[type="checkbox"]) {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: #123f6b;
}

.ecoriver-standard-page .ecoriver-contact-form .form-field-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #425460;
  background: #f3f7f9;
  font-size: 13px;
  line-height: 1.7;
}

.ecoriver-standard-page .ecoriver-contact-form .form-field > p + p:not(.form-field-note) {
  margin-top: 8px;
  color: #556672;
  font-size: 13px;
}

.ecoriver-standard-page .ecoriver-contact-form input[type="file"] {
  display: block;
  width: 100%;
  padding: 9px;
  border: 2px dashed #9eafbc;
  border-radius: 8px;
  color: #425460;
  background: #f7fafc;
  font: inherit;
  font-size: 14px;
}

.ecoriver-standard-page .ecoriver-contact-form input[type="file"]::file-selector-button {
  min-height: 42px;
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid #123f6b;
  border-radius: 6px;
  color: #123f6b;
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ecoriver-standard-page .ecoriver-contact-form .form-response-guide {
  margin: 34px 0 26px;
  padding: 20px 22px;
  border-left: 4px solid #123f6b;
  border-radius: 0 8px 8px 0;
  color: #273b49;
  background: #edf5fb;
  font-size: 14px;
}

.ecoriver-standard-page .ecoriver-contact-form .form-response-guide p + p {
  margin-top: 7px;
}

.ecoriver-standard-page .ecoriver-contact-form .privacy-consent {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #cbd7e0;
  border-radius: 8px;
  background: #f7fafc;
  font-size: 14px;
}

.ecoriver-standard-page .ecoriver-contact-form .privacy-consent > p + p {
  margin-top: 12px;
}

.ecoriver-standard-page .ecoriver-contact-form .privacy-consent .wpcf7-list-item label {
  min-height: 0;
  align-items: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
}

.ecoriver-standard-page .ecoriver-contact-form .privacy-consent a {
  font-weight: 700;
  text-underline-offset: 3px;
}

.ecoriver-standard-page .ecoriver-contact-form .form-submit {
  margin-top: 28px;
  text-align: center;
}

.ecoriver-standard-page .ecoriver-contact-form .wpcf7-submit {
  display: inline-flex;
  width: min(100%, 520px);
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border: 2px solid #123f6b;
  border-radius: 8px;
  color: #fff;
  background: #123f6b;
  box-shadow: 0 7px 18px rgb(18 63 107 / 20%);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ecoriver-standard-page .ecoriver-contact-form .wpcf7-submit:hover,
.ecoriver-standard-page .ecoriver-contact-form .wpcf7-submit:focus-visible {
  border-color: #0a2d4e;
  background: #0a2d4e;
  box-shadow: 0 10px 24px rgb(18 63 107 / 28%);
  transform: translateY(-1px);
}

.ecoriver-standard-page .ecoriver-contact-form .wpcf7-submit:focus-visible {
  outline: 3px solid #f2a66f;
  outline-offset: 3px;
}

.ecoriver-standard-page .ecoriver-contact-form .wpcf7-submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.ecoriver-standard-page .wpcf7 .wpcf7-not-valid-tip {
  margin-top: 7px;
  color: #a3140b;
  font-size: 13px;
  font-weight: 700;
}

.ecoriver-standard-page .wpcf7 form .wpcf7-response-output {
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 2px solid #647b8c;
  border-radius: 8px;
  color: #273b49;
  background: #f3f7f9;
  font-weight: 700;
}

.ecoriver-standard-page .wpcf7 form.sent .wpcf7-response-output {
  border-color: #237a45;
  color: #155b31;
  background: #eef9f2;
}

.ecoriver-standard-page .wpcf7 form:is(.invalid, .unaccepted, .failed, .spam, .aborted) .wpcf7-response-output {
  border-color: #b42318;
  color: #8a1c13;
  background: #fff3f1;
}

.ecoriver-standard-page .wpcf7 .wpcf7-spinner {
  display: block;
  margin: 14px auto 0;
}

@media (max-width: 700px) {
  .ecoriver-standard-page .wp-entry-content > .wpcf7 {
    margin-top: 32px;
  }

  .ecoriver-standard-page .ecoriver-contact-form {
    padding: 22px 16px;
    border-radius: 12px;
  }

  .ecoriver-standard-page .ecoriver-contact-form .form-fieldset {
    padding: 18px 14px;
  }

  .ecoriver-standard-page .ecoriver-contact-form .wpcf7-radio,
  .ecoriver-standard-page .ecoriver-contact-form .wpcf7-checkbox {
    grid-template-columns: 1fr;
  }

  .ecoriver-standard-page .ecoriver-contact-form input[type="file"]::file-selector-button {
    display: block;
    width: 100%;
    margin: 0 0 8px;
  }

  .ecoriver-standard-page .ecoriver-contact-form .form-response-guide,
  .ecoriver-standard-page .ecoriver-contact-form .privacy-consent {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecoriver-standard-page .ecoriver-contact-form :is(input, select, textarea, label, .wpcf7-submit) {
    transition: none;
  }
}
