/*
 * Shared "Get Your Quote Today!" modal styling — single source for the homepage AND book ad pages.
 * Mirrors the homepage modal (extracted from style.css/style-web.css/responsive.css)
 * but every content rule is scoped to #popupform so it cannot affect the book
 * pages' own bootstrap forms/modals. Load AFTER the Fancybox CDN stylesheet so
 * these overrides win. Fancybox 3.5.7 supplies the lightbox chrome.
 *
 * Self-contained by design: the book pages' base CSS (book/all.css) uses a
 * different bootstrap + the Poppins font, so the modal's grid (.row/.col-*)
 * and typography (h2/p) must be pinned here to match the homepage exactly
 * rather than inheriting from the host page. Fonts are loaded below since the
 * book pages don't otherwise load Barlow Condensed / Rubik.
 */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700&family=Rubik:wght@400;500;700&display=swap");

/* Lightbox container overrides (Fancybox defaults: white bg + 44px padding) */
.fancybox-content {
  max-width: 1100px;
  padding: 0;
  background: transparent;
}
.fancybox-slide--html .fancybox-close-small {
  background: #ff9901;
  opacity: 1;
  border-radius: 50%;
  color: #fff;
  padding: 7px;
  border: 3px solid #123c3e;
}

#popupform .modal-body {
  padding: 0;
  position: relative;
  overflow: hidden;
}
#popupform .popup-bann {
  max-width: 320px;
  display: inline-block;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}
#popupform .popup-content {
  max-width: 1050px;
  display: inline-block;
  padding: 55px 40px 40px 310px;
  margin-left: -290px;
  position: relative;
  border-radius: 180px 40px 40px 40px;
  background: rgb(255, 223, 125);
  background: linear-gradient(
    121deg,
    rgba(255, 223, 125, 1) 0%,
    rgba(252, 234, 181, 1) 17%,
    rgba(248, 249, 253, 1) 30%,
    rgba(255, 255, 255, 1) 100%
  );
  /* base inherited look (homepage body): Rubik 14px/1.5, black text */
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
}
#popupform .popup-content h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  display: inline-block;
  vertical-align: middle; /* homepage gets this from its global reset; the book page's reset doesn't, so the description sat ~35px too low */
  text-transform: uppercase;
  font-size: 54px;
  line-height: 54px;
  color: #000;
  margin-top: 0;
  margin-bottom: 20px;
}
#popupform .popup-content h2::before {
  display: none;
}
#popupform .popup-content h2 + p {
  display: inline-block;
  max-width: 58%;
  margin-left: 10px;
  margin-top: 0;
  margin-bottom: 0;
  vertical-align: text-top;
  font-family: "Rubik", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #2c2f39;
}
/* Self-contained bootstrap grid — the homepage gets this from style.css, but
   book/all.css's grid differs and the .col-md-* width rule was purged there. */
#popupform .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -8px;
  margin-left: -8px;
}
#popupform .popup-content [class*="col-"] {
  position: relative;
  width: 100%;
  min-height: 1px;
  box-sizing: border-box;
  padding: 0 7px;
}
#popupform .col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}
#popupform .col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
}
#popupform .popup-content::before {
  content: "";
  background: #ff9901;
  width: 46%;
  height: 5px;
  position: absolute;
  top: 95px;
  right: 80px;
}

/* Base field look (homepage relies on its global .form-control; id-scoped here so
   it matches exactly and overrides the book pages' bootstrap .form-control). */
#popupform .form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
#popupform .popup-content .form-control {
  font-size: 15px;
  margin-bottom: 14px;
  height: 50px !important;
  border-radius: 0;
}
#popupform .popup-content textarea.form-control {
  height: 58.5%;
  resize: none;
}

/* Submit button = homepage .btn + .btn-black + .btn-black2 + .popupform overrides, flattened */
#popupform input[type="submit"] {
  padding: 12px 25px 12px 15px;
  width: 40%;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.3s all ease-in-out;
  margin-top: 10px;
  background: #123c3e;
  box-shadow: 3px 3px 0px #ff9901;
}
#popupform input[type="submit"] + img {
  filter: invert(1);
  transition: 0.5s all;
  position: relative;
  right: 90px;
}

@media only screen and (max-width: 980px) and (min-width: 320px) {
  #popupform .popup-bann {
    display: none;
  }
  #popupform .popup-content {
    margin-left: 0;
    padding: 20px 10px;
    border-radius: 0;
  }
  #popupform .popup-content::before {
    display: none;
  }
  #popupform .popup-content h2 {
    font-size: 26px;
    line-height: 28px;
    margin-bottom: 5px;
  }
  #popupform .popup-content h2 + p {
    max-width: 100%;
    margin-bottom: 20px;
    margin-left: 0;
  }
  #popupform .popup-content .form-control {
    margin-bottom: 10px;
  }
  #popupform input[type="submit"] {
    width: 50%;
    padding: 8px 15px;
    letter-spacing: 2px;
    margin-top: 0;
  }
  #popupform input[type="submit"] + img {
    display: none;
  }
  .fancybox-slide--html .fancybox-close-small {
    top: 0px;
    border-radius: 0;
    border: none;
    background: transparent;
    color: #000;
  }
}
