/* EPI Coaching v1.4.1 — client-facing accessibility contrast fixes.
   Keep styles narrow so other member areas / clinic pages are unaffected. */

/* MemberPress's Terms of Service consent (Classic checkout).
   Some themes inherit white text on a white consent background. */
body .mp-form-row.mepr_tos,
body .mp-form-row.mepr_tos label,
body .mepr_tos .mepr-checkbox-field,
body .mepr_tos .mepr-form-input,
body label[for="mepr_agree_to_tos"] {
  color: #242831 !important;
  -webkit-text-fill-color: #242831 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
}
body .mp-form-row.mepr_tos a,
body .mepr_tos a,
body label[for="mepr_agree_to_tos"] a {
  color: #a9152d !important;
  -webkit-text-fill-color: #a9152d !important;
  opacity: 1 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
body .mp-form-row.mepr_tos a:hover,
body .mp-form-row.mepr_tos a:focus-visible,
body label[for="mepr_agree_to_tos"] a:hover,
body label[for="mepr_agree_to_tos"] a:focus-visible {
  color: #871126 !important;
  -webkit-text-fill-color: #871126 !important;
}
body #mepr_agree_to_tos {
  opacity: 1 !important;
  visibility: visible !important;
  accent-color: #b81732;
}
/* MemberPress Privacy consent may share the same theme-level text error. */
body label[for="mepr_agree_to_privacy_policy"] {
  color: #242831 !important;
  -webkit-text-fill-color: #242831 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body label[for="mepr_agree_to_privacy_policy"] a {
  color: #a9152d !important;
  -webkit-text-fill-color: #a9152d !important;
  text-decoration: underline !important;
}

/* The link on the paid thank-you screen (or coaching dashboard) receives
   this class only when its visible wording mentions completing the intake. */
body a.epi-coaching-visible-cta,
body button.epi-coaching-visible-cta,
body input.epi-coaching-visible-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 46px;
  padding: 12px 20px !important;
  border: 2px solid #b81732 !important;
  border-radius: 10px !important;
  background: #b81732 !important;
  background-image: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-decoration: none !important;
  text-shadow: none !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
body .epi-coaching-visible-cta *,
body .epi-coaching-visible-cta .elementor-button-text {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body .epi-coaching-visible-cta:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #961229 !important;
  border-color: #961229 !important;
}
body .epi-coaching-visible-cta:focus-visible,
body .mp-form-row.mepr_tos a:focus-visible,
body label[for="mepr_agree_to_tos"] a:focus-visible,
body #mepr_agree_to_tos:focus-visible {
  outline: 3px solid #e58a99 !important;
  outline-offset: 3px !important;
}
body .epi-coaching-visible-cta:disabled {
  opacity: .55 !important;
  cursor: not-allowed;
}
@media (max-width: 480px) {
  body a.epi-coaching-visible-cta,
  body button.epi-coaching-visible-cta,
  body input.epi-coaching-visible-cta {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}
