/* ════════════════════════════════════════════════
   CONTACT PAGE - MindBridge Kenya
   Matching the updated theme (Deep Purple / White / Lime Green)
   ════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ─── VARIABLES ─── */
:root {
  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5f4;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-deep: #3b0764;
  --green: #a3e635;
  --text-dark: #12101f;
  --text-mid: #4b4b6b;
  --text-muted: #9090b0;
  --white: #ffffff;
  --border: rgba(167,139,250,0.16);
  --radius-pill: 999px;
  --shadow: 0 4px 32px rgba(120,60,240,0.09);
  --shadow-lg: 0 16px 64px rgba(120,60,240,0.14);
  --transition: 0.22s ease;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: #ddd6fe;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── PAGE BACKGROUND ─── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, #c4b5f4 0%, #a78bfa55 40%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 80%, #ddd6fe 0%, transparent 60%),
    #ddd6fe;
  pointer-events: none;
}

/* ─── SCROLL CONTAINER ─── */
.scroll-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* ─── CARD BASE ─── */
.card {
  background: var(--white);
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 0;
  padding: 80px 5%;
}

/* ════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  width: 100%;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.4px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--purple-100);
  color: var(--purple-600);
}

.chev { font-size: 10px; opacity: 0.45; }

.btn-book {
  background: var(--purple-600) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  box-shadow: 0 3px 16px rgba(139,92,246,0.30);
  transition: all var(--transition) !important;
}

.btn-book:hover {
  background: var(--purple-700) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124,58,237,0.35) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════
   SECTION TAG
   ════════════════════════════════════════════════ */
.section-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--purple-600);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.tag-num {
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
  font-weight: 400;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ════════════════════════════════════════════════
   CONTACT HERO
   ════════════════════════════════════════════════ */
.contact-hero-card {
  background: linear-gradient(135deg, var(--purple-100) 0%, var(--white) 100%);
  text-align: center;
  padding: 80px 5% 60px;
}

.contact-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.contact-hero-sub {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════
   CONTACT MAIN (Info + Form)
   ════════════════════════════════════════════════ */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  max-width: 1300px;
  margin: 0 auto;
}

.contact-info-title,
.contact-form-title {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.contact-info-desc {
  color: var(--text-mid);
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.contact-detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.detail-icon {
  width: 56px;
  height: 56px;
  background: var(--purple-100);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon i {
  font-size: 26px;
  color: var(--purple-600);
}

.contact-detail-item h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-detail-item p {
  color: var(--text-mid);
  line-height: 1.6;
}

.contact-detail-item a {
  color: var(--purple-600);
  font-weight: 600;
  transition: color var(--transition);
}

.contact-detail-item a:hover {
  color: var(--purple-700);
}

.get-directions {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-600);
}

.get-directions i {
  margin-right: 6px;
}

.social-connect {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.social-connect h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  width: 48px;
  height: 48px;
  background: var(--purple-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-600);
  font-size: 20px;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--purple-600);
  color: white;
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
  background: var(--purple-100);
  padding: 40px;
  border-radius: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group label i {
  margin-right: 8px;
  color: var(--purple-600);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 1.5px solid rgba(124,58,237,0.2);
  border-radius: 20px;
  font-size: 15px;
  background: var(--white);
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-600);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 13px;
  color: var(--text-mid);
}

.form-checkbox a {
  color: var(--purple-600);
  font-weight: 600;
  text-decoration: none;
}

.form-checkbox a:hover {
  text-decoration: underline;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text-dark);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px 14px 18px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.btn-submit:hover {
  background: var(--purple-600);
  transform: translateY(-2px);
  gap: 16px;
}

.arrow-dot {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  color: #2d2d00;
  font-weight: 700;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
}

.form-note i {
  margin-right: 6px;
}

/* ════════════════════════════════════════════════
   MAP SECTION
   ════════════════════════════════════════════════ */
.map-card {
  background: var(--white);
}

.map-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.map-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.map-sub {
  color: var(--text-mid);
  font-size: 16px;
}

.map-container {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  display: block;
}

.map-location-details {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  text-align: center;
}

.location-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.location-detail i {
  font-size: 32px;
  color: var(--purple-600);
}

.location-detail strong {
  font-size: 16px;
  font-weight: 700;
}

.location-detail p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════
   EMERGENCY CONTACT SECTION
   ════════════════════════════════════════════════ */
.emergency-contact-card {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  color: white;
}

.emergency-grid {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.emergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.emergency-contact-card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.emergency-contact-card p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.emergency-numbers {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.emergency-number {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  padding: 22px 28px;
  border-radius: 28px;
  text-align: center;
  min-width: 220px;
  transition: all 0.2s ease;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.emergency-number:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

.emergency-number i {
  font-size: 32px;
}

.emergency-number span {
  font-size: 14px;
  opacity: 0.9;
}

.emergency-number strong {
  font-size: 20px;
  font-weight: 700;
}

.emergency-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 28px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.emergency-note i {
  font-size: 24px;
  color: #f87171;
}

/* ════════════════════════════════════════════════
   CONTACT FAQ SECTION
   ════════════════════════════════════════════════ */
.contact-faq-card {
  background: var(--purple-100);
}

.contact-faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.contact-faq-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.5px;
}

.contact-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-faq-item {
  background: var(--white);
  padding: 32px;
  border-radius: 28px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.contact-faq-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-300);
}

.contact-faq-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-faq-item h3 i {
  color: var(--purple-600);
  font-size: 22px;
}

.contact-faq-item p {
  color: var(--text-mid);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════════════ */
.cta-card {
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://placehold.co/1920x600/7c3aed/white?text=MindBridge+Community') center/cover no-repeat;
  filter: brightness(0.7);
  z-index: 0;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,10,60,0.5), rgba(30,10,60,0.7));
  z-index: 1;
}

.cta-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 5%;
}

.cta-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  color: white;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px 14px 18px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  gap: 16px;
}

