/*
 * Small rules the live Flourish Training site ships as inline <style> in its page head (not in any
 * CSS file): the full-screen "loading" overlay used by form submits, and the jQuery-toast tweaks.
 */

.close-jq-toast-single {
  position: absolute;
  top: -12px;
  right: -12px;
  font-size: 20px;
  cursor: pointer;
  height: 32px;
  width: 32px;
  background: #343a40;
  color: #f1f3fa;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
}

.jq-toast-single {
  text-align: center;
  font-size: 13px;
}

.custom-loading {
  position: fixed;
  z-index: 99999999;
  height: 2em;
  width: 2em;
  overflow: visible;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: none;
}

/* Transparent overlay */
.custom-loading:before {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}

/* Hide the "Loading..." text, show the spinner */
.custom-loading:not(:required) {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.custom-loading:not(:required):after {
  content: "";
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  animation: tj-custom-spinner 1500ms infinite linear;
  border-radius: 0.5em;
  box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0,
    rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0,
    rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
}

@keyframes tj-custom-spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*
 * Form feedback messages (success / error) used by every public form on the site.
 *
 * custom.css (from the live site) paints `.scss-msg` solid green with dark text, which is
 * unreadable and not part of the brand palette. These use the template's own brand variables
 * (pink --tj-color-theme-primary, navy --tj-color-theme-dark) so success and error read clearly
 * and match the rest of the site. `!important` is needed to beat custom.css's own !important.
 */
.form-one__control--full.scss-msg,
.form-one__control--full.scss--sucess-msg {
  background-color: var(--tj-color-theme-dark, #203b72) !important;
  color: #fff !important;
  padding: 14px 18px;
  border-radius: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.form-one__control--full.scss-msg a,
.form-one__control--full.scss--sucess-msg a {
  color: #fff;
  text-decoration: underline;
}

.form-one__control--full.err-msg,
.form-one__control--full.scss-error-msg {
  background-color: #fff;
  color: var(--tj-color-theme-primary, #ea027f);
  border: 1px solid var(--tj-color-theme-primary, #ea027f);
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 16px;
}

/* Footer bottom bar: the copyright line sits directly under the phone number and email address (left); payment logos stay on the right.
   Phones centre the stack, as the template does for the old one-row layout. */
.copyright-content-area .footer-contact-copyright {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.copyright-content-area .footer-contact-copyright .footer-contact ul {
  justify-content: flex-start;
}
@media (max-width: 767px) {
  .copyright-content-area .footer-contact-copyright {
    width: 100%;
    align-items: center;
  }
  .copyright-content-area .footer-contact-copyright .footer-contact ul {
    justify-content: center;
  }
}
