/* =====================================================================
   Footer INQUIRE form — mockup restyle
   Scoped to footer so other page forms are unaffected.
   ===================================================================== */

footer {
  position: relative;
  background-image: url("../images/footer-track.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5rem 0 2rem;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 0;
  pointer-events: none;
}

footer > .footer-middle,
footer > .footer-bottom {
  position: relative;
  z-index: 1;
}

footer .footer-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 0 2rem;
  margin-bottom: 0 !important;
}

footer .footer-middle .container-new {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

footer #inquire .section-heading {
  text-align: center;
  margin-bottom: 0 !important;
}

footer #inquire .section-heading h2 {
  color: #fff !important;
  font-size: 80px;
  line-height: 1.08;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.25rem;
}

footer #inquire .inquire-sub {
  max-width: 580px;
  margin: 0 auto 2.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 300;
  text-align: center;
}

/* Form shell */
footer .footer-form {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

footer .footer-form > h4.display_name:empty,
footer .footer-form > h4.display_name:blank {
  display: none;
}

footer .footer-form > h4.display_name {
  display: none; /* form title unused in mockup */
}

footer .footer-form .form_body.row {
  margin-left: -10px;
  margin-right: -10px;
}

footer .footer-form .form-group {
  margin-bottom: 20px;
  padding-left: 10px;
  padding-right: 10px;
}

footer .footer-form .form-control {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #707070;
  border-radius: 0;
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none;
  height: auto;
  min-height: 52px;
}

footer .footer-form .form-control::placeholder {
  color: #999;
  opacity: 1;
}

footer .footer-form .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  box-shadow: none;
  outline: none;
}

footer .footer-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Consent checkbox */
footer .footer-form #checkbox_wrap,
footer .footer-form .form-group[id*="i_agree"],
footer .footer-form input[type="checkbox"] + label,
footer .footer-form #i_agree_wrap {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 300;
}

footer .footer-form input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin-right: 8px;
  vertical-align: middle;
}

/* Submit */
footer .footer-form #btnBox_wrap,
footer .footer-form .btnBox {
  text-align: center;
  padding: 10px 10px 0;
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

footer .footer-form #btnSubmit,
footer .footer-form .white-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0 5rem;
  line-height: 46px;
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
  border-radius: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s ease;
  margin: 0.5rem auto 0;
}

/* Kill Bootstrap ml-2 on Reset so both buttons share the same left edge */
footer .footer-form #btnBox_wrap .white-btn.ml-2,
footer .footer-form #btnBox_wrap button[onclick*="logout"] {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

footer .footer-form #btnSubmit:hover,
footer .footer-form #btnSubmit:focus,
footer .footer-form .white-btn:hover,
footer .footer-form .white-btn:focus {
  background: transparent !important;
  color: #fff !important;
}

footer .footer-form #btnSubmit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

footer .footer-form #btnSubmit .bg {
  display: none; /* kill old animated bg span if present */
}

footer .footer-form #btnSubmit .text {
  color: inherit;
}

/* reCAPTCHA */
footer .footer-form .captcha,
footer .footer-form #recaptcha_wrap {
  display: flex;
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
}

/* Bottom bar */
footer .footer-bottom {
  margin-top: 3rem;
  width: 100%;
}

footer .footer-bottom .container-new {
  max-width: 1600px;
}

footer .footer-bottom p,
footer .footer-bottom a {
  font-size: 16px;
  color: #747474;
  font-weight: 300;
  text-transform: capitalize;
}

footer .footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 1550.99px) {
  footer #inquire .section-heading h2 {
    font-size: 68px;
  }
}

@media (max-width: 1024.99px) {
  footer #inquire .section-heading h2 {
    font-size: 48px;
  }
  footer .footer-middle .container-new {
    max-width: 92%;
  }
}

@media (max-width: 767.99px) {
  footer {
    min-height: unset;
    padding: 3.5rem 0 1.5rem;
  }
  footer #inquire .section-heading h2 {
    font-size: 36px;
  }
  footer #inquire .inquire-sub {
    font-size: 15px;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  footer .footer-form #btnBox_wrap,
  footer .footer-form .btnBox {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  footer .footer-form #btnSubmit,
  footer .footer-form .white-btn {
    min-width: 180px;
    width: 100%;
    max-width: 220px;
    padding: 0 3rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 480.99px) {
  footer #inquire .section-heading h2 {
    font-size: 28px;
  }
}

/* Nav underline: WP marks all homepage hash links as .current-menu-item,
   which kept every underline permanently on. Hover-only. */
header .navbar-nav li.current-menu-item a::after {
  width: 0%;
}
header .navbar-nav li.current-menu-item a:hover::after,
header .navbar-nav li a:hover::after {
  width: 100%;
}
/* Kill legacy forced underline on McMurtry Videos (menu-item-2283) */
header .navbar-nav .menu-item-2283 a::after,
.menu-item-2283 a::after {
  width: 0% !important;
}
header .navbar-nav .menu-item-2283 a:hover::after,
.menu-item-2283 a:hover::after {
  width: 100% !important;
}

/* Mobile only: full-height open menu + larger links / padding
   (matches navbar-expand-xl collapse breakpoint) */
@media (max-width: 1199.98px) {
  header .navbar-collapse.show {
    min-height: calc(100vh - 70px);
    min-height: calc(100dvh - 70px);
    margin-top: 0;
    margin-bottom: 0;
    padding: 2rem 0 3rem;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  header .navbar-nav {
    width: 100%;
  }

  header .navbar-nav li {
    padding: 1.35rem 0;
    margin: 0 10px;
  }

  header .navbar-nav li a {
    font-size: 1.35rem;
    padding: 0.65rem 1rem;
    display: inline-block;
  }
}
