/* TSFA Contact page ([tsfa_contact_intro] + Elfsight form + [tsfa_contact_closing]). Mirrors the homepage design in 03-TSFA-Homepage-Source.html.
   The doubled ID outranks the Salient theme's global heading, paragraph, and link rules. */
html body #tsfa-page-contact#tsfa-page-contact {
  --tsfa-navy: #092f53;
  --tsfa-deep: #061f38;
  --tsfa-blue: #165f8d;
  --tsfa-red: #cf3f4b;
  --tsfa-red-dark: #a72d38;
  --tsfa-gold: #c8a657;
  --tsfa-cream: #f6f2e9;
  --tsfa-sky: #e7f1f6;
  --tsfa-white: #ffffff;
  --tsfa-ink: #172939;
  --tsfa-muted: #5c6872;
  --tsfa-line: #d7dee3;
  width: 100%;
  overflow: hidden;
  color: var(--tsfa-ink);
  background: var(--tsfa-white);
  font-family: Arial, Helvetica, sans-serif;
}
html body #tsfa-page-contact#tsfa-page-contact * { box-sizing: border-box; }
html body #tsfa-page-contact#tsfa-page-contact h1,
html body #tsfa-page-contact#tsfa-page-contact h2,
html body #tsfa-page-contact#tsfa-page-contact h3,
html body #tsfa-page-contact#tsfa-page-contact p {
  margin-top: 0 !important;
  padding: 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
  text-transform: none !important;
}
html body #tsfa-page-contact#tsfa-page-contact h1,
html body #tsfa-page-contact#tsfa-page-contact h2,
html body #tsfa-page-contact#tsfa-page-contact h3 { line-height: 1.08 !important; font-weight: 700 !important; }
html body #tsfa-page-contact#tsfa-page-contact p { line-height: 1.58 !important; }
html body #tsfa-page-contact#tsfa-page-contact a { text-decoration: none !important; }
html body #tsfa-page-contact#tsfa-page-contact a:focus-visible { outline: 3px solid var(--tsfa-gold); outline-offset: 3px; }

html body #tsfa-page-contact#tsfa-page-contact p.tsfa-con-kicker {
  margin-bottom: 14px !important;
  color: var(--tsfa-red) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 1.7px !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
}

/* Header band */
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-hero {
  position: relative;
  padding: 68px clamp(34px, 6vw, 88px) 76px;
  color: var(--tsfa-white);
  background:
    radial-gradient(circle at 82% 20%, rgba(22, 95, 141, 0.7), transparent 36%),
    linear-gradient(125deg, var(--tsfa-deep) 0%, var(--tsfa-navy) 58%, #0c456f 100%);
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--tsfa-red) 0 34%, var(--tsfa-gold) 34% 67%, #4b97b8 67%);
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-hero p.tsfa-con-kicker { color: var(--tsfa-gold) !important; }
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-hero h1 {
  max-width: 760px;
  margin-bottom: 18px !important;
  color: var(--tsfa-white) !important;
  font-size: clamp(38px, 5vw, 64px) !important;
  letter-spacing: -2px !important;
}
html body #tsfa-page-contact#tsfa-page-contact p.tsfa-con-lead {
  max-width: 680px;
  margin-bottom: 0 !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 18px !important;
}

