/* Former template style snippet_close_head, moved out of #__template_styles so params stay small.
   hom-form-style overrides follow the marker below. Homepage form rules are not in this file. */
/* ================================
   CONTENT TYPOGRAPHY ONLY
   Menu/badges are preserved
   ================================ */

html body #t3-content,
html body .item-page,
html body .article-content,
html body .com-content-article__body,
.esq-page,
.state-page {
  color: #243447 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

html body #t3-content p,
html body .item-page p,
html body .article-content p,
html body .com-content-article__body p,
.esq-page p,
.state-page p {
  font-size: 17px !important;
  line-height: 1.62 !important;
  margin-bottom: 14px !important;
  color: #243447 !important;
  font-weight: 400 !important;
}

html body #t3-content li,
html body .item-page li,
html body .article-content li,
html body .com-content-article__body li,
.esq-page li,
.state-page li {
  font-size: 17px !important;
  line-height: 1.58 !important;
  margin-bottom: 8px !important;
  color: #243447 !important;
  font-weight: 400 !important;
}

html body #t3-content h1,
html body .item-page h1,
html body .article-content h1,
html body .com-content-article__body h1,
.esq-page h1,
.state-page h1 {
  color: #111827 !important;
  font-size: clamp(34px, 4.1vw, 44px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
  font-weight: 700 !important;
  margin: 18px 0 14px !important;
}

html body #t3-content h2,
html body .item-page h2,
html body .article-content h2,
html body .com-content-article__body h2,
.esq-page h2,
.state-page h2 {
  color: #123b5d !important;
  font-size: 28px !important;
  line-height: 1.22 !important;
  letter-spacing: -0.015em !important;
  font-weight: 700 !important;
  margin: 26px 0 12px !important;
}

html body #t3-content h3,
html body .item-page h3,
html body .article-content h3,
html body .com-content-article__body h3,
.esq-page h3,
.state-page h3 {
  color: #123b5d !important;
  font-size: 23px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  font-weight: 700 !important;
  margin: 24px 0 12px !important;
}

html body #t3-content h4,
html body .item-page h4,
html body .article-content h4,
html body .com-content-article__body h4,
.esq-page h4,
.state-page h4 {
  color: #111827 !important;
  font-size: 18px !important;
  line-height: 1.32 !important;
  font-weight: 700 !important;
  margin: 20px 0 8px !important;
}

html body #t3-content p a:not([style*="background"]):not(.btn):not(.button):not([class*="btn"]),
html body #t3-content li a:not([style*="background"]):not(.btn):not(.button):not([class*="btn"]),
html body .article-content p a:not([style*="background"]):not(.btn):not(.button):not([class*="btn"]),
html body .article-content li a:not([style*="background"]):not(.btn):not(.button):not([class*="btn"]),
.esq-page p a:not([style*="background"]),
.esq-page li a:not([style*="background"]),
.state-page p a:not([style*="background"]),
.state-page li a:not([style*="background"]) {
  color: #075985 !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
}

html body #t3-content p a:not([style*="background"]):hover,
html body #t3-content li a:not([style*="background"]):hover,
html body .article-content p a:not([style*="background"]):hover,
html body .article-content li a:not([style*="background"]):hover,
.esq-page p a:not([style*="background"]):hover,
.esq-page li a:not([style*="background"]):hover,
.state-page p a:not([style*="background"]):hover,
.state-page li a:not([style*="background"]):hover {
  color: #123b5d !important;
  text-decoration-thickness: 2px !important;
}

/* reduce excessive article top gap */
#t3-mainbody.t3-mainbody,
.t3-mainbody {
  padding-top: 42px !important;
}

/* ================================
   LOGO + HEADER FIX
   Keeps logo normal, not centered
   ================================ */

@media (min-width: 768px) {
  #t3-header {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  #t3-header .row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
  }

  #t3-header .logo {
    float: none !important;
    width: 260px !important;
    max-width: 260px !important;
    flex: 0 0 260px !important;
    text-align: left !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #t3-header .logo-image,
  #t3-header .logo-image a {
    display: block !important;
    text-align: left !important;
  }

  #t3-header .logo img.logo-img {
    display: block !important;
    margin: 0 !important;
  }

  #t3-header .logo span,
  #t3-header .site-slogan {
    display: none !important;
  }

  #t3-header .header-right {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    padding-left: 20px !important;
    padding-top: 0 !important;
    position: static !important;
    overflow: visible !important;
  }

  #t3-header .header-right .languageswitcherload,
  #t3-header .header-right .head-search {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    overflow: visible !important;
  }

  #t3-header .header-right .languageswitcherload > ul.nav.nav-pills.nav-stacked.menu,
  #t3-header .header-right .head-search > ul.nav.nav-pills.nav-stacked.menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    list-style: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  #t3-header .header-right .languageswitcherload > ul.nav.nav-pills.nav-stacked.menu > li,
  #t3-header .header-right .head-search > ul.nav.nav-pills.nav-stacked.menu > li {
    display: block !important;
    float: none !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  #t3-header .header-right .languageswitcherload > ul.nav.nav-pills.nav-stacked.menu > li > a,
  #t3-header .header-right .head-search > ul.nav.nav-pills.nav-stacked.menu > li > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 7px 12px !important;
    background: #f5f9fc !important;
    color: #184565 !important;
    border: 1px solid #d7e3ec !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }

  #t3-header .header-right .languageswitcherload > ul.nav.nav-pills.nav-stacked.menu > li > a:hover,
  #t3-header .header-right .languageswitcherload > ul.nav.nav-pills.nav-stacked.menu > li > a:focus,
  #t3-header .header-right .head-search > ul.nav.nav-pills.nav-stacked.menu > li > a:hover,
  #t3-header .header-right .head-search > ul.nav.nav-pills.nav-stacked.menu > li > a:focus {
    background: #edf5fa !important;
    border-color: #c8dbe8 !important;
    color: #103a5e !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
  }
}

