/* ═══════════════════════════════════════════════════════════
   Contact Us Page — Tactical Defence Tanzania
   Using the unified Privacy Policy layout & typography
   ═══════════════════════════════════════════════════════════ */

/* ── Inherit and align base layout ── */
html.contact-html,
html:has(body.contact-page),
body.contact-page {
  overflow: visible !important;
  overflow-x: clip !important;
  height: auto !important;
  min-height: 100% !important;
  background-color: #ffffff !important;
  color: #111827;
  font-family: 'europa', 'Satoshi', 'Plus Jakarta Sans', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Fixed Header on Contact Page ── */
body.contact-page .bm-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
  padding: 16px 0 !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.25s ease !important;
}

body.contact-page .bm-header .bm-nav__link,
body.contact-page .bm-header .bm-fav-link {
  color: #070c26 !important;
}

body.contact-page .bm-header .bm-fav-icon {
  fill: #070c26 !important;
}

body.contact-page .bm-header .bm-search-trigger {
  color: #070c26 !important;
  border-color: rgba(7, 12, 38, 0.2) !important;
}

body.contact-page .bm-header .bm-divider {
  background-color: rgba(7, 12, 38, 0.15) !important;
}

body.contact-page .bm-header .bm-menu-btn span {
  background-color: #070c26 !important;
}

body.contact-page .bm-header .bm-plan-btn {
  background-color: #070c26 !important;
  color: #ffffff !important;
  border: 1px solid #070c26 !important;
}

body.contact-page .bm-header .bm-plan-btn:hover {
  background-color: #c09b52 !important;
  border-color: #c09b52 !important;
  color: #ffffff !important;
}

/* ── Breadcrumb ── */
.contact-breadcrumb {
  margin-top: 130px;
  padding: 24px 0 0;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
  font-size: 13.5px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-breadcrumb a {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(17, 24, 39, 0.3);
  transition: all 0.2s;
}

.contact-breadcrumb a:hover {
  color: #c09b52;
  text-decoration-color: #c09b52;
}

.contact-breadcrumb .bc-sep {
  color: #9ca3af;
  font-size: 13px;
}

.contact-breadcrumb .bc-current {
  color: #111827;
  font-weight: 500;
}

/* ── Main Layout Wrapper ── */
.contact-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 48px) 100px;
  display: flex !important;
  align-items: flex-start !important;
  gap: 68px !important;
  position: relative !important;
}

/* ── Sticky Sidebar Tabs ── */
.contact-sidebar {
  flex: 0 0 250px !important;
  width: 250px !important;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 135px !important;
  align-self: flex-start !important;
  height: fit-content !important;
  max-height: calc(100vh - 150px) !important;
  z-index: 20 !important;
}

.contact-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-sidebar-nav li a {
  display: inline-block;
  font-size: 15px;
  font-weight: 400;
  color: #71717a;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.4;
  padding: 4px 0;
  cursor: pointer;
}

.contact-sidebar-nav li a:hover {
  color: #070c26;
}

.contact-sidebar-nav li a.active {
  color: #070c26;
  font-weight: 600;
  border-left: 2px solid #c09b52;
  padding-left: 10px;
}

/* ── Content Area ── */
.contact-content {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 860px;
}

.contact-tab-panel {
  display: none;
  animation: contactFadeIn 0.25s ease forwards;
  scroll-margin-top: 140px;
}

.contact-tab-panel.active {
  display: block;
}

@keyframes contactFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Typography ── */
.contact-content h1 {
  font-family: 'Sobala', 'Sobara', 'Wulkan Display Medium', 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 500;
  color: #070c26;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.2;
}

.contact-content .contact-subtitle {
  font-family: 'europa', 'Satoshi', sans-serif !important;
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 32px;
  line-height: 1.6;
}

.contact-content h2 {
  font-family: 'Sobala', 'Sobara', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: #070c26;
  margin: 32px 0 14px;
}

.contact-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 16px;
}

/* ── Info Cards Grid ── */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 28px 0 36px;
}

.contact-card {
  background: #fbfbfb;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s ease;
}

.contact-card:hover {
  background: #ffffff;
  border-color: #c09b52;
  box-shadow: 0 8px 24px rgba(7, 12, 38, 0.06);
  transform: translateY(-2px);
}

.contact-card__tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c09b52;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card__title {
  font-size: 17px;
  font-weight: 600;
  color: #070c26;
  margin: 0 0 8px;
}

.contact-card__detail {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.contact-card__detail a {
  color: #070c26;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-card__detail a:hover {
  color: #c09b52;
}

/* ── Elfsight Container ── */
.elfsight-form-section {
  margin: 36px 0 20px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.elfsight-form-section h3 {
  font-family: 'Sobala', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: #070c26;
  margin: 0 0 8px;
}

.elfsight-form-section p.form-note {
  font-size: 13.5px;
  color: #6b7280;
  margin-bottom: 24px;
}

.elfsight-embed-container {
  min-height: 320px;
  width: 100%;
  position: relative;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-wrapper {
    flex-direction: column !important;
    gap: 36px !important;
    padding-top: 20px;
  }

  .contact-sidebar {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    flex: none !important;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 18px;
  }

  .contact-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .contact-sidebar-nav li a.active {
    border-left: none;
    border-bottom: 2px solid #c09b52;
    padding-left: 0;
    padding-bottom: 4px;
  }

  .contact-breadcrumb {
    margin-top: 105px;
  }
}
