/* aisp.css - the only new hand-written CSS.
 *
 * The original stylesheets carry all spacing, type and layout. This file adds
 * only what the original CSS had no rule for: the native replacement of the
 * LeadZip quote widget, the accordion's collapse mechanics, the lightbox
 * viewer, and the form status line. Every value below was measured from the
 * live widget (tools/probe_iframe_styles.py) or matches the original JS.
 */

/* ------------------------------------------------- 1. hero backstretch */
.top-content {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

/* --------------------------------- 2. quote form (was the LeadZip iframe) */
.aisp-form .form-group {
  margin-bottom: 15px;
  padding: 0 25px;
  position: relative;
}

.aisp-form input[type="text"],
.aisp-form input[type="email"],
.aisp-form input[type="tel"],
.aisp-form textarea {
  width: 100%;
  height: 43px;
  margin: 0;
  padding: 10px 15px;
  background: #fff;
  border: 0;
  border-radius: 5px;
  color: #2c3345;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 22.5px;
  box-shadow: none;
}

.aisp-form textarea {
  height: 108px;
  padding: 10px 15px;
  line-height: 22.5px;
  resize: vertical;
}

.aisp-form input:focus,
.aisp-form textarea:focus {
  outline: 0;
  border: 1px solid #bbb;
}

/* the vendor widget puts the email field's icon inside the left padding */
.aisp-form .fa {
  position: absolute;
  left: 40px;
  top: 14px;
  color: #8a8a8a;
  font-size: 15px;
  pointer-events: none;
}

.aisp-form input.has-icon {
  padding-left: 39px;
}

/* hero submit button, measured from the live widget */
.form-bottom .submit-box {
  padding: 15px 25px 0 25px;
  background: none;
}

.sb-btn {
  display: block;
  width: 100%;
  height: 53px;
  margin: 0;
  padding: 12px 10px 10px;
  border: 0;
  border-radius: 20px;
  background-color: #060606;
  background-image: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 30.6px;
  cursor: pointer;
  transition: opacity .2s;
}

.sb-btn:hover,
.sb-btn:focus {
  background-color: #060606;
  background-image: none;
  color: #fff;
  opacity: .85;
}

.sb-btn:disabled {
  opacity: .6;
  cursor: default;
}

/* honeypot: present for bots, invisible to people. The .form-group padding in
   the original CSS is what made the field measurable at all, so every box
   property is pinned here rather than inherited. */
.aisp-hp {
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.aisp-hp label,
.aisp-hp input {
  display: block !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* status line under the submit button */
.aisp-status {
  margin: 12px 25px 0;
  min-height: 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

.aisp-status.is-ok { color: #7ee2a8; }
.aisp-status.is-err { color: #ff8b8b; }

/* -------------------------- 3. contact section form (was commented out) */
.aisp-contact-form {
  padding: 0 !important;
  overflow: hidden;
}

.aisp-contact-form .form-bottom .submit-box {
  padding: 10px 25px 0 25px;
}

.aisp-contact-form .aisp-status.is-ok { color: #009ADE; }
.aisp-contact-form .aisp-status.is-err { color: #a94442; }

/* ------------------------------------- 4. services accordion mechanics */
.services .panel-body.collapse {
  display: block;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  transition: height .35s ease;
}

.services .panel-body.collapse.show {
  height: auto;
}

.services .panel-heading {
  cursor: pointer;
}

/* the minus/plus marker the original draws after the panel title */
#panel_open_close:after {
  font-family: inherit;
  content: "\2212";
  float: right;
  margin-left: 15px;
  cursor: pointer;
  font-size: 35px;
  font-weight: 600;
}

#panel_open_close.collapsed:after {
  content: "\2b";
  cursor: pointer;
  font-size: 35px;
}

/* --------------------------------------------- 5. lightbox gallery */
.lightboxgallery-modal-wrapper { display: none; }
.lightboxgallery-image { max-width: 90vw; max-height: 82vh; width: auto; }
.lightboxgallery-modal { max-width: 92vw; }
.lightboxgallery-image-desc { display: block; font-size: 14px; opacity: .85; }

/* The original page's dividers measure 4px, not 30px. In the live cascade the
   .divider-1 box reports a 30px line-height yet collapses onto its inline-block
   bar, so the heading under it sits 26px higher than a bare block would. The
   two extra spans the live DOM carries (one per divider) are part of that
   rendering. Matching it exactly: the wrapper takes the bar's height. */
.divider-1,
.divider-2 {
  height: 4px;
}

/* ---------------------------- 6. mobile menu (Bootstrap collapse, no jQuery) */
@media (max-width: 991px) {
  .navbar-collapse.collapse {
    display: none !important;
  }
  .navbar-collapse.collapse.in {
    display: block !important;
    height: auto !important;
    overflow-y: auto !important;
  }
  .navbar-toggle {
    display: block;
  }
}