/* ================================
   HEADER TOP BUTTON MENU
   Restored as one horizontal row
   ================================ */
@media (min-width: 768px) {
  #t3-header .header-right .languageswitcherload,
  #t3-header .header-right .head-search {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    overflow: visible !important;
  }

  #t3-header .header-right .languageswitcherload > ul.nav.nav-pills.nav-stacked.menu,
  #t3-header .header-right .head-search > ul.nav.nav-pills.nav-stacked.menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    gap: 8px !important;
  }

  #t3-header .header-right .languageswitcherload > ul.nav.nav-pills.nav-stacked.menu > li,
  #t3-header .header-right .head-search > ul.nav.nav-pills.nav-stacked.menu > li {
    display: block !important;
    float: none !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #t3-header .header-right .languageswitcherload > ul.nav.nav-pills.nav-stacked.menu > li > a,
  #t3-header .header-right .head-search > ul.nav.nav-pills.nav-stacked.menu > li > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 7px 12px !important;
    background: #f5f9fc !important;
    color: #184565 !important;
    font-size: 12.5px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border: 1px solid #d7e3ec !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }

  #t3-header .header-right .languageswitcherload > ul.nav.nav-pills.nav-stacked.menu > li > a:hover,
  #t3-header .header-right .languageswitcherload > ul.nav.nav-pills.nav-stacked.menu > li > a:focus,
  #t3-header .header-right .head-search > ul.nav.nav-pills.nav-stacked.menu > li > a:hover,
  #t3-header .header-right .head-search > ul.nav.nav-pills.nav-stacked.menu > li > a:focus {
    background: #edf5fa !important;
    border-color: #c8dbe8 !important;
    color: #103a5e !important;
    transform: translateY(-1px) !important;
  }
}

/* ================================
   FORMS / QUOTE BLOCKS
   ================================ */
/* ===== UPDATED FORMS ===== */

/* ================================
   PROFESSIONAL QUOTE FORMS
   Only affects ESQ quote cards
   ================================ */

.esq-forms {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin: 22px 0 18px !important;
}

.esq-form-box {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
  border: 1px solid #d7e6f0 !important;
  border-radius: 18px !important;
  padding: 24px 22px 22px !important;
  box-shadow: 0 10px 26px rgba(18, 59, 93, 0.055) !important;
  box-sizing: border-box !important;
}

.esq-form-box::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #123b5d 0%, #176ca8 100%) !important;
}

.esq-form-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 0 14px !important;
}

.esq-form-title {
  margin: 0 !important;
  color: #123b5d !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

.esq-form-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-height: 30px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: #eef7fd !important;
  border: 1px solid #cfe4f3 !important;
  color: #123b5d !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.esq-form-desc {
  margin: 0 0 18px !important;
  color: #243447 !important;
  font-size: 17px !important;
  line-height: 1.52 !important;
  font-weight: 400 !important;
}

.esq-form-box form.quote-form {
  margin: 0 !important;
  padding: 0 !important;
}

.esq-form-label,
.esq-form-field label {
  display: block !important;
  margin: 0 0 8px !important;
  color: #123b5d !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.esq-form-row {
  display: grid !important;
  grid-template-columns: minmax(160px, 1fr) auto !important;
  align-items: end !important;
  gap: 12px !important;
  margin: 0 !important;
}

.esq-form-field {
  min-width: 0 !important;
  width: 100% !important;
}

.esq-form-field input[type="text"],
.esq-form-field input[type="tel"],
.esq-form-field input[type="number"] {
  display: block !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  background: #ffffff !important;
  border: 1px solid #b9ccda !important;
  border-radius: 12px !important;
  color: #111827 !important;
  font-size: 18px !important;
  line-height: 52px !important;
  font-weight: 500 !important;
  outline: none !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.04) !important;
}

.esq-form-field input[type="text"]:focus,
.esq-form-field input[type="tel"]:focus,
.esq-form-field input[type="number"]:focus {
  border-color: #176ca8 !important;
  box-shadow: 0 0 0 4px rgba(23, 108, 168, 0.13) !important;
}