/* Cards section */
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-section { padding: 68px clamp(34px, 6vw, 88px); }
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-heading { max-width: 760px; margin-bottom: 32px; }
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-heading h2 {
  margin-bottom: 0 !important;
  color: var(--tsfa-deep) !important;
  font-size: clamp(30px, 3.8vw, 45px) !important;
  letter-spacing: -1px !important;
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
html body #tsfa-page-contact#tsfa-page-contact a.tsfa-con-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--tsfa-line);
  border-radius: 12px;
  background: var(--tsfa-white);
  color: inherit !important;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
html body #tsfa-page-contact#tsfa-page-contact a.tsfa-con-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(9, 47, 83, 0.12);
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 32px;
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-handle {
  color: var(--tsfa-red);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-badge {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--tsfa-sky);
  color: var(--tsfa-blue);
  font-size: 16px;
  font-weight: 900;
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-card h3 {
  margin-bottom: 10px !important;
  color: var(--tsfa-deep) !important;
  font-size: 19px !important;
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-card p {
  margin-bottom: 18px !important;
  color: var(--tsfa-muted) !important;
  font-size: 13px !important;
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-go {
  margin-top: auto;
  color: var(--tsfa-red);
  font-size: 12px;
  font-weight: 800;
}
html body #tsfa-page-contact#tsfa-page-contact a.tsfa-con-card:hover .tsfa-con-go { color: var(--tsfa-red-dark); }

/* Closing band (same as the homepage) */
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-final {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 52px clamp(34px, 6vw, 88px);
  color: var(--tsfa-white);
  background: var(--tsfa-red);
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-final h2 {
  margin-bottom: 8px !important;
  color: var(--tsfa-white) !important;
  font-size: clamp(28px, 4vw, 45px) !important;
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-final p {
  margin-bottom: 0 !important;
  color: rgba(255, 255, 255, 0.82) !important;
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
html body #tsfa-page-contact#tsfa-page-contact a.tsfa-con-final-action {
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--tsfa-deep) !important;
  background: var(--tsfa-white);
  font-size: 12px;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease;
}
html body #tsfa-page-contact#tsfa-page-contact a.tsfa-con-final-action.secondary {
  color: var(--tsfa-white) !important;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: transparent;
}
html body #tsfa-page-contact#tsfa-page-contact a.tsfa-con-final-action:hover { transform: translateY(-2px); }
html body #tsfa-page-contact#tsfa-page-contact a.tsfa-con-final-action:not(.secondary):hover { background: var(--tsfa-cream); }
html body #tsfa-page-contact#tsfa-page-contact a.tsfa-con-final-action.secondary:hover { background: rgba(255, 255, 255, 0.13); }

@media (max-width: 1040px) {
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 790px) {
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-hero { padding: 56px 28px 64px; }
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-final { grid-template-columns: 1fr; }
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-final-actions { justify-content: flex-start; }
}
@media (max-width: 570px) {
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-hero h1 { font-size: 42px !important; letter-spacing: -1.5px !important; }
  html body #tsfa-page-contact#tsfa-page-contact p.tsfa-con-lead { font-size: 16px !important; }
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-section { padding: 54px 24px; }
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-grid { grid-template-columns: 1fr; }
  html body #tsfa-page-contact#tsfa-page-contact a.tsfa-con-card { min-height: auto; }
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-top { margin-bottom: 20px; }
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-final { padding: 46px 24px; }
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-final-actions { flex-direction: column; width: 100%; }
  html body #tsfa-page-contact#tsfa-page-contact a.tsfa-con-final-action { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html body #tsfa-page-contact#tsfa-page-contact a.tsfa-con-card,
  html body #tsfa-page-contact#tsfa-page-contact a.tsfa-con-final-action { transition: none; }
}

/* Resources page additions: article and tool cards reuse .tsfa-con-card; quotes get their own list. */
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-section.alt { background: var(--tsfa-cream); }
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-heading p.tsfa-con-intro {
  margin: 14px 0 0 !important;
  color: var(--tsfa-muted) !important;
  font-size: 16px !important;
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-grid.three { grid-template-columns: repeat(3, 1fr); }
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
html body #tsfa-page-contact#tsfa-page-contact figure.tsfa-con-quote {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 24px 24px 22px;
  border: 1px solid var(--tsfa-line);
  border-left: 5px solid var(--tsfa-blue);
  border-radius: 12px;
  background: var(--tsfa-white);
}
html body #tsfa-page-contact#tsfa-page-contact figure.tsfa-con-quote blockquote {
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--tsfa-ink) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.58 !important;
  quotes: none;
}
html body #tsfa-page-contact#tsfa-page-contact figure.tsfa-con-quote blockquote::before,
html body #tsfa-page-contact#tsfa-page-contact figure.tsfa-con-quote blockquote::after { content: none !important; display: none !important; }
html body #tsfa-page-contact#tsfa-page-contact figure.tsfa-con-quote figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--tsfa-line);
  font-size: 13px;
  line-height: 1.4;
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-who { color: var(--tsfa-deep); font-weight: 800; }
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-who span { color: var(--tsfa-muted); font-weight: 400; }
html body #tsfa-page-contact#tsfa-page-contact figcaption a {
  color: var(--tsfa-red) !important;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
html body #tsfa-page-contact#tsfa-page-contact figcaption a:hover { color: var(--tsfa-red-dark) !important; }
html body #tsfa-page-contact#tsfa-page-contact p.tsfa-con-note {
  max-width: 760px;
  margin: 24px 0 0 !important;
  color: var(--tsfa-muted) !important;
  font-size: 13px !important;
}
@media (max-width: 1040px) {
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-grid.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 790px) {
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-quotes { grid-template-columns: 1fr; }
}
@media (max-width: 570px) {
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-grid.three { grid-template-columns: 1fr; }
}

/* The Elfsight form sits between the two shortcodes in the same Text Block; keep it centered with page gutters. */
html body .elfsight-app-6e4e1905-0203-416c-bd1a-a6e01d072395 {
  box-sizing: border-box;
  max-width: 820px;
  margin: 0 auto !important;
  padding: 0 24px 68px;
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-section.form-head { padding-top: 8px; padding-bottom: 28px; text-align: center; }
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-section.form-head .tsfa-con-heading { margin: 0 auto; }
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-section.form-head p.tsfa-con-intro { margin-left: auto !important; margin-right: auto !important; }
html body #tsfa-page-contact#tsfa-page-contact a.tsfa-con-card .tsfa-con-handle { overflow-wrap: anywhere; }

/* If the editor wraps a shortcode in <code> (pasting from a chat app can do this), the browser reopens that tag inside
   every heading, paragraph and button row. Make any such wrapper invisible so the band renders normally. */
html body #tsfa-page-contact#tsfa-page-contact code {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  white-space: inherit !important;
}
html body #tsfa-page-contact#tsfa-page-contact { white-space: normal; }
html body .wpb_text_column code:empty { display: none !important; }
html body code:has(#tsfa-page-contact),
html body pre:has(#tsfa-page-contact) {
  display: contents !important;
  background: none !important;
  font: inherit !important;
  white-space: normal !important;
}

/* Donate page ([tsfa_donate]) reuses this stylesheet. */
html body #tsfa-page-contact#tsfa-page-contact ul.tsfa-don-points {
  max-width: 680px;
  margin: 22px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
html body #tsfa-page-contact#tsfa-page-contact ul.tsfa-don-points li {
  position: relative;
  margin: 0 0 8px !important;
  padding: 0 0 0 28px !important;
  color: var(--tsfa-white) !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.5 !important;
  list-style: none !important;
}
html body #tsfa-page-contact#tsfa-page-contact ul.tsfa-don-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--tsfa-gold);
  font-weight: 900;
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-don-form {
  max-width: 820px;
  margin: 22px auto 0;
  text-align: center;
}
/* The donate button: ours (fallback) or the one the MembershipWorks form shortcode renders. Big and title-cased. */
html body #tsfa-page-contact#tsfa-page-contact .tsfa-don-form a,
html body #tsfa-page-contact#tsfa-page-contact .tsfa-don-form button,
html body #tsfa-page-contact#tsfa-page-contact .tsfa-don-form input[type="submit"],
html body #tsfa-page-contact#tsfa-page-contact .tsfa-don-form input[type="button"] {
  display: inline-block !important;
  min-width: min(100%, 440px);
  padding: 30px 72px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: var(--tsfa-white) !important;
  background: var(--tsfa-red) !important;
  box-shadow: 0 16px 34px rgba(207, 63, 75, 0.3);
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 40px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.5px !important;
  text-align: center;
  text-transform: capitalize !important;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-don-form a:hover,
html body #tsfa-page-contact#tsfa-page-contact .tsfa-don-form button:hover,
html body #tsfa-page-contact#tsfa-page-contact .tsfa-don-form input[type="submit"]:hover,
html body #tsfa-page-contact#tsfa-page-contact .tsfa-don-form input[type="button"]:hover {
  transform: translateY(-2px);
  background: var(--tsfa-red-dark) !important;
}
@media (max-width: 570px) {
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-don-form a,
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-don-form button,
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-don-form input[type="submit"],
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-don-form input[type="button"] {
    width: 100%;
    min-width: 0;
    padding: 24px 20px !important;
    font-size: 30px !important;
  }
}
html body #tsfa-page-contact#tsfa-page-contact.tsfa-donate .tsfa-con-section.form-head { padding-top: 60px; padding-bottom: 60px; }
html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-grid.two { grid-template-columns: 1fr 1fr; margin-top: 14px; }
html body #tsfa-page-contact#tsfa-page-contact div.tsfa-con-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--tsfa-line);
  border-radius: 12px;
  background: var(--tsfa-white);
}
html body #tsfa-page-contact#tsfa-page-contact .tsfa-don-offline .tsfa-con-card { min-height: 0; }
html body #tsfa-page-contact#tsfa-page-contact p.tsfa-don-address {
  margin-bottom: 0 !important;
  color: var(--tsfa-deep) !important;
  font-size: 17px !important;
  font-weight: 700;
}
@media (max-width: 570px) {
  html body #tsfa-page-contact#tsfa-page-contact .tsfa-con-grid.two { grid-template-columns: 1fr; }
}
