/* Shared form finish for the inquiry and contact pages. */
body #main .ymh-consultation .ymh-consult-form-anchor {
  box-sizing: border-box;
  padding: 28px;
}

/* Align the inquiry-directory form with the contact methods above it. */
body.page-id-55 #main .ymh-consultation .ymh-consult-form-anchor {
  width: 100%;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: none;
}

body #main .ymh-consultation :is(.ymh-form-section, .ymh-form-review, .ymh-paused-form) {
  background: #fff;
  border: 1px solid #d8e1e8;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(20, 46, 62, .04);
}

body #main .ymh-consultation .ymh-form-section { padding: 16px 32px 8px; }
body #main .ymh-consultation .ymh-paused-form .ymh-form-section {
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body #main .ymh-consultation .ymh-form-review { padding: 32px; }
body #main .ymh-consultation .ymh-form-section-heading { margin: 12px 0 4px; }
body #main .ymh-consultation .ymh-form-section-heading > span { color: #a94425; }
body #main .ymh-consultation .ymh-form-help { margin: 6px 0 12px; color: #586670; }
body #main .ymh-consultation .ymh-form-field {
  min-width: 0;
  margin: 0;
  padding: 18px 0 20px;
  border-bottom: 1px solid #dce3e9;
}
body #main .ymh-consultation .ymh-form-section > .ymh-form-field:last-child { border-bottom: 0; }
body #main .ymh-consultation .ymh-form-field > label,
body #main .ymh-consultation .ymh-reply-choice legend,
body #main .ymh-consultation .ymh-callback-fields legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #191919;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
body #main .ymh-consultation :is(.ymh-required, .ymh-optional) {
  display: inline-block;
  flex: none;
  margin: 0;
  padding: 2px 7px;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
body #main .ymh-consultation .ymh-required { background: #c62828; }
body #main .ymh-consultation .ymh-optional { background: #1565c0; }
body #main .ymh-consultation .ymh-form-field .wpcf7-form-control-wrap { display: block; }
body #main .ymh-consultation .ymh-form-field input:not([type="radio"]):not([type="checkbox"]),
body #main .ymh-consultation .ymh-form-field :is(select, textarea) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #bcc9d3;
  border-radius: 5px;
  background: #fbfcfe !important;
  color: #222;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
}
body #main .ymh-consultation .ymh-form-field select {
  appearance: auto;
  background-image: none !important;
  cursor: pointer;
}
body #main .ymh-consultation .ymh-form-field select:has(option:checked[value=""]) { color: #687987; }
body #main .ymh-consultation .ymh-form-field select option { color: #222; background: #fff; }
body #main .ymh-consultation .ymh-form-field :is(input, select, textarea):focus-visible {
  border-color: #1565c0;
  outline: 2px solid #b9d5f6;
  outline-offset: 1px;
  background-color: #fff !important;
}
body #main .ymh-consultation .ymh-form-field small { color: #586670; }
body #main .ymh-consultation .ymh-reply-choice { margin: 18px 0 0; padding: 0 0 18px; border-bottom: 1px solid #dce3e9; }
body #main .ymh-consultation .ymh-reply-choice > p { margin: 0; }
body #main .ymh-consultation .ymh-reply-choice .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 10px; }
body #main .ymh-consultation .ymh-reply-choice .wpcf7-list-item { display: block; flex: 0 0 auto; max-width: 100%; margin: 0; }
body #main .ymh-consultation .ymh-reply-choice label { box-sizing: border-box; min-height: 48px; border-color: #bcc9d3; border-radius: 5px; background: #fbfcfe; font-size: 14px; }
body #main .ymh-consultation .ymh-reply-choice input[type="radio"] { appearance: auto; width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: #1565c0; }
body #main .ymh-consultation .ymh-reply-choice label:has(input:checked) { border-color: #1565c0; background: #eef5fd; box-shadow: inset 0 0 0 1px #1565c0; }
body #main .ymh-consultation .ymh-reply-choice label:focus-within { outline: 2px solid #b9d5f6; outline-offset: 1px; }
body #main .ymh-consultation fieldset.ymh-callback-fields { border-top: 0; margin: 0; padding: 18px 0 0; }
body #main .ymh-consultation details.ymh-callback-fields { margin: 0 0 20px; padding: 8px 12px; border: 1px solid #ded8d1; border-radius: 6px; }
body #main .ymh-consultation .ymh-callback-fields > summary { padding-block: 4px; font-size: 14px; font-weight: 600; cursor: pointer; }
body #main .ymh-consultation .ymh-callback-fields[open] > summary { margin-bottom: 12px; }
body #main .ymh-consultation .ymh-form-section--flat > .ymh-form-help { margin: 16px 0 0; }
body #main .ymh-consultation .ymh-form-field--choices fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
body #main .ymh-consultation .ymh-form-field--choices fieldset > p { margin: 0; }
body #main .ymh-consultation .ymh-form-field--choices fieldset > legend {
  margin: 0 0 8px;
  padding: 0;
  color: #191919;
  font-size: 15px;
  font-weight: 700;
}
body #main .ymh-consultation :is(.ymh-form-field--choices .wpcf7-form-control, .ymh-reply-choice .wpcf7-radio) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
body #main .ymh-consultation :is(.ymh-form-field--choices, .ymh-reply-choice) .wpcf7-list-item {
  display: block;
  min-width: 0;
  margin: 0;
}
body #main .ymh-consultation :is(.ymh-form-field--choices, .ymh-reply-choice) .wpcf7-list-item > label {
  box-sizing: border-box;
  height: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
