/* ==========================================================================
   Pathway Productions — Footer "Get in touch" form
   HubSpot's embedded form (hbspt.forms.create) renders its own markup with
   its own class names (.hs-form, .hs-input, .hs-button, etc). These rules
   restyle that markup in place to match the site's design tokens instead
   of HubSpot's unstyled defaults — no layout of our own to maintain, just
   the visual skin.
   ========================================================================== */

.footer-contact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-contact-text {
  flex: 0 0 280px;
}
.footer-contact-text h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.footer-contact-text p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* --- Phone numbers + social icons, inside the "Get in touch" column --- */
.footer-contact-phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 18px 0 0;
}
.footer-contact-phones a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.footer-contact-phones a:hover { color: var(--blue-text); }

.footer-social {
  display: flex;
  gap: 10px;
  margin: 18px 0 0;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-social a:hover {
  color: var(--blue-text);
  border-color: var(--blue-text);
}
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-contact-form {
  flex: 1 1 420px;
  max-width: 480px;
}

/* --- HubSpot form markup overrides ---
   Also applied to .contact-form-panel: the same embed (same portal/form
   GUID, same hbspt.forms.create call) gets placed inline inside the home
   page's "Start a conversation" section rather than the footer there — a
   different home page only, so both selectors share this one skin rather
   than duplicating it. */
:is(.footer-contact-form, .contact-form-panel) .hs-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
}
/* The rule above (a class selector) otherwise beats the browser's own
   [hidden]{display:none} rule (an attribute selector) in specificity, so
   lead-form.js setting form.hidden=true on a successful submission had no
   visible effect — the form (and its "Sending…" button, stuck mid-submit)
   stayed on screen right alongside the "Thanks" message underneath it. */
:is(.footer-contact-form, .contact-form-panel) .hs-form[hidden] {
  display: none;
}
:is(.footer-contact-form, .contact-form-panel) .hs-form-field {
  flex: 1 1 100%;
  margin: 0;
}
:is(.footer-contact-form, .contact-form-panel) .hs-form-field.hs-firstname,
:is(.footer-contact-form, .contact-form-panel) .hs-form-field.hs-lastname,
:is(.footer-contact-form, .contact-form-panel) .hs-form-field--half {
  flex: 1 1 calc(50% - 7px);
}
:is(.footer-contact-form, .contact-form-panel) label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 4px;
}
:is(.footer-contact-form, .contact-form-panel) input[type="text"],
:is(.footer-contact-form, .contact-form-panel) input[type="email"],
:is(.footer-contact-form, .contact-form-panel) input[type="tel"],
:is(.footer-contact-form, .contact-form-panel) textarea,
:is(.footer-contact-form, .contact-form-panel) select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
:is(.footer-contact-form, .contact-form-panel) textarea { resize: vertical; min-height: 56px; }
:is(.footer-contact-form, .contact-form-panel) .hs-error-msgs {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 12px;
  color: #b3261e;
}
:is(.footer-contact-form, .contact-form-panel) .hs-form-booleancheckbox-display {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
:is(.footer-contact-form, .contact-form-panel) .hs-form-booleancheckbox-display input[type="checkbox"] {
  flex: none;
  margin: 2px 0 0;
}
:is(.footer-contact-form, .contact-form-panel) .field-optional {
  font-weight: 400;
  text-transform: none;
  color: var(--muted);
}
:is(.footer-contact-form, .contact-form-panel) .actions {
  flex: 1 1 100%;
  margin: 2px 0 0;
}
:is(.footer-contact-form, .contact-form-panel) .hs-button {
  border: none;
  border-radius: 8px;
  background: var(--blue-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.15s ease;
}
:is(.footer-contact-form, .contact-form-panel) .hs-button:hover { background: var(--blue-btn-hover); }
:is(.footer-contact-form, .contact-form-panel) .hs-button:disabled {
  opacity: .6;
  cursor: not-allowed;
}
:is(.footer-contact-form, .contact-form-panel) .submitted-message {
  font-size: 14px;
  color: var(--ink);
}
/* Inline status line for a custom-coded form's own submit feedback (see
   lead-form.js) — distinct from .submitted-message, which replaces the form
   entirely on success. This one sits below the button for an error that
   still leaves the form visible and filled in, so nothing typed is lost. */
:is(.footer-contact-form, .contact-form-panel) .lead-form-status {
  flex: 1 1 100%;
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink);
}
:is(.footer-contact-form, .contact-form-panel) .lead-form-status.is-error {
  color: #b3261e;
}

@media (max-width: 760px) {
  .footer-contact { flex-direction: column; gap: 24px; }
  .footer-contact-text { flex: none; }
  .footer-contact-form { flex: none; max-width: none; width: 100%; }
}

/* ---- Floating white form card: originally homepage-only (home.css), moved
   here once the Contact page's own on-page form needed the identical
   treatment. Generic enough for either a dark section (homepage's "Start a
   conversation") or a light one (the Contact page's bg-paper section) —
   the shadow gives it definition against either background. ---- */
.contact-form-panel {
  background: #fff;
  border-radius: 14px;
  padding: 30px 32px;
  box-shadow: 0 22px 48px rgba(10, 20, 25, .32);
  align-self: start;
}
@media (max-width: 850px) {
  .contact-form-panel { padding: 26px 24px; }
}

/* ---- "Prefer email?" line under a conversation section's blurb. Moved here
   from home.css — every page's conversation section reuses it. ---- */
.contact-alt-email{font-size:13px;color:var(--on-dark-muted);margin:0}
.contact-alt-email a{color:#9ad4e4;font-weight:600}
.contact-alt-email a:hover{color:#fff}