.esq-form-box .btn-quote,
.esq-form-box .btn-quote.btn-quote--green,
.esq-form-box button[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  background: #123b5d !important;
  border: 1px solid #123b5d !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(18, 59, 93, 0.18) !important;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.esq-form-box .btn-quote:hover,
.esq-form-box .btn-quote:focus,
.esq-form-box .btn-quote.btn-quote--green:hover,
.esq-form-box .btn-quote.btn-quote--green:focus,
.esq-form-box button[type="submit"]:hover,
.esq-form-box button[type="submit"]:focus {
  background: #176ca8 !important;
  border-color: #176ca8 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(23, 108, 168, 0.22) !important;
}

.esq-form-note {
  margin: 14px 0 0 !important;
  color: #405466 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.esq-form-note strong {
  color: #123b5d !important;
  font-weight: 700 !important;
}

/* make the two cards visually balanced */
.esq-form-box .quote-form + .esq-form-note {
  padding-top: 2px !important;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 900px) {
  .esq-forms {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

@media (max-width: 640px) {
  .esq-form-box {
    padding: 20px 16px 18px !important;
    border-radius: 16px !important;
  }

  .esq-form-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 9px !important;
    margin-bottom: 12px !important;
  }

  .esq-form-title {
    font-size: 21px !important;
  }

  .esq-form-badge {
    min-height: 28px !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
  }

  .esq-form-desc {
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }

  .esq-form-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .esq-form-field input[type="text"],
  .esq-form-field input[type="tel"],
  .esq-form-field input[type="number"] {
    height: 48px !important;
    min-height: 48px !important;
    line-height: 48px !important;
    font-size: 17px !important;
  }

  .esq-form-box .btn-quote,
  .esq-form-box .btn-quote.btn-quote--green,
  .esq-form-box button[type="submit"] {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
  }

  .esq-form-note {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

/* ================================
   TOP-10 / INTERNAL MENU BLOCKS
   ================================ */

.top-10-companies-menu {
  max-width: 952px !important;
  margin: 0 auto 2px !important;
  padding: 24px 26px 26px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 1px solid #dbe4ec !important;
  border-radius: 12px !important;
  box-shadow: 0 7px 18px rgba(18, 59, 93, .045) !important;
  box-sizing: border-box !important;
}

.top-10-companies-menu h3,
.top-10-companies-menu h4,
.top-10-companies-menu .h4 {
  position: relative !important;
  margin: 0 0 18px !important;
  padding-left: 14px !important;
  color: #111827 !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  text-transform: uppercase !important;
}

.top-10-companies-menu h3::before,
.top-10-companies-menu h4::before,
.top-10-companies-menu .h4::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: .14em !important;
  width: 5px !important;
  height: 1.05em !important;
  border-radius: 999px !important;
  background: #176ca8 !important;
}

.top-10-companies-menu ul {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.top-10-companies-menu li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

.top-10-companies-menu li::before,
.top-10-companies-menu li::marker {
  display: none !important;
  content: none !important;
}

.top-10-companies-menu a,
.top-10-companies-menu .current-company {
  color: #006bcf !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.top-10-companies-menu a:hover {
  color: #123b5d !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.top-10-companies-menu .current-company {
  color: #111827 !important;
  font-weight: 600 !important;
}

.top-10-companies-menu ul li:nth-child(3n+2),
.top-10-companies-menu ul li:nth-child(3n+3) {
  border-left: 1px solid #dbe4ec !important;
  padding-left: 36px !important;
}

/* ================================
   COMPANIES BADGES MODULES
   Original style preserved
   ================================ */

.t3-module.module.companies-badges,
.module.companies-badges {
  width: 952px !important;
  max-width: 952px !important;
  margin: 0 auto 22px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  float: none !important;
  clear: both !important;
}

.t3-module.module.companies-badges > .module-inner > .badge,
.module.companies-badges > .module-inner > .badge {
  display: none !important;
}

.t3-module.module.companies-badges .module-inner,
.module.companies-badges .module-inner {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg, #fcfeff 0%, #f4f8fb 100%) !important;
  border: 1px solid #dce6ee !important;
  border-radius: 8px !important;
  padding: 22px 20px 18px !important;
  box-shadow: 0 8px 22px rgba(18, 58, 99, 0.05) !important;
  overflow: hidden !important;
}

.t3-module.module.companies-badges h4.module-title,
.module.companies-badges h4.module-title,
.t3-module.module.companies-badges h3.module-title,
.module.companies-badges h3.module-title,
.t3-module.module.companies-badges .module-title,
.module.companies-badges .module-title {
  margin: 0 0 14px !important;
  color: #111827 !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.t3-module.module.companies-badges .module-title:empty,
.module.companies-badges .module-title:empty {
  display: none !important;
}

.t3-module.module.companies-badges ul,
.t3-module.module.companies-badges li,
.module.companies-badges ul,
.module.companies-badges li {
  list-style: none !important;
}

.t3-module.module.companies-badges ul::before,
.t3-module.module.companies-badges li::before,
.t3-module.module.companies-badges li::marker,
.module.companies-badges ul::before,
.module.companies-badges li::before,
.module.companies-badges li::marker {
  content: none !important;
  display: none !important;
}

.t3-module.module.companies-badges ul.nav.nav-pills.nav-stacked.menu,
.module.companies-badges ul.nav.nav-pills.nav-stacked.menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.t3-module.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li,
.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li {
  display: block !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.t3-module.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li + li,
.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li + li {
  margin-top: 0 !important;
}

.t3-module.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li > a,
.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 8px 14px !important;
  background: #ffffff !important;
  color: #184565 !important;
  border: 1px solid #d4e0e9 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.t3-module.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li > a:hover,
.t3-module.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li > a:focus,
.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li > a:hover,
.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li > a:focus {
  background: #f1f7fb !important;
  color: #123a63 !important;
  border-color: #c4d7e4 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(18, 58, 99, 0.06) !important;
}

.t3-module.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li.current > a,
.t3-module.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li.active > a,
.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li.current > a,
.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li.active > a {
  background: linear-gradient(180deg, #1d679a 0%, #124d79 100%) !important;
  border-color: #124d79 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 16px rgba(18, 77, 121, 0.18) !important;
}

/* ================================
   MOBILE
   ================================ */

@media (max-width: 767px) {
  #t3-mainbody.t3-mainbody,
  .t3-mainbody {
    padding-top: 24px !important;
  }

  #t3-header {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  #t3-header .row {
    display: block !important;
  }

  #t3-header .logo,
  #t3-header .header-right {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }

  #t3-header .logo {
    text-align: center !important;
  }

  #t3-header .logo img.logo-img {
    margin: 0 auto !important;
  }

  #t3-header .header-right {
    padding-top: 8px !important;
  }

  #t3-header .header-right .languageswitcherload,
  #t3-header .header-right .head-search {
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  #t3-header .header-right .languageswitcherload::-webkit-scrollbar,
  #t3-header .header-right .head-search::-webkit-scrollbar {
    display: none !important;
  }

  #t3-header .header-right .languageswitcherload > ul.nav.nav-pills.nav-stacked.menu,
  #t3-header .header-right .head-search > ul.nav.nav-pills.nav-stacked.menu {
    width: max-content !important;
    min-width: 100% !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  html body #t3-content p,
  html body #t3-content li,
  html body .item-page p,
  html body .item-page li,
  html body .article-content p,
  html body .article-content li,
  html body .com-content-article__body p,
  html body .com-content-article__body li,
  .esq-page p,
  .esq-page li,
  .state-page p,
  .state-page li {
    font-size: 16px !important;
    line-height: 1.58 !important;
  }

  html body #t3-content h1,
  html body .item-page h1,
  html body .article-content h1,
  html body .com-content-article__body h1,
  .esq-page h1,
  .state-page h1 {
    font-size: 32px !important;
    line-height: 1.16 !important;
  }

  html body #t3-content h2,
  html body .item-page h2,
  html body .article-content h2,
  html body .com-content-article__body h2,
  .esq-page h2,
  .state-page h2 {
    font-size: 24px !important;
  }

  html body #t3-content h3,
  html body .item-page h3,
  html body .article-content h3,
  html body .com-content-article__body h3,
  .esq-page h3,
  .state-page h3 {
    font-size: 21px !important;
  }

  .t3-module.module.companies-badges,
  .module.companies-badges {
    width: 100% !important;
    max-width: 100% !important;
    margin: 14px auto 18px !important;
  }

  .t3-module.module.companies-badges .module-inner,
  .module.companies-badges .module-inner {
    padding: 14px !important;
    border-radius: 8px !important;
  }

  .t3-module.module.companies-badges h4.module-title,
  .module.companies-badges h4.module-title,
  .t3-module.module.companies-badges h3.module-title,
  .module.companies-badges h3.module-title,
  .t3-module.module.companies-badges .module-title,
  .module.companies-badges .module-title {
    font-size: 20px !important;
  }

  .t3-module.module.companies-badges ul.nav.nav-pills.nav-stacked.menu,
  .module.companies-badges ul.nav.nav-pills.nav-stacked.menu {
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .t3-module.module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li > a,
  .module.companies-badges ul.nav.nav-pills.nav-stacked.menu > li > a {
    font-size: 13px !important;
    min-height: 36px !important;
    padding: 8px 13px !important;
  }

  .top-10-companies-menu ul {
    grid-template-columns: 1fr !important;
  }

  .top-10-companies-menu ul li {
    border-left: 0 !important;
    padding-left: 0 !important;
  }
}
/* ================================
   FIX FORM CARD ALIGNMENT
   ================================ */

.esq-forms {
  align-items: stretch !important;
}

.esq-form-box {
  display: flex !important;
  flex-direction: column !important;
  min-height: 430px !important;
}

/* top title area same height in both cards */
.esq-form-top {
  position: relative !important;
  display: block !important;
  min-height: 66px !important;
  margin: 0 0 10px !important;
  padding-right: 145px !important;
}

.esq-form-title {
  margin: 0 !important;
  font-size: 23px !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
}

.esq-form-badge {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
}

/* description same height */
.esq-form-desc {
  min-height: 56px !important;
  margin: 0 0 16px !important;
}

/* form area same position */
.esq-form-box form.quote-form {
  margin: 0 !important;
}

.esq-form-row {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) 212px !important;
  gap: 14px !important;
  align-items: end !important;
}

/* input and button same height */
.esq-form-field input[type="text"],
.esq-form-field input[type="tel"],
.esq-form-field input[type="number"],
.esq-form-box .btn-quote,
.esq-form-box .btn-quote.btn-quote--green,
.esq-form-box button[type="submit"] {
  height: 52px !important;
  min-height: 52px !important;
  box-sizing: border-box !important;
}

/* bottom note same vertical position */
.esq-form-note {
  margin-top: 18px !important;
  min-height: 58px !important;
}

/* mobile */
@media (max-width: 900px) {
  .esq-form-box {
    min-height: 0 !important;
  }

  .esq-form-top {
    min-height: 0 !important;
  }

  .esq-form-desc {
    min-height: 0 !important;
  }

  .esq-form-note {
    min-height: 0 !important;
  }
}

@media (max-width: 640px) {
  .esq-form-top {
    padding-right: 0 !important;
  }

  .esq-form-badge {
    position: static !important;
    margin-top: 8px !important;
  }

  .esq-form-row {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   GEICO PAGE FINAL POLISH
   Add this at the very end of CSS
   ========================================================= */

/* ---------- HERO BADGES FIX ---------- */

.esq-hero .esq-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  align-items: center !important;
}

.esq-hero .esq-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  padding: 7px 13px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .16) !important;
  border: 1px solid rgba(255, 255, 255, .30) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/* If hero background is missing on this template, keep badges readable */
.esq-page > .esq-hero:not([style]) .esq-badge {
  background: #eef7fd !important;
  border-color: #cfe4f3 !important;
  color: #123b5d !important;
}

/* ---------- SECTION STYLE SO PAGE IS NOT DRY ---------- */

.esq-section {
  background: #ffffff !important;
  border: 1px solid #dbe8f1 !important;
  border-radius: 18px !important;
  padding: 26px 28px !important;
padding-top: 8px !important;
  margin: 0 0 26px !important;
  box-shadow: 0 8px 22px rgba(18, 59, 93, .045) !important;
  box-sizing: border-box !important;
}

.esq-section h2,
.esq-section h3 {
  color: #123b5d !important;
}

.esq-section > h2:first-child,
.esq-section > h3:first-child {
  margin-top: 0 !important;
}

/* ---------- NOTES / TIPS / DISCLOSURE / BOTTOM LINE ---------- */

.esq-note,
.esq-link-box,
.esq-bottom {
  position: relative !important;
  display: block !important;
  border-radius: 14px !important;
  padding: 15px 18px 15px 18px !important;
  margin: 18px 0 !important;
  line-height: 1.55 !important;
  font-size: 16px !important;
  box-sizing: border-box !important;
}

.esq-note {
  background: #f3f9ff !important;
  border: 1px solid #d4e7f6 !important;
  border-left: 5px solid #176ca8 !important;
  color: #243447 !important;
}

.esq-note strong {
  color: #123b5d !important;
  font-weight: 800 !important;
}

.esq-link-box {
  background: #fff7e6 !important;
  border: 1px solid #f3d49a !important;
  border-left: 5px solid #f0b429 !important;
  color: #243447 !important;
}

.esq-link-box strong {
  color: #7a4b00 !important;
  font-weight: 800 !important;
}

.esq-bottom {
  background: linear-gradient(180deg, #eef7fd 0%, #e6f2fb 100%) !important;
  border: 1px solid #c7dfef !important;
  border-left: 5px solid #123b5d !important;
  color: #243447 !important;
  box-shadow: 0 8px 22px rgba(18, 59, 93, .055) !important;
}

.esq-bottom strong {
  color: #123b5d !important;
  font-weight: 800 !important;
}

/* Make inline disclosure after forms look like a disclosure box too */
.esq-forms + .esq-note,
.esq-forms + div[style*="Disclosure"],
.esq-forms + div[style*="background:#fff7e6"] {
  background: #fff7e6 !important;
  border: 1px solid #f3d49a !important;
  border-left: 5px solid #f0b429 !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  margin: 18px 0 0 !important;
  line-height: 1.55 !important;
  color: #243447 !important;
}

/* ---------- FORMS: LESS HEIGHT, BETTER ALIGNMENT ---------- */

.esq-forms {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin: 20px 0 18px !important;
  align-items: stretch !important;
}

.esq-form-box {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: auto !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 1px solid #d7e6f0 !important;
  border-radius: 18px !important;
  padding: 22px 20px 20px !important;
  box-shadow: 0 10px 24px rgba(18, 59, 93, .055) !important;
  overflow: hidden !important;
}

.esq-form-box::before {
  height: 4px !important;
  background: linear-gradient(90deg, #123b5d 0%, #176ca8 100%) !important;
}

.esq-form-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

.esq-form-title {
  margin: 0 !important;
  color: #123b5d !important;
  font-size: 24px !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

.esq-form-badge {
  position: static !important;
  flex: 0 0 auto !important;
  min-height: 30px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: #eef7fd !important;
  border: 1px solid #cfe4f3 !important;
  color: #123b5d !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.esq-form-desc {
  min-height: 52px !important;
  margin: 0 0 14px !important;
  color: #243447 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.esq-form-box form.quote-form {
  margin: 0 !important;
  padding: 0 !important;
}

.esq-form-label,
.esq-form-field label {
  display: block !important;
  margin: 0 0 8px !important;
  color: #123b5d !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.esq-form-row {
  display: grid !important;
  grid-template-columns: minmax(165px, 1fr) 210px !important;
  gap: 12px !important;
  align-items: end !important;
  margin: 0 !important;
}

.esq-form-field {
  width: 100% !important;
  min-width: 0 !important;
}

.esq-form-field input[type="text"],
.esq-form-field input[type="tel"],
.esq-form-field input[type="number"] {
  display: block !important;
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  background: #ffffff !important;
  border: 1px solid #b9ccda !important;
  border-radius: 12px !important;
  color: #111827 !important;
  font-size: 17px !important;
  line-height: 50px !important;
  font-weight: 500 !important;
  outline: none !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, .04) !important;
}

.esq-form-field input[type="text"]:focus,
.esq-form-field input[type="tel"]:focus,
.esq-form-field input[type="number"]:focus {
  border-color: #176ca8 !important;
  box-shadow: 0 0 0 4px rgba(23, 108, 168, .13) !important;
}

.esq-form-box .btn-quote,
.esq-form-box .btn-quote.btn-quote--green,
.esq-form-box button[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  background: #123b5d !important;
  border: 1px solid #123b5d !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(18, 59, 93, .18) !important;
}

.esq-form-box .btn-quote:hover,
.esq-form-box .btn-quote:focus,
.esq-form-box .btn-quote.btn-quote--green:hover,
.esq-form-box .btn-quote.btn-quote--green:focus,
.esq-form-box button[type="submit"]:hover,
.esq-form-box button[type="submit"]:focus {
  background: #176ca8 !important;
  border-color: #176ca8 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(23, 108, 168, .22) !important;
}

.esq-form-note {
  margin: 14px 0 0 !important;
  min-height: 0 !important;
  color: #405466 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.esq-form-note strong {
  color: #123b5d !important;
  font-weight: 800 !important;
}

/* ---------- IMAGE FLOAT FIX ---------- */

.esq-image {
  float: right !important;
  width: 320px !important;
  max-width: 42% !important;
  height: auto !important;
  margin: 2px 0 18px 24px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 22px rgba(18, 59, 93, .10) !important;
}

.esq-clear {
  clear: both !important;
}

/* ---------- TABLE FIX ---------- */

.esq-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  margin: 16px 0 18px !important;
  border: 1px solid #dbe8f1 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(18, 59, 93, .045) !important;
}

.esq-table {
  width: 100% !important;
  min-width: 720px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
}

.esq-table th {
  background: #f0f7fc !important;
  color: #123b5d !important;
  text-align: left !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  border-bottom: 1px solid #d4e4ef !important;
}

.esq-table td {
  padding: 14px 16px !important;
  color: #243447 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  vertical-align: top !important;
  border-bottom: 1px solid #e4edf4 !important;
}

.esq-table tbody tr:nth-child(even) td {
  background: #fbfdff !important;
}

.esq-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.esq-table td:first-child,
.esq-table th:first-child {
  font-weight: 700 !important;
  color: #123b5d !important;
}

/* ---------- MINI CARDS FIX ---------- */

.esq-mini-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 18px 0 4px !important;
}

.esq-mini-card,
.esq-faq-item {
  background: #fbfdff !important;
  border: 1px solid #dbe8f1 !important;
  border-radius: 14px !important;
  padding: 17px 18px !important;
  box-shadow: 0 5px 14px rgba(18, 59, 93, .035) !important;
}

.esq-mini-card h4 {
  margin: 0 0 8px !important;
  color: #123b5d !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  text-transform: none !important;
}

.esq-mini-card p,
.esq-faq-item p {
  margin: 0 !important;
}

/* ---------- FAQ VISUAL FIX ---------- */

.esq-faq-item {
  margin: 0 0 12px !important;
}

.esq-faq-item strong {
  display: block !important;
  margin: 0 0 8px !important;
  color: #123b5d !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}

/* ---------- MOBILE ---------- */

@media (max-width: 900px) {
  .esq-forms,
  .esq-mini-grid {
    grid-template-columns: 1fr !important;
  }

  .esq-form-desc {
    min-height: 0 !important;
  }
}

@media (max-width: 767px) {
  .esq-section {
    padding: 20px 16px !important;
padding-top: 8px !important;
    border-radius: 16px !important;
  }

  .esq-image {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 6px 0 16px !important;
  }

  .esq-table {
    min-width: 680px !important;
  }
}

@media (max-width: 640px) {
  .esq-hero .esq-badges {
    gap: 8px !important;
  }

  .esq-hero .esq-badge {
    font-size: 12px !important;
    min-height: 30px !important;
    padding: 7px 11px !important;
  }

  .esq-form-box {
    padding: 20px 16px 18px !important;
    border-radius: 16px !important;
  }

  .esq-form-top {
    display: block !important;
    margin-bottom: 12px !important;
  }

  .esq-form-badge {
    margin-top: 9px !important;
  }

  .esq-form-title {
    font-size: 22px !important;
  }

  .esq-form-desc {
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }

  .esq-form-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .esq-form-field input[type="text"],
  .esq-form-field input[type="tel"],
  .esq-form-field input[type="number"],
  .esq-form-box .btn-quote,
  .esq-form-box .btn-quote.btn-quote--green,
  .esq-form-box button[type="submit"] {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
  }

  .esq-form-note {
    font-size: 14px !important;
  }
}
/* =========================================================
   REDUCE TOP SPACE AFTER MAIN MENU
   ========================================================= */

#t3-mainbody.t3-mainbody,
.t3-mainbody,
#t3-mainbody.container {
  padding-top: 26px !important;
  margin-top: 0 !important;
}

#t3-content,
.t3-content,
.item-page,
.article-content,
.com-content-article__body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.esq-page {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.esq-page > .esq-hero {
  margin-top: 0 !important;
 margin-bottom: 20px !important;
  padding-top: 0 !important;
}

.esq-page > .esq-hero h1 {
  margin-top: 0 !important;
}

/* Если хочется еще плотнее — можно поставить 18px вместо 26px */
@media (max-width: 767px) {
  #t3-mainbody.t3-mainbody,
  .t3-mainbody,
  #t3-mainbody.container {
    padding-top: 18px !important;
  }
}

/* Modern desktop main navigation */
#t3-mainnav .navbar-nav > li > a {
  color: #eaf4fb !important;
  text-decoration: none !important;
  background: transparent !important;
}

#t3-mainnav .navbar-nav > li > a:hover,
#t3-mainnav .navbar-nav > li > a:focus {
  color: #ffffff !important;
  background: #0b4e78 !important;
  text-decoration: none !important;
}