body #main .ymh-consultation .ymh-reply-choice input[type="radio"] { flex: none; }
@media (min-width: 1000px) {
  body #main .ymh-consultation .ymh-form-field--choices .wpcf7-form-control {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
body #main .ymh-consultation .ymh-form-field--choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #bcc9d3;
  border-radius: 5px;
  background: #fbfcfe;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
body #main .ymh-consultation .ymh-form-field--choices :is(input[type="radio"],input[type="checkbox"]) {
  appearance: auto;
  flex: none;
  width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0;
  padding: 0;
  accent-color: #1565c0;
}
body #main .ymh-consultation .ymh-form-field--choices label:has(input:checked) {
  border-color: #1565c0;
  background: #eef5fd;
  box-shadow: inset 0 0 0 1px #1565c0;
}
body #main .ymh-consultation .ymh-form-field--choices label:focus-within { outline: 2px solid #b9d5f6; outline-offset: 1px; }
body #main .ymh-consultation .ymh-form-field textarea[name="your-message"] {
  height: auto;
  min-height: 160px;
  resize: vertical;
}
body #main .ymh-consultation .ymh-form-field textarea[name="your-message"]:disabled {
  resize: none;
}
body #main .ymh-consultation .ymh-form-field textarea[name="your-message"]::placeholder {
  color: #586670;
  opacity: 1;
}
body #main .ymh-consultation .ymh-paused-submit {
  margin: 12px auto 24px;
  width: min(calc(100% - 32px), 360px);
  text-align: center;
}
body #main .ymh-consultation .ymh-paused-submit button:disabled {
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid #c9d4df;
  border-radius: 5px;
  background: #edf3f9;
  color: #3e5973;
  opacity: 1;
  font-weight: 700;
  cursor: not-allowed;
}
body #main .ymh-consultation .ymh-paused-submit small {
  display: block;
  margin-top: 8px;
  color: #586670;
}
body #main .ymh-consultation .ymh-paused-form > .wpcf7-turnstile,
body #main .ymh-consultation .ymh-review-actions > .wpcf7-turnstile {
  width: min(calc(100% - 32px), 360px);
  margin: 8px auto 0;
  text-align: center;
}

body #main .ymh-after-form h2 { margin: 0 0 24px; }

/* Consultation directory: align the three channels with the common consultation cards. */
body.page-id-55 #main .ymh-consultation { margin-bottom: 0; }
body.page-id-55 #main .ymh-consult-body { padding-bottom: clamp(24px, 4vw, 40px); }
body.page-id-55 #main .ymh-after-form > ol:last-child { margin-bottom: 0; }
body #main .ymh-consult-methods {
  background: #fff;
  border: 1px solid #d7dce1;
  border-radius: 6px;
}
body #main .ymh-consult-methods section {
  min-width: 0;
  padding: 24px clamp(14px, 2vw, 24px);
  text-align: center;
}
body #main .ymh-consult-methods .ymh-method-caption {
  justify-content: center;
  min-height: 30px;
  color: #2d2926;
  font-size: 16px;
}
body #main .ymh-consult-methods .ymh-method-caption .ymh-contact-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
body #main .ymh-consult-methods #telephone .ymh-contact-icon,
body #main .ymh-consult-methods #telephone strong > a { color: var(--ymh-contact-phone-red); }
body #main .ymh-consult-methods #email .ymh-contact-icon { color: var(--ymh-contact-email-blue); }
body #main .ymh-consult-methods #telephone > strong {
  display: grid;
  place-items: center;
  min-height: 50px;
  line-height: 1.25;
}
body #main .ymh-consult-methods #telephone strong > a { text-decoration: none; }
body #main .ymh-consult-methods #telephone strong > a:hover { text-decoration: underline; }
body #main .ymh-consult-methods :is(#email > a, .ymh-method-disabled, .ymh-method-line) {
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
body #main .ymh-consult-methods #email > a { background: var(--ymh-contact-email-gradient); }
body #main .ymh-consult-methods .ymh-method-disabled { background: #edf5ef; color: #366344; }
body #main .ymh-consult-methods #email .ymh-method-disabled { background: #edf3f9; color: #3e5973; }
body #main .ymh-consult-methods .ymh-method-line {
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--ymh-contact-line-gradient);
  text-decoration: none;
}

@media (max-width: 767px) {
  body #main .ymh-consultation .ymh-consult-form-anchor { padding: 16px; }
  body #main .ymh-consultation :is(.ymh-form-section, .ymh-form-review) { padding: 12px 16px; }
  body #main .ymh-consultation .ymh-form-field textarea[name="your-message"] { min-height: 208px; }
  body #main .ymh-consultation .ymh-form-field > label,
  body #main .ymh-consultation .ymh-reply-choice legend,
  body #main .ymh-consultation .ymh-callback-fields legend { font-size: 14px; }
}
