/* Empire Coders: mobile fixes, schedule popup and thank-you page.
   Loaded after style.css on every page, so these rules take precedence. */

/* ---------- "Schedule Meeting" in the header vs. the mobile menu ----------
   1200px and up: the button stays in the header bar (unchanged).
   Below 1200px the navigation becomes the slide-out menu, so the header
   button is hidden and the same action appears as a plain menu item. */
@media (max-width: 1199px) {
  header .get-quate:not(.dn) {
    display: none !important;
  }
}
header .main-nav ul li.ec-menu-schedule {
  display: none;
}
@media (max-width: 1199px) {
  header .main-nav ul li.ec-menu-schedule {
    display: block;
    padding: 0 5px;
  }
  header .main-nav ul li.ec-menu-schedule a {
    color: #D90A2C;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 6px;
    padding-top: 14px;
  }
}

/* ---------- Faster first paint ----------
   The template kept the page hidden behind a preloader until the window
   finished loading, then waited a further 1.6s before fading it out.
   The preloader is removed so the page appears as soon as it renders. */
.preloader_area_wrap {
  display: none !important;
}

/* ---------- Schedule popup (single shared modal, appended to <body>) ---------- */
.ec-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
.ec-modal.is-open {
  display: flex;
}
.ec-modal__box {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 94vh;
  background: #181818;
  border-radius: 10px;
  padding: 44px 12px 12px;
  box-sizing: border-box;
  overflow: hidden;
}
.ec-modal__close {
  position: absolute;
  top: 6px;
  right: 10px;
  z-index: 2;
  background: none;
  border: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.ec-modal iframe {
  display: block;
  width: 100%;
  height: min(70vh, 640px);
  min-height: 420px;
  border: 0;
  border-radius: 6px;
  background: #181818;
}
.ec-modal__fallback {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
}
body.ec-modal-open {
  overflow: hidden;
}
@media (max-width: 767px) {
  .ec-modal {
    padding: 8px;
  }
  .ec-modal__box {
    padding: 40px 6px 10px;
  }
  .ec-modal iframe {
    height: 72vh;
    min-height: 380px;
  }
}

/* ---------- Schedule page (/schedule-meeting) ---------- */
.ec-schedule-page {
  margin: 0;
  background: #181818;
  color: #fff;
  font-family: Arial, sans-serif;
  text-align: center;
}
.ec-schedule-page iframe {
  display: block;
  width: 100%;
  height: 100vh;
  border: 0;
}

/* ---------- Thank-you page (/thanks) ---------- */
.ec-thanks {
  min-height: 100vh;
  margin: 0;
  background: #181818;
  color: #fff;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
}
.ec-thanks__box {
  max-width: 560px;
}
.ec-thanks h1 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 12px;
}
.ec-thanks p {
  color: #ddd;
  font-size: 17px;
  line-height: 1.6;
}
.ec-thanks__btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 26px;
  border-radius: 6px;
  background: #ff6a00;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}


/* Hide the header Schedule Meeting button on mobile; it stays in the mobile menu */
@media (max-width: 1199px) {
  .work-btn, .ec-schedule-trigger { display: none !important; }
}