#t3-mainnav .navbar-nav > li.active > a,
#t3-mainnav .navbar-nav > li.current > a,
#t3-mainnav .navbar-nav > li.active > a:hover,
#t3-mainnav .navbar-nav > li.current > a:hover {
  color: #ffffff !important;
  background: #176ca8 !important;
  text-decoration: none !important;
}
html body #t3-content .liberty-close p,html body .item-page .liberty-close p,html body .article-content .liberty-close p{color:#fff!important}

/* === hom-form-style-overrides === */

/* hom-form-style overrides — match the homepage ZIP form.
   Homepage controls (.home-main-zip, .home-main-btn, .home-main-page) are not selected.
   Reference computed on the homepage at 1366:
   input 48px, 17px, padding 10px 12px, #959595, rgba(255,255,255,.7), 1px #e7e7e7, radius 0
   button 48px, min-width 178px, padding 12px 20px, 17px/700, #fff on #1e7d3a, radius 6px, no shadow
   row: grid minmax(0,1fr) auto, gap 10px
   card: padding 15px 16px, radius 7px, white, shadow 0 2px 6px rgba(0,0,0,.10)
   title 18px/700/#0c5588 margin 0 0 5px; desc 14px/#536577; note 12px/#5e6e7b margin-top 8px
   stacked full-width button at max-width 700px
*/

