/* ═══════════════════════════════════════
   CONTACT US — design taken from the Node site (contact-us.css + main.css tokens).
   Scoped to main.contact-page and the page's own #support-modal, so the global
   .support-modal rules in css/index.css stay as they are everywhere else.
   ═══════════════════════════════════════ */

.contact-page,
#support-modal {
  --white: #fff; --ink: #2a2a2a; --muted: #606060; --border: #e8e8e8;
  --green: #008944; --green-hover: #006432;
  --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow-sm: 0 4px 16px rgba(42, 42, 42, .06);
  --shadow-lg: 0 24px 64px rgba(42, 42, 42, .14);
  --text-h4: 20px; --text-body-lg: 18px; --text-body: 16px; --text-body-lh: 20px; --text-sm: 14px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.contact-page { background: var(--white); min-height: 0; }
.contact-page h1, .contact-page h2 { text-transform: capitalize; }
.contact-page a { color: inherit; text-decoration: none; }

.contact-page .contact-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ── */
.contact-page .contact-hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.contact-page .contact-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 60, 30, .88), rgba(0, 137, 68, .72)),
    url('../../img/contact.jpg') center / cover no-repeat;
  z-index: 0;
}
.contact-page .contact-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 960px) {
  .contact-page .contact-hero-inner { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}

.contact-page .contact-hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 20px;
}
.contact-page .contact-hero-copy h1 span { display: block; }
.contact-page .contact-hero-copy p {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
  max-width: 420px;
  margin: 0;
}

/* ── Office cards ── */
.contact-page .contact-panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact-page .contact-office-card {
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: var(--shadow-sm);
}
.contact-page .contact-office-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.contact-page .contact-office-icon { color: #0890F1; flex-shrink: 0; }
.contact-page .contact-office-card h2 { font-size: var(--text-h4); line-height: 30px; font-weight: 700; margin: 0; color: var(--ink); }
.contact-page .contact-office-detail + .contact-office-detail { margin-top: 10px; }

.contact-page .contact-address { color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.contact-page .contact-address:hover { color: var(--green); }

.contact-page .contact-office-phone-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact-page .contact-phone,
.contact-page .contact-email { font-weight: 600; color: var(--green); overflow-wrap: anywhere; }
.contact-page .contact-phone:hover,
.contact-page .contact-email:hover { color: var(--green-hover); }

/* Copy pill: the existing page script toggles .copied on .copy-btn[data-copy] */
.contact-page .contact-copy-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: var(--text-sm);
  line-height: 20px;
  cursor: pointer;
  min-width: 64px;
  transition: border-color .2s, color .2s;
}
.contact-page .contact-copy-btn:hover { border-color: var(--green); color: var(--green); }
.contact-page .contact-copy-btn .copied { display: none; }
.contact-page .contact-copy-btn.copied .copy { display: none; }
.contact-page .contact-copy-btn.copied .copied { display: inline; }

.contact-page .contact-query-btn {
  margin-top: 8px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: var(--r);
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-transform: capitalize;
  cursor: pointer;
  transition: background .2s;
}
.contact-page .contact-query-btn:hover { background: var(--green-hover); }
.contact-page .contact-query-btn:active { transform: none; }

.contact-page .contact-copy-btn:focus-visible,
.contact-page .contact-query-btn:focus-visible,
.contact-page a:focus-visible { outline: 2px solid #0890F1; outline-offset: 2px; }

@media (max-width: 959px) {
  .contact-page .contact-hero-copy { text-align: center; }
  .contact-page .contact-hero-copy p { margin-left: auto; margin-right: auto; }
  .contact-page .contact-office-header { justify-content: center; }
  .contact-page .contact-office-card { text-align: center; }
  .contact-page .contact-office-phone-row { justify-content: center; }
}

/* ── Map ── */
.contact-page .contact-map { padding: 0 0 80px; }
.contact-page .contact-mapbox {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.contact-page .contact-mapbox iframe { display: block; width: 100%; }
.contact-page .contact-map-link {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 16px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.contact-page .contact-map-link:hover { color: var(--green); }

/* ── Support modal (Freshdesk form) ──
   The form is Freshdesk's cross-origin embedded widget. It lays itself out to
   fill 100% of the iframe (title on top, its own scrolling body, Submit pinned
   to the bottom), so the iframe must fill the modal exactly. Our wrapper never
   scrolls, so Freshdesk's inner body is the single scroll area. */
#support-modal.support-modal-overlay {
  background: rgba(13, 20, 16, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 24px;
  z-index: 10000;
}
#support-modal .support-modal {
  width: min(600px, 100%);
  max-width: none;
  height: min(760px, calc(100vh - 48px));
  height: min(760px, calc(100dvh - 48px));
  max-height: none;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Outfit', system-ui, sans-serif;
  transform: translateY(18px) scale(.98);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
#support-modal.is-open .support-modal { transform: translateY(0) scale(1); }

/* Header: icon badge + title/subtitle + round close (same as .asm-close) */
#support-modal .support-modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 18px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f3faf6 0%, var(--white) 100%);
}
#support-modal .support-modal-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: #daefe0;
  color: var(--green);
}
#support-modal .support-modal-heading { flex: 1 1 auto; min-width: 0; }
#support-modal .support-modal-header h3 {
  margin: 0;
  font-size: var(--text-h4);
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  text-transform: capitalize;
}
#support-modal .support-modal-heading p {
  margin: 2px 0 0;
  font-size: var(--text-sm);
  line-height: 18px;
  color: var(--muted);
}
#support-modal .support-modal-close {
  flex: 0 0 auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s, transform .15s, border-color .15s;
}
#support-modal .support-modal-close:hover { background: #f9f9f9; transform: scale(1.05); }
#support-modal .support-modal-close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Body: the iframe fills it exactly; only Freshdesk's own form area scrolls */
#support-modal .support-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 10px 28px 6px;
  overflow: hidden;
}
#support-modal .fw-query-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  padding: 0;
}

@media (max-width: 767px) {
  #support-modal.support-modal-overlay { padding: 12px; }
  #support-modal .support-modal {
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    border-radius: var(--r-lg);
  }
  #support-modal .support-modal-header { gap: 12px; padding: 14px 12px 14px 16px; }
  #support-modal .support-modal-icon { width: 38px; height: 38px; border-radius: 12px; }
  #support-modal .support-modal-header h3 { font-size: 18px; }
  #support-modal .support-modal-heading p { font-size: var(--text-xs, 12px); line-height: 16px; }
  #support-modal .support-modal-body { padding: 6px 16px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  #support-modal .support-modal { transition: none; transform: none; }
}
