/* =====================================================
   CONTACT PAGE CSS (Complete) — matches your theme vars
   Includes: Hero, Form + Info panel, Locations, Map, FAQ
   No duplication. Responsive. Clean + attractive.
   FIXED: Removed gap before footer
===================================================== */

/* ======================= */
/* HERO */
/* ======================= */
.contact-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding: 110px 0 85px;
  background: linear-gradient(145deg,
    rgba(11,79,102,0.98) 0%,
    rgba(20,119,109,0.95) 55%,
    rgba(11,79,102,0.98) 100%);
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(245,123,44,0.22) 0%, transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(11,79,102,0.28) 0%, transparent 50%),
    radial-gradient(circle at 45% 85%, rgba(20,119,109,0.18) 0%, transparent 55%);
  opacity: .95;
  animation: contactGlow 16s ease-in-out infinite alternate;
  z-index: 0;
}

.contact-hero::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,123,44,0.16) 0%, transparent 70%);
  z-index: 0;
  animation: orbFloat 22s ease-in-out infinite alternate;
}

@keyframes contactGlow {
  0% { transform: scale(1); opacity: .65; }
  100% { transform: scale(1.08); opacity: 1; }
}

@keyframes orbFloat {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-55px,45px) scale(1.12); }
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.contact-hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #F57B2C 70%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.contact-hero-subtitle {
  margin: 0 auto 34px;
  max-width: 760px;
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.contact-hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ======================= */
/* CONTACT CORE (FORM + INFO) */
/* ======================= */
.contact-core {
  padding: 85px 0 25px;
  background: linear-gradient(135deg, #ffffff 0%, #f9fbfd 100%);
  position: relative;
}

.contact-form {
  background: var(--ahda-white);
  border: 1px solid rgba(11,79,102,0.10);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 45px rgba(11,79,102,0.08);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(245,123,44,0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(20,119,109,0.07) 0%, transparent 50%);
  pointer-events: none;
}

.form-label {
  display: block;
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--ahda-teal);
  font-size: 0.95rem;
  letter-spacing: .2px;
}

.form-control {
  width: 100%;
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid rgba(11,79,102,0.14);
  background: rgba(248,250,252,0.9);
  outline: none;
  color: var(--ahda-text-gray);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.form-control:focus {
  border-color: rgba(245,123,44,0.55);
  box-shadow: 0 0 0 6px rgba(245,123,44,0.14);
  background: #fff;
}

textarea.form-control {
  resize: vertical;
  min-height: 160px;
}

.form-note {
  margin: 14px 0 0;
  color: var(--ahda-text-gray);
  font-size: .95rem;
  line-height: 1.6;
}

.form-note strong {
  color: var(--ahda-teal);
}

/* Info panel */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-block {
  background: var(--ahda-white);
  border: 1px solid rgba(11,79,102,0.10);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 18px 45px rgba(11,79,102,0.06);
}

.contact-info-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ahda-teal);
  letter-spacing: -.01em;
}

.contact-info-sub {
  margin: 0 0 16px;
  color: var(--ahda-text-gray);
  line-height: 1.6;
  font-size: 0.98rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(248,250,252,0.85);
  border: 1px solid rgba(11,79,102,0.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.contact-info-item + .contact-info-item {
  margin-top: 12px;
}

.contact-info-item i {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ahda-green) 0%, var(--ahda-teal) 100%);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 10px 22px rgba(11,79,102,0.12);
  flex: 0 0 auto;
}

.contact-info-item:hover {
  transform: translateY(-4px);
  border-color: rgba(245,123,44,0.25);
  box-shadow: 0 18px 35px rgba(11,79,102,0.10);
}

.contact-info-label {
  font-weight: 900;
  color: var(--ahda-teal);
  font-size: .95rem;
  margin-bottom: 3px;
}

.contact-info-link {
  color: var(--ahda-orange);
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  transition: color .2s ease, transform .2s ease;
}

.contact-info-link:hover {
  color: var(--ahda-maroon);
  transform: translateX(3px);
}

.contact-info-divider {
  border: none;
  height: 1px;
  background: rgba(11,79,102,0.10);
  margin: 18px 0;
}

.contact-info-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ahda-text-gray);
  line-height: 1.8;
}

.contact-info-list strong {
  color: var(--ahda-teal);
}

/* ======================= */
/* MAP + LOCATIONS */
/* ======================= */
.map-section {
  padding: 60px 0 40px;  /* REDUCED bottom padding to eliminate gap */
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
}