html body #t3-content input[name="zipcode"]:not(.home-main-zip),
html body form:not(:has(.home-main-btn)) input[name="zipcode"]:not(.home-main-zip) {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  color: #959595 !important;
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #e7e7e7 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  float: none !important;
}

html body #t3-content input[name="zipcode"]:not(.home-main-zip):hover,
html body #t3-content input[name="zipcode"]:not(.home-main-zip):focus,
html body form:not(:has(.home-main-btn)) input[name="zipcode"]:not(.home-main-zip):hover,
html body form:not(:has(.home-main-btn)) input[name="zipcode"]:not(.home-main-zip):focus {
  border: 1px solid #4b9a3d !important;
  box-shadow: none !important;
  color: #959595 !important;
}

html body #t3-content form:not(:has(.home-main-btn)):has(input[name="zipcode"]) :is(button, input[type="submit"]),
html body form:not(:has(.home-main-btn)):has(input[name="zipcode"]) :is(button.btn-quote, input.button, input#nstartquote12) {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 178px !important;
  max-width: none !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-indent: 0 !important;
  text-shadow: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  color: #ffffff !important;
  background: #1e7d3a !important;
  background-image: none !important;
  border: 1px solid #1e7d3a !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  float: none !important;
  transform: none !important;
}

html body #t3-content form:not(:has(.home-main-btn)):has(input[name="zipcode"]) :is(button, input[type="submit"]):hover,
html body #t3-content form:not(:has(.home-main-btn)):has(input[name="zipcode"]) :is(button, input[type="submit"]):focus,
html body form:not(:has(.home-main-btn)):has(input[name="zipcode"]) :is(button.btn-quote, input.button, input#nstartquote12):hover,
html body form:not(:has(.home-main-btn)):has(input[name="zipcode"]) :is(button.btn-quote, input.button, input#nstartquote12):focus {
  color: #ffffff !important;
  background: #17642e !important;
  background-image: none !important;
  border-color: #17642e !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Standalone quote forms become the same white card and input|button row. */
html body #t3-content form.quote-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  column-gap: 10px !important;
  row-gap: 5px !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 8px !important;
  padding: 15px 16px !important;
  background: #ffffff !important;
  border: 1px solid #d8e1e8 !important;
  border-radius: 7px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10) !important;
  float: none !important;
}

