/* Latitude HubSpot Form Swap v1.3.0 */
.lhf-slot { width: 100%; min-height: 160px; }
.lhf-form, .lhf-form .hs-form-frame { width: 100%; }

html.lhf-lock { overflow: hidden; }

/* ---------- Shared header styles (matches the "Get in Touch Today" hero card) ---------- */
.lhf-eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffc72c;
}
.lhf-title,
.lhf-card-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
}
.lhf-sub,
.lhf-card-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #d3e6f4;
}

/* ---------- Inline card: [hubspot_form card="yes"] ---------- */
.lhf-card {
  background: #ffffff;
  border: 1px solid #e5edf3;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
  overflow: hidden;
}
.lhf-card-head { background: #1e88c9; padding: 22px 28px 18px; }
.lhf-card-body { padding: 8px 4px; }

/* ---------- Popup ---------- */
.lhf-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.lhf-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .2s ease;
}
.lhf-backdrop {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(15, 23, 42, .6);
}
.lhf-dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

/* Default (white form): blue header bar + white body, like the hero form card */
.lhf-head { background: #1e88c9; padding: 24px 64px 20px 28px; }
.lhf-body { position: relative; padding: 12px 8px 8px; }

.lhf-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lhf-close:hover { background: rgba(255, 255, 255, .3); }
.lhf-close:focus-visible { outline: 2px solid #ffc72c; outline-offset: 2px; }

/* Blue form (blue copy set in settings): whole popup blue, centred uppercase heading */
.lhf-dialog.lhf-blue { background: #1e88c9; }
.lhf-dialog.lhf-blue .lhf-head { background: transparent; padding: 30px 56px 4px; text-align: center; }
.lhf-dialog.lhf-blue .lhf-eyebrow,
.lhf-dialog.lhf-blue .lhf-sub { display: none; }
.lhf-dialog.lhf-blue .lhf-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Inactive panels stay laid out (off-screen) so their forms are ready instantly. */
.lhf-panel:not(.is-active) {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 560px;
  height: 0;
  overflow: hidden;
}

@media (max-width: 640px) {
  .lhf-modal { padding: 10px; }
  .lhf-dialog { border-radius: 14px; max-height: calc(100vh - 20px); }
  .lhf-head { padding: 20px 56px 16px 20px; }
  .lhf-title, .lhf-card-title { font-size: 19px; }
  .lhf-dialog.lhf-blue .lhf-head { padding: 24px 48px 4px; }
  .lhf-dialog.lhf-blue .lhf-title { font-size: 22px; }
  .lhf-card-head { padding: 18px 20px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .lhf-modal, .lhf-modal.is-open { transition: none; }
}

/* Services hero card: the 820px height was reserved for the old Zoho form — let it fit the HubSpot form. */
html.lhf-swap .lats-form-card { min-height: 0 !important; }
html.lhf-swap .lats-iframe-wrap .lhf-slot { min-height: 0; padding: 4px 4px 8px; }

/* Calendly replaced: hide any Calendly badge / overlay its script might still draw. */
html.lhf-no-calendly .calendly-badge-widget,
html.lhf-no-calendly .calendly-overlay,
html.lhf-no-calendly .calendly-popup { display: none !important; }

/* Floating "book a call" button */
#floating-cta.lhf-cta {
  position: fixed; bottom: 30px; right: 20px; z-index: 9990;
  display: flex; align-items: center; cursor: pointer;
  background: #ffc72c; color: #fff; padding: 15px 30px; border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .15);
  font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.2;
  transition: transform .2s ease; animation: lhfCtaIn .5s ease-out;
}
#floating-cta.lhf-cta[hidden] { display: none; }
#floating-cta.lhf-cta:hover { background: #e6b122; transform: translateY(-2px); }
#floating-cta.lhf-cta span { flex: 1; text-align: center; padding-right: 10px; }
#floating-cta.lhf-cta button {
  background: transparent; border: 0; border-left: 1px solid rgba(255, 255, 255, .3);
  font-size: 24px; line-height: 1; cursor: pointer; color: #fff; padding: 0 0 0 10px;
}
@keyframes lhfCtaIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 768px) {
  #floating-cta.lhf-cta { padding: 12px 20px; font-size: 15px; right: 10px; bottom: 20px; max-width: 85%; }
}
@media (prefers-reduced-motion: reduce) { #floating-cta.lhf-cta { animation: none; transition: none; } }

/* ---------- Backup form (shown only if HubSpot fails to load) ---------- */
.lhf-fb { margin: 0; padding: 20px 20px 16px; font-family: 'Open Sans', Arial, Helvetica, sans-serif; text-align: left; }
.lhf-fb * { box-sizing: border-box; }
.lhf-fb-row { display: flex; gap: 14px; }
.lhf-fb-row > .lhf-fb-f { flex: 1 1 0; min-width: 0; }
.lhf-fb-f { display: block; margin: 0 0 14px; padding: 0; border: 0; }
.lhf-fb-l { display: block; margin: 0 0 6px; padding: 0; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.lhf-fb-l b { color: #e02424; font-weight: 700; }
.lhf-fb input[type="text"], .lhf-fb input:not([type]), .lhf-fb input[type="tel"], .lhf-fb input[type="email"], .lhf-fb textarea {
  display: block; width: 100%; margin: 0; padding: 10px 16px; font: inherit; font-size: 15px; color: #334155;
  background: #fff; border: 1px solid #dfe7ee; border-radius: 999px; height: 42px; box-shadow: none; outline: none;
}
.lhf-fb textarea { height: auto; min-height: 84px; border-radius: 16px; resize: vertical; }
.lhf-fb input:focus, .lhf-fb textarea:focus { border-color: #1e88c9; box-shadow: 0 0 0 3px rgba(30, 136, 201, .15); }
.lhf-fb-phone { display: flex; align-items: center; background: #fff; border: 1px solid #dfe7ee; border-radius: 999px; height: 42px; overflow: hidden; }
.lhf-fb-phone:focus-within { border-color: #1e88c9; box-shadow: 0 0 0 3px rgba(30, 136, 201, .15); }
.lhf-fb-cc { flex: none; padding: 0 8px 0 14px; font-size: 14px; color: #1e88c9; white-space: nowrap; }
.lhf-fb .lhf-fb-phone input { border: 0 !important; height: 40px; padding-left: 4px; border-radius: 0; box-shadow: none !important; }
.lhf-fb-set { margin-bottom: 10px; }
.lhf-fb-radio { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; text-transform: uppercase; cursor: pointer; }
.lhf-fb-radio input { width: 18px; height: 18px; margin: 0; accent-color: #1e88c9; }
.lhf-fb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lhf-fb-consent { margin: 4px 0 14px; font-size: 11px; line-height: 1.45; }
.lhf-fb-btn {
  display: block; margin: 0 auto; min-width: 140px; height: 44px; padding: 0 28px; border: 0; border-radius: 999px;
  background: #1e88c9; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.lhf-fb-btn:hover { background: #1679b2; }
.lhf-fb-btn[disabled] { opacity: .7; cursor: default; }
.lhf-fb-msg { margin: 10px 0 0; font-size: 13px; text-align: center; }
.lhf-fb-msg:empty { display: none; }
.lhf-fb-msg a { text-decoration: underline; }
.lhf-fb-thanks { margin: 0; padding: 30px 10px; font-size: 16px; line-height: 1.5; text-align: center; }

/* White (on-page) */
.lhf-fb--white .lhf-fb-l, .lhf-fb--white .lhf-fb-radio { color: #5f6b76; }
.lhf-fb--white .lhf-fb-consent, .lhf-fb--white .lhf-fb-msg { color: #64748b; }
.lhf-fb--white .lhf-fb-msg.is-error { color: #b32d2e; }
.lhf-fb--white .lhf-fb-thanks { color: #0f172a; }

/* Blue (popup) */
.lhf-fb--blue { background: #1e88c9; }
.lhf-fb--blue .lhf-fb-l, .lhf-fb--blue .lhf-fb-radio, .lhf-fb--blue .lhf-fb-consent, .lhf-fb--blue .lhf-fb-msg, .lhf-fb--blue .lhf-fb-thanks, .lhf-fb--blue .lhf-fb-msg a { color: #fff; }
.lhf-fb--blue .lhf-fb-l b { color: #ffc72c; }
.lhf-fb--blue .lhf-fb-l { text-transform: none; font-size: 15px; font-weight: 600; }
.lhf-fb--blue .lhf-fb-radio { text-transform: none; }
.lhf-fb--blue input:not([type="radio"]), .lhf-fb--blue textarea, .lhf-fb--blue .lhf-fb-phone { border-radius: 4px; border-color: #fff; }
.lhf-fb--blue .lhf-fb-radio input { accent-color: #fff; }
.lhf-fb--blue .lhf-fb-btn { width: 100%; background: #ffc72c; color: #111; }
.lhf-fb--blue .lhf-fb-btn:hover { background: #e6b122; }
.lhf-fb--blue .lhf-fb-msg.is-error { background: rgba(0, 0, 0, .15); padding: 8px; border-radius: 6px; }

@media (max-width: 520px) {
  .lhf-fb-row { flex-direction: column; gap: 0; }
}
