/* =====================================================
   CONTACT PAGE (AHDA) — CLEAN + COMPLETE + FAST
   Matches your HTML + hero content animations
   Keeps hero buttons in ONE ROW on media/tablet screens
===================================================== */

/* Wrapper */
.contact-wrapper{
  background: var(--ahda-bg);
  color: var(--primary-text);
  overflow-x: hidden;
}

/* =====================================================
   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%);
}

/* animated glow layer */
.contact-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.95;
  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%);
  animation: contactGlow 16s ease-in-out infinite alternate;
}

/* floating orb */
.contact-hero::after{
  content:"";
  position:absolute;
  top:-160px;
  right:-120px;
  width:520px;
  height:520px;
  border-radius:50%;
  z-index:0;
  pointer-events:none;
  background: radial-gradient(circle, rgba(245,123,44,0.16) 0%, transparent 70%);
  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); }
}

/* Content layer */
.contact-hero-content{
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

/* ----- HERO CONTENT ANIMATIONS (no JS) ----- */
@keyframes heroFadeUp{
  from{ opacity:0; transform: translateY(18px); filter: blur(2px); }
  to{ opacity:1; transform: translateY(0); filter: blur(0); }
}
@keyframes heroFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}
@keyframes titleShimmer{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 100% 50%; }
}
@keyframes btnShine{
  from{ transform: translateX(-120%) rotate(25deg); opacity: 0; }
  30%{ opacity: .35; }
  to{ transform: translateX(120%) rotate(25deg); opacity: 0; }
}

.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%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow: 0 18px 40px rgba(0,0,0,0.25);

  animation:
    heroFadeUp .85s ease-out both,
    heroFloat 6.5s ease-in-out 1.1s infinite,
    titleShimmer 6s ease-in-out 1.2s infinite alternate;
  will-change: transform;
}

.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);
  animation: heroFadeUp .9s ease-out .12s both;
}

/* Buttons: ALWAYS keep a row on tablet/media */
.contact-hero-actions{
  display:flex;
  justify-content:center;
  gap: 14px;
  flex-wrap: nowrap;           /* ✅ stay in same row on media */
  margin-top: 10px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  animation: heroFadeUp .9s ease-out .22s both;
}

/* Make both buttons fit as a row */
.contact-hero-actions .btn{
  flex: 1 1 0;                 /* ✅ equal width in a single row */
  min-width: 210px;            /* keeps shape on medium */
  justify-content: center;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  letter-spacing: .2px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
  position: relative;
  overflow: hidden;
}

/* subtle shine sweep */
.contact-hero-actions .btn::after{
  content:"";
  position:absolute;
  top:-30%;
  left:0;
  width:45%;
  height:160%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  opacity: 0;
  transform: translateX(-120%) rotate(25deg);
}
.contact-hero-actions .btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}
.contact-hero-actions .btn:hover::after{
  opacity: 1;
  animation: btnShine 1.1s ease-out;
}

/* =====================================================
   CONTACT CORE (FORM + INFO)
===================================================== */
.contact-core{
  padding: 85px 0 25px;
  background: linear-gradient(135deg, #ffffff 0%, #f9fbfd 100%);
  position: relative;
}

/* section header */
.section-header{
  margin-bottom: 26px;
  text-align: center;
}
.section-title{
  margin: 0;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ahda-teal);
  letter-spacing: -.02em;
}

/* Form */
.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;
  pointer-events:none;
  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%);
}

.form-label{
  display:block;
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--ahda-teal);
  font-size: .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, background-color .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-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); }

/* =====================================================
   LOCATIONS + MAP
===================================================== */
.map-section{
  padding: 60px 0 40px;
  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 container */
.map-embed-container{
  margin: 30px 0 10px;
  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 .3s ease, box-shadow .3s ease, border-color .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: 0;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@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; }

  /* ✅ keep hero buttons in same row on tablets/media */
  .contact-hero-actions{
    flex-wrap: nowrap;
  }
  .contact-hero-actions .btn{
    min-width: 190px;
    padding: 13px 16px;
  }
}

@media (max-width: 768px){
  .contact-hero{ padding: 80px 0 60px; }
  .contact-hero-subtitle{ font-size: 1.05rem; }

  /* ✅ still keep same row (shrink buttons) */
  .contact-hero-actions{
    flex-wrap: nowrap;
    gap: 12px;
  }
  .contact-hero-actions .btn{
    min-width: 0;            /* allow shrink */
    padding: 12px 14px;
    font-size: .95rem;
  }

  .map-section{ padding: 40px 0 25px; }
  .map-embed-container{ margin: 20px 0 5px; }
  .map-embed-container iframe{ height: 350px; }
}

@media (max-width: 480px){
  /* On very small phones, keep row but reduce padding/font more */
  .contact-hero-actions .btn{
    padding: 11px 12px;
    font-size: .9rem;
  }

  .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; }
}

/* Scope container padding change ONLY to contact page (avoid affecting whole site) */
@media (max-width: 576px){
  .contact-wrapper .container{ padding-left: 16px; padding-right: 16px; }
}

/* =====================================================
   REDUCED MOTION
===================================================== */
@media (prefers-reduced-motion: reduce){
  .contact-hero::before,
  .contact-hero::after,
  .contact-hero-title,
  .contact-hero-subtitle,
  .contact-hero-actions{
    animation: none !important;
  }
  .contact-hero-actions .btn::after{
    display: none !important;
  }
  .contact-hero-actions .btn:hover,
  .contact-info-item:hover,
  .location-card:hover,
  .map-embed-container:hover{
    transform: none !important;
  }
}