html body #t3-content .esq-form-box form.quote-form,
html body #t3-content [class$="-form-panel"] form.quote-form {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body #t3-content form.quote-form .zip-label {
  grid-column: 1 / -1 !important;
  display: block !important;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #0c5588 !important;
}

html body #t3-content .quote-note,
html body #t3-content form.quote-form + p.quote-note,
html body #t3-content form.quote-form + p.small-text,
html body #t3-content form:has(input#nstartquote12) + p {
  margin: 8px 0 0 !important;
  color: #5e6e7b !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.38 !important;
  text-align: left !important;
}

/* Cloned homepage cards: same type scale as .home-main-form-* (hom-ux had 19px / 12.5px). */
html body #t3-content [class$="-form-panel"]:not([class^="home-main-"]),
html body .article-content [class$="-form-panel"]:not([class^="home-main-"]) {
  background: #ffffff !important;
  border-radius: 7px !important;
  padding: 15px 16px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10) !important;
}

html body #t3-content [class$="-form-panel"]:not([class^="home-main-"]) [class$="-form-title"],
html body .article-content [class$="-form-panel"]:not([class^="home-main-"]) [class$="-form-title"],
html body #t3-content .esq-form-title {
  margin: 0 0 5px !important;
  color: #0c5588 !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

html body #t3-content [class$="-form-panel"]:not([class^="home-main-"]) [class$="-form-desc"],
html body .article-content [class$="-form-panel"]:not([class^="home-main-"]) [class$="-form-desc"],
html body #t3-content .esq-form-desc {
  min-height: 0 !important;
  margin: 0 0 10px !important;
  color: #536577 !important;
  font-size: 14px !important;
  line-height: 1.42 !important;
  font-weight: 400 !important;
}

