/**
 * Site-specific overrides (migrated from former inline / child theme hooks).
 */

/* Animated anchor link hover */
.underhover {
  position: relative;
  z-index: 0;
}

.underhover:hover {
  color: #000000 !important;
}

.underhover:after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 100%;
  bottom: 0;
  background: #f2bd00;
  height: 2px;
  transition: width 0.46s ease;
  -webkit-transition: width 0.46s ease;
  -moz-transition: width 0.46s ease;
  -o-transition: width 0.46s ease;
}

.underhover:hover:after {
  width: 100%;
  left: 0;
  background: #f2bd00;
}

.logo-alignleft {
  display: inline;
  float: left;
  margin-right: 45px;
  margin-bottom: 10px;
}

.bottompad {
  padding-bottom: 20px;
}

.shadowbutton {
  box-shadow: 0 0 11px rgba(33, 33, 33, 0.6) !important;
  color: #ffffff;
}

.shadowbutton:hover {
  box-shadow: 0 0 11px rgba(33, 33, 33, 0.6) !important;
  color: #ffffff;
}

.formbox {
  color: #ffffff;
  font-size: 14px;
}

.formbox a {
  color: #e2e2e2;
}

.formbox a:hover {
  color: #c8972c;
  text-decoration: underline;
}

.consunova-content-boxes .content-wrapper-background {
  padding: 20px 30px !important;
}

.content-boxes-clean-horizontal .col {
  padding: 25px 0 !important;
  margin-bottom: 0;
}

.consunova-tabs.horizontal-tabs.clean .tab-content {
  margin-top: 0 !important;
}

.button-3d {
  box-shadow: inset 0 0 0 #fff, 0.1em 0.2em 0.2em 0.15em rgb(0 0 0 / 30%) !important;
}

.button-3d:hover {
  box-shadow: inset 0 0 0 #fff, 0.1em 0.2em 0.2em 0.15em rgb(0 0 0 / 30%) !important;
}

.button-3d:active {
  box-shadow: inset 0 1px 0 #fff, 0.1em 0.2em 0.2em 0.15em rgb(0 0 0 / 30%) !important;
}

.shadowwrap {
  border: none;
}

.shadowwrap:hover {
  padding: 10px 15px;
  box-shadow: 0.1em 0.1em 0.1em 0.1em rgb(0 0 0 / 20%);
  transition: 0.46s ease;
}

.consunova-image-hovers .hover-type-liftup:before {
  transition: opacity 0.35s, transform 0.35s !important;
  box-shadow: 0 1px 6px rgb(0 0 0 / 30%) !important;
}

#toTop {
  background: #777777 !important;
}

#toTop:hover {
  background: #c8972c !important;
}

.consunova-alert .close {
  color: #ffffff !important;
}

.consunova-alert-content {
  color: #ffffff !important;
}

.consunova-alert.alert-danger.error {
  background-color: rgba(200, 200, 200, 0.2);
  color: rgba(200, 200, 200, 0.2);
}

.alert-icon {
  color: #ffffff !important;
}

.consunova-alert.alert-success.success {
  border: 1px solid rgba(255, 255, 255, 0.69) !important;
}

/* All Avada-style modals: above #toTop (100000); Jotform overrides overflow below */
.consunova-modal.modal {
  z-index: 100500 !important;
}

/* Jotform modal: Avada sets .modal { overflow-y:scroll } on the full-viewport layer → fat “gutter” scrollbar */
.consunova-modal.live-workshop-q32024.modal {
  overflow: hidden !important;
}

/* Above #toTop (z-index:100000); keep backdrop just under this modal */
.modal-backdrop.cnv-bs3-backdrop {
  z-index: 100499 !important;
}

/* Jotform in BS modal: avoid modal-body scrollbar + giant gutter; scroll only inside iframe */
.consunova-modal.live-workshop-q32024.modal .modal-dialog {
  max-height: calc(100vh - 3.5rem);
}

.consunova-modal.live-workshop-q32024.modal .modal-content {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 3.5rem);
  overflow: hidden;
}

.consunova-modal.live-workshop-q32024.modal .modal-header {
  flex: 0 0 auto;
}

.consunova-modal.live-workshop-q32024.modal .modal-body.cnv-jotform-modal-body {
  flex: 1 1 auto;
  /* Don’t use min-height:0 here — it collapses the iframe before Jotform’s height script runs */
  min-height: min(70vh, 720px);
  height: min(calc(100vh - 11rem), 860px);
  max-height: min(calc(100vh - 11rem), 860px);
  overflow: hidden !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

.consunova-modal.live-workshop-q32024.modal .cnv-jotform-iframe {
  flex: 1 1 auto;
  width: 100%;
  min-height: min(68vh, 800px);
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

/* Anti-spam honeypot injected by main.js for site forms */
input.cnv-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Bootstrap 3 collapse: site-bundle omits collapse.js — toggled in fusion-widget-hooks.js */
.consunova-accordian .panel-collapse.collapse:not(.in) {
  display: none !important;
}

.consunova-accordian .panel-collapse.collapse.in {
  display: block !important;
}

.consunova-accordian .panel-title a .fa-consunova-box.active-icon {
  display: none;
}

.consunova-accordian .panel-title a .fa-consunova-box.inactive-icon {
  display: inline-block;
}

.consunova-accordian .panel-title a[aria-expanded="true"] .fa-consunova-box.active-icon {
  display: inline-block;
}

.consunova-accordian .panel-title a[aria-expanded="true"] .fa-consunova-box.inactive-icon {
  display: none;
}

/* Full-screen overlay while native forms POST (reCAPTCHA + redirect) */
.cnv-form-submit-loader {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cnv-form-submit-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.cnv-form-submit-busy {
  cursor: wait;
}

.cnv-form-submit-loader__panel {
  max-width: 360px;
  padding: 28px 32px;
  text-align: center;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.cnv-form-submit-loader__text {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: #333;
}

.cnv-form-submit-loader__spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 3px solid #e0e0e0;
  border-top-color: #8f1a1d;
  border-radius: 50%;
  animation: cnv-form-spin 0.75s linear infinite;
}

@keyframes cnv-form-spin {
  to {
    transform: rotate(360deg);
  }
}