/* ════════════════════════════════════════════════
   FOOTER - CLEAN VERSION (4 COLUMNS)
   ════════════════════════════════════════════════ */
.footer-card {
  background: var(--text-dark);
  padding: 64px 5% 40px;
  width: 100%;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  max-width: 320px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-links-grid h5 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.footer-links-grid ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-grid li {
  margin: 0;
  padding: 0;
}

.footer-links-grid a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.22s ease;
}

.footer-links-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.30);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 28px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.30);
  text-decoration: none;
  transition: color 0.22s ease;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.footer-dev {
  text-align: center;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-dev p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-dev a {
  color: var(--purple-400);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-dev a:hover {
  color: var(--purple-300);
}

.footer-dev i {
  margin: 0 2px;
}

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .contact-main-grid,
  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact-faq-grid {
    grid-template-columns: 1fr;
  }
  
  .emergency-numbers {
    flex-direction: column;
    align-items: center;
  }
  
  .emergency-number {
    width: 100%;
    max-width: 320px;
  }
  
  .card {
    padding: 60px 5%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
    z-index: 300;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links a {
    padding: 12px 16px;
    border-radius: 12px;
  }
  
  .btn-book {
    text-align: center;
  }
  
  .burger {
    display: flex;
  }
  
  .contact-hero-card {
    padding: 60px 5% 50px;
  }
  
  .contact-hero-title {
    font-size: 36px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-form {
    padding: 28px;
  }
  
  .map-location-details {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  
  .map-container iframe {
    height: 350px;
  }
  
  .emergency-contact-card h2 {
    font-size: 28px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card {
    padding: 48px 5%;
  }
}

@media (max-width: 480px) {
  .contact-hero-title {
    font-size: 32px;
  }
  
  .contact-detail-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
  
  .contact-info-title,
  .contact-form-title {
    font-size: 28px;
    text-align: center;
  }
  
  .emergency-number {
    padding: 18px 20px;
  }
  
  .emergency-number strong {
    font-size: 18px;
  }
  
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .footer-brand p {
    max-width: 100%;
  }
}