html body #t3-content [class$="-form-panel"]:not([class^="home-main-"]) [class$="-form-note"],
html body .article-content [class$="-form-panel"]:not([class^="home-main-"]) [class$="-form-note"],
html body #t3-content .esq-form-note {
  margin-top: 8px !important;
  min-height: 0 !important;
  color: #5e6e7b !important;
  font-size: 12px !important;
  line-height: 1.38 !important;
  font-weight: 400 !important;
}

html body #t3-content [class$="-form-row"]:not([class^="home-main-"]),
html body #t3-content .esq-form-row,
html body #t3-content form:not(:has(.home-main-btn)):not(:has(input#nstartquote12)):has(input[name="zipcode"]) > div:has(input[name="zipcode"]) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

html body #t3-content form:not(:has(.home-main-btn)):has(input[name="zipcode"][placeholder]) label:not(.zip-label) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ESQ cards use the homepage card, without the extra badge and top rule. */
html body #t3-content .esq-forms {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 14px 0 12px !important;
  align-items: stretch !important;
}

html body #t3-content .esq-form-box {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: auto !important;
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #d8e1e8 !important;
  border-radius: 7px !important;
  padding: 15px 16px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10) !important;
  overflow: visible !important;
}

html body #t3-content .esq-form-box::before {
  display: none !important;
  content: none !important;
  height: 0 !important;
}