.location-card {
  background: var(--ahda-white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(11,79,102,0.10);
  box-shadow: 0 18px 45px rgba(11,79,102,0.10);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.location-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,123,44,0.18);
  box-shadow: 0 28px 60px rgba(11,79,102,0.14);
}

.location-card-header {
  padding: 24px 26px;
  background: linear-gradient(135deg, var(--ahda-teal) 0%, var(--ahda-green) 100%);
}

.location-card-title {
  margin: 0;
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-card-body {
  padding: 26px;
}

.location-address h4 {
  margin: 0 0 10px;
  color: var(--ahda-green);
  font-weight: 900;
  font-size: 1rem;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--ahda-orange);
}

.location-address p {
  margin: 0;
  color: var(--ahda-text-gray);
  line-height: 1.85;
}

/* ======================= */
/* MAP EMBED - FIXED */
/* ======================= */
.map-embed-container {
  margin: 30px 0 10px;  /* REDUCED bottom margin */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(11,79,102,0.15);
  border: 1px solid rgba(11,79,102,0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.map-embed-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(11,79,102,0.2);
  border-color: rgba(245,123,44,0.3);
}

.map-embed-container iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: none;
}

.map-heading {
  text-align: center;
  margin-bottom: 20px;
}

.map-heading h3 {
  color: var(--ahda-teal);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.map-heading p {
  color: var(--ahda-text-gray);
  font-size: 1rem;
}

/* ======================= */
/* FAQ SECTION - FIXED */
/* ======================= */
.faq-section {
  padding: 40px 0 60px;  /* ADJUSTED padding */
  margin-top: 0 !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.faq-grid {
  max-width: 920px;
  margin: 0 auto;
}

.faq-item {
  background: var(--ahda-white);
  border-radius: 18px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(11,79,102,0.10);
  box-shadow: 0 12px 30px rgba(11,79,102,0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.faq-item:hover {
  transform: translateY(-4px);
  border-color: rgba(245,123,44,0.18);
  box-shadow: 0 18px 40px rgba(11,79,102,0.09);
}

.faq-question {
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(248,250,252,0.55);
}

.faq-question h4 {
  margin: 0;
  color: var(--ahda-teal);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.4;
}

.faq-question i {
  color: var(--ahda-orange);
  font-size: 1.25rem;
  transition: transform .25s ease, color .25s ease;
}

.faq-answer {
  padding: 0 26px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 26px 22px;
  max-height: 520px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--ahda-green);
}

.faq-answer p {
  margin: 0;
  color: var(--ahda-text-gray);
  line-height: 1.8;
  font-size: 1rem;
}

.faq-answer a {
  color: var(--ahda-orange);
  font-weight: 900;
  text-decoration: none;
}

.faq-answer a:hover {
  color: var(--ahda-maroon);
  text-decoration: underline;
}

/* ======================= */
/* RESPONSIVE - COMPLETE */
/* ======================= */
@media (max-width: 992px) {
  .contact-core {
    padding: 70px 0 15px;
  }
  
  .contact-form {
    padding: 26px;
  }
  
  .contact-info-block {
    padding: 22px;
  }
  
  .map-section {
    padding: 50px 0 30px;
  }
  
  .faq-section {
    padding: 30px 0 50px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 80px 0 60px;
  }
  
  .contact-hero-subtitle {
    font-size: 1.05rem;
  }
  
  .contact-hero-actions .btn {
    width: 100%;
    max-width: 420px;
  }
  
  .map-section {
    padding: 40px 0 25px;
  }
  
  .map-embed-container {
    margin: 20px 0 5px;
  }
  
  .map-embed-container iframe {
    height: 350px;
  }
  
  .faq-section {
    padding: 25px 0 40px;
  }
  
  .faq-question {
    padding: 18px 20px;
  }
  
  .faq-answer {
    padding: 0 20px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 20px 18px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }
  
  .contact-form {
    padding: 22px;
    border-radius: 20px;
  }
  
  .contact-info-block {
    border-radius: 20px;
  }
  
  .form-control {
    border-radius: 14px;
  }
  
  .location-card {
    border-radius: 20px;
  }
  
  .map-section {
    padding: 30px 0 20px;
  }
  
  .map-embed-container iframe {
    height: 300px;
  }
  
  .map-heading h3 {
    font-size: 1.3rem;
  }
  
  .faq-section {
    padding: 20px 0 30px;
  }
}

/* ======================= */
/* REDUCED MOTION */
/* ======================= */
@media (prefers-reduced-motion: reduce) {
  .contact-hero::before,
  .contact-hero::after {
    animation: none !important;
  }
  
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}