/* Consistent inquiry form actions across page templates */
#bottom .bottom-form .form-button {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  overflow: visible !important;
}
#bottom .bottom-form .form-button > input[type="submit"],
#bottom .bottom-form .form-button > input[type="reset"] {
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 11px 16px !important;
  box-sizing: border-box !important;
  border: 1px solid #1269d8 !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease !important;
}
#bottom .bottom-form .form-button > input[type="submit"] { background: #0866dc !important; color: #fff !important; }
#bottom .bottom-form .form-button > input[type="reset"] { background: #26364b !important; border-color: #52647a !important; color: #fff !important; }
#bottom .bottom-form .form-button > input[type="submit"]:hover { background: #0054bd !important; border-color: #0054bd !important; }
#bottom .bottom-form .form-button > input[type="reset"]:hover { background: #344a63 !important; border-color: #71839a !important; }
#bottom .bottom-form .form-button > input:active { transform: translateY(1px) !important; }

/* Legacy footer templates have one wide send button instead of Submit/Reset. */
#bottom .bottom-right .form-submit-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  margin-top: 12px !important;
}
#bottom .bottom-right .form-submit-wrap > .btn-send-message {
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 11px 18px !important;
  box-sizing: border-box !important;
  border: 1px solid #1269d8 !important;
  border-radius: 8px !important;
  background: #0866dc !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
  transition: background-color .18s ease, transform .18s ease !important;
}
#bottom .bottom-right .form-submit-wrap > .btn-send-message:hover { background: #0054bd !important; }
#bottom .bottom-right .form-submit-wrap > .btn-send-message:active { transform: translateY(1px) !important; }
@media (max-width: 420px) {
  #bottom .bottom-form .form-button { gap: 9px !important; }
  #bottom .bottom-form .form-button > input[type="submit"],
  #bottom .bottom-form .form-button > input[type="reset"] { padding-inline: 10px !important; font-size: 14px !important; }
}
/* Legacy inquiry template: keep the fields aligned with the footer design. */
#bottom .bottom-right .row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 0 12px !important;
}
#bottom .bottom-right .row.clearfix {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
#bottom .bottom-right .row.clearfix::after { display: none !important; }
#bottom .bottom-right .row > input,
#bottom .bottom-right .row > textarea {
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  border: 1px solid #3b4758 !important;
  border-radius: 8px !important;
  background: #1f2937 !important;
  color: #f8fafc !important;
  font: inherit !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}
#bottom .bottom-right .row > input { min-height: 46px !important; }
#bottom .bottom-right .row > textarea {
  min-height: 140px !important;
  height: 140px !important;
  resize: vertical !important;
}
#bottom .bottom-right .row > input::placeholder,
#bottom .bottom-right .row > textarea::placeholder { color: #aeb9c8 !important; opacity: 1 !important; }
#bottom .bottom-right .row > input:focus,
#bottom .bottom-right .row > textarea:focus { border-color: #3b82f6 !important; outline: 2px solid rgba(59,130,246,.18) !important; }
@media (max-width: 520px) {
  #bottom .bottom-right .row.clearfix { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Contact page footer navigation */
#bottom .footer-nav.fr { float: right !important; display: block !important; width: 46% !important; margin: 0 0 2rem !important; padding: 0 !important; box-sizing: border-box !important; }
#bottom .footer-nav-label { margin: 0 0 17px !important; color: #f5f8fc !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: 1.4px !important; line-height: 1.4 !important; text-transform: uppercase !important; }
#bottom .footer-nav-links { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px 18px !important; }
#bottom .footer-nav-links a { display: flex !important; align-items: center !important; min-height: 42px !important; padding: 7px 0 !important; border-bottom: 1px solid rgba(197,211,228,.2) !important; color: #d7e2ef !important; font: 500 13px/1.45 'Open Sans', Arial, sans-serif !important; text-decoration: none !important; transition: color .18s ease, border-color .18s ease !important; }
#bottom .footer-nav-links a:hover, #bottom .footer-nav-links a:focus-visible { color: #82baff !important; border-bottom-color: #3988e8 !important; }
#bottom:has(.footer-nav) > .container.clearfix { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)) !important; align-items: start !important; column-gap: clamp(28px,5vw,72px) !important; }
#bottom:has(.footer-nav) > .container.clearfix::after { display: none !important; }
#bottom:has(.footer-nav) > .container.clearfix > .bottom-left, #bottom:has(.footer-nav) > .container.clearfix > .footer-nav.fr { float: none !important; width: auto !important; min-width: 0 !important; }
#bottom nav.footer-nav { position: relative !important; left: auto !important; top: auto !important; transform: none !important; height: auto !important; min-height: 0 !important; line-height: normal !important; padding: 0 !important; background: transparent !important; z-index: 1 !important; }
@media (max-width: 1036px) { #bottom .footer-nav.fr { float: none !important; width: 100% !important; margin-bottom: 2rem !important; } }
@media (max-width: 760px) { #bottom:has(.footer-nav) > .container.clearfix { grid-template-columns: minmax(0,1fr) !important; row-gap: 8px !important; } }
@media (max-width: 560px) { #bottom .footer-nav-links { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 6px 16px !important; } }