html body #t3-content .esq-form-top {
  display: block !important;
  position: static !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #t3-content .esq-form-badge {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
}

html body #t3-content .esq-form-field {
  min-width: 0 !important;
  width: 100% !important;
}

/* ZIP forms that are not already inside a white panel get the homepage card. */
html body #t3-content form:not(.quote-form):not(:has(.home-main-btn)):has(input[name="zipcode"]) {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 15px 16px !important;
  background: #ffffff !important;
  border: 1px solid #d8e1e8 !important;
  border-radius: 7px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10) !important;
}
html body #t3-content [class$="-form-panel"]:not([class^="home-main-"]) form:not(.quote-form):not(:has(.home-main-btn)):has(input[name="zipcode"]),
html body #t3-content .esq-form-box form.quote-form:has(input[name="zipcode"]) {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Legacy image-button forms (spacer value, float layout). */
html body form:has(input#nstartquote12) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  column-gap: 10px !important;
  row-gap: 5px !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  padding: 15px 16px !important;
  background: #ffffff !important;
  border: 1px solid #d8e1e8 !important;
  border-radius: 7px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10) !important;
  float: none !important;
  overflow: visible !important;
}

html body form:has(input#nstartquote12) > div {
  display: contents !important;
  float: none !important;
}

html body form:has(input#nstartquote12) > div > div {
  grid-column: 1 / -1 !important;
  float: none !important;
  display: block !important;
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #0c5588 !important;
}

html body input#nstartquote12.button {
  grid-column: auto !important;
}

@media (max-width: 700px) {
  html body #t3-content form.quote-form,
  html body #t3-content [class$="-form-row"]:not([class^="home-main-"]),
  html body #t3-content .esq-form-row,
  html body #t3-content form:not(:has(.home-main-btn)):not(:has(input#nstartquote12)):has(input[name="zipcode"]) > div:has(input[name="zipcode"]),
  html body form:has(input#nstartquote12) {
    grid-template-columns: 1fr !important;
  }

  html body #t3-content form:not(:has(.home-main-btn)):has(input[name="zipcode"]) :is(button, input[type="submit"]),
  html body form:not(:has(.home-main-btn)):has(input[name="zipcode"]) :is(button.btn-quote, input.button, input#nstartquote12),
  html body input#nstartquote12.button {
    width: 100% !important;
    min-width: 0 !important;
    grid-column: 1 / -1 !important;
  }

  html body #t3-content .esq-forms {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 850px) {
  html body #t3-content .esq-forms {
    grid-template-columns: 1fr !important;
  }
}
