.contact-page {
  --cu-green: #22c55e;
  --cu-green-dark: #16a34a;
  --cu-blue: #3b82f6;
  --cu-navy: #0f172a;
  --cu-muted: #64748b;
  --cu-border: #e2e8f0;
  --cu-card-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 40%, #e0f2fe 65%, #f0fdf4 100%);
  position: relative;
  color: var(--cu-navy);
  font-family: 'Outfit', 'Inter', sans-serif;
  overflow-x: clip;
}



/* Hero */
.contact-hero {
  position: relative;
  min-height: 280px;
  padding: 56px 48px 120px;
  background: transparent;
  overflow: hidden;
}



.contact-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-top: 72px; /* Increased padding to prevent overlap with navbar */
}

.contact-hero-copy h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.contact-hero-copy h1 .accent {
  color: var(--cu-green-dark);
}



.contact-hero-copy p {
  color: var(--cu-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 420px;
}




/* Main layout */
.contact-main {
  position: relative;
  z-index: 3;
  margin-top: -72px;
  padding: 0 40px 40px;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(300px, 1.15fr) 92px;
  gap: 22px;
  align-items: stretch;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--cu-card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Branch card */
.branch-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.branch-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.branch-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.branch-header .label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--cu-green-dark);
  letter-spacing: 0.02em;
}

.branch-header .city {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.branch-address {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.branch-address svg {
  color: var(--cu-green-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.branch-map {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 180px;
  background: #e2e8f0;
  border: 1px solid var(--cu-border);
}

.branch-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.maps-open-btn {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.maps-open-btn:hover {
  filter: brightness(1.05);
}

.contact-details h3 {
  color: var(--cu-green-dark);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.detail-row svg {
  color: var(--cu-green-dark);
  flex-shrink: 0;
}

.detail-row:hover {
  color: var(--cu-green-dark);
}

.response-badge {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  font-size: 12px;
  color: #334155;
}

.response-badge span {
  font-weight: 800;
  color: var(--cu-green-dark);
}

.response-badge .badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  color: #fff;
  display: grid;
  place-items: center;
}

/* Form card */
.form-card {
  padding: 26px 24px 22px;
}

.form-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.form-accent {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cu-green), var(--cu-blue));
  margin-bottom: 22px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field:focus-within {
  border-color: #86efac;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
  background: #fff;
}

.field.textarea-field {
  align-items: flex-start;
  min-height: 120px;
}

.field-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}

.field-icon.name { background: linear-gradient(135deg, #22c55e, #16a34a); }
.field-icon.mobile { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.field-icon.email { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.field-icon.message { background: linear-gradient(135deg, #f97316, #ea580c); }

.field input,
.field textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--cu-navy);
  font-family: inherit;
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #94a3b8;
}

.send-btn {
  margin-top: 4px;
  border: none;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #22c55e 0%, #3b82f6 100%);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.send-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.privacy-note {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--cu-muted);
  font-size: 12px;
}

.privacy-note svg {
  color: var(--cu-green-dark);
}

.form-success {
  margin-top: 10px;
  text-align: center;
  color: var(--cu-green-dark);
  font-size: 13px;
  font-weight: 700;
}

/* Social rail */
.social-rail {
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #fff;
}

.social-rail h3 {
  writing-mode: horizontal-tb;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  color: #0f172a;
}

.social-rail-line {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--cu-green);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.social-link:hover {
  transform: scale(1.08);
}

.social-link.facebook { background: #1877f2; }
.social-link.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.social-link.twitter { background: #1da1f2; }
.social-link.linkedin { background: #0a66c2; }
.social-link.youtube { background: #ff0000; }

.social-footer {
  margin-top: auto;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 70%, rgba(34, 197, 94, 0.25), transparent 50%),
    linear-gradient(180deg, #ecfdf5, #dcfce7);
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.social-footer::before,
.social-footer::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50% 0 50% 50%;
  background: rgba(34, 197, 94, 0.35);
}

.social-footer::before { top: 10px; left: 10px; transform: rotate(20deg); }
.social-footer::after { bottom: 12px; right: 10px; transform: rotate(-30deg); }

.social-footer-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.35);
}

/* Bottom info bar */
.contact-info-bar {
  max-width: 1200px;
  margin: 8px auto 40px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 4px;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}

.info-icon.hours { background: linear-gradient(135deg, #22c55e, #16a34a); }
.info-icon.support { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.info-icon.partner { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.info-icon.presence { background: linear-gradient(135deg, #f97316, #ea580c); }

.info-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

.info-copy p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--cu-muted);
}

@media (max-width: 980px) {
  .contact-main {
    grid-template-columns: 1fr;
    padding: 0 20px 28px;
    margin-top: -48px;
  }

  .social-rail {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 18px;
  }

  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-footer {
    width: 72px;
    aspect-ratio: 1;
    margin-top: 0;
  }

  .contact-info-bar {
    grid-template-columns: 1fr 1fr;
    padding: 0 20px 32px;
  }

  .contact-hero {
    padding: 64px 24px 100px;
  }


}

@media (max-width: 560px) {
  .contact-info-bar {
    grid-template-columns: 1fr;
  }

  .branch-map {
    height: 160px;
  }
}

/* --- Premium Background Overrides --- */

.contact-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Elevate main content above background */
.contact-hero, .contact-main, .contact-info-bar {
  position: relative;
  z-index: 2;
}

/* Subtle mesh gradients */
.contact-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 10% 60%, rgba(22, 163, 74, 0.06) 0%, transparent 40%);
}

/* Radial Glow Behind Title */
.bg-radial-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

/* Organic Waves */
.bg-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  object-fit: cover;
  opacity: 0.8;
}

/* Abstract Flowing Ribbons */
.bg-ribbons {
  position: absolute;
  top: 15%;
  left: 0;
  width: 100%;
  height: 500px;
  opacity: 0.7;
}

/* World Globe */
.bg-globe {
  position: absolute;
  top: -20px;
  right: -50px;
  width: 500px;
  height: 500px;
  opacity: 0.8;
  animation: slow-spin 60s linear infinite;
  transform-origin: center;
}

@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Translucent Leaves */
.bg-leaves {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 450px;
  height: 450px;
  transform: rotate(-15deg);
}

/* Paper Airplane & Trail */
.bg-plane-container {
  position: absolute;
  top: 25%;
  left: 15%;
  width: 600px;
  height: 250px;
}
.bg-plane-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bg-plane {
  position: absolute;
  top: 12px;
  right: -10px;
  transform: rotate(25deg);
  animation: plane-hover 6s ease-in-out infinite;
}

@keyframes plane-hover {
  0%, 100% { transform: rotate(25deg) translate(0, 0); }
  50% { transform: rotate(28deg) translate(5px, -15px); }
}

/* Floating Icons */
.bg-icon {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}
.bg-envelope {
  top: 15%;
  right: 25%;
  animation: float-icon 7s ease-in-out infinite 1s;
}
.bg-bubble {
  top: 45%;
  left: 5%;
  animation: float-icon 8s ease-in-out infinite;
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* Bokeh Effects */
.bg-bokeh {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  animation: bokeh-pulse 10s ease-in-out infinite;
}
.bokeh-1 { width: 150px; height: 150px; background: #bbf7d0; top: 20%; left: 30%; animation-delay: 0s; }
.bokeh-2 { width: 200px; height: 200px; background: #bae6fd; bottom: 30%; right: 10%; animation-delay: -3s; }
.bokeh-3 { width: 180px; height: 180px; background: #fed7aa; top: 60%; left: 20%; animation-delay: -6s; }

@keyframes bokeh-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* Sparkle Particles */
.bg-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
  animation: sparkle-twinkle 4s ease-in-out infinite;
}
.sparkle-1 { top: 18%; left: 45%; animation-delay: 0.5s; }
.sparkle-2 { top: 35%; right: 28%; animation-delay: 1.5s; width: 4px; height: 4px; }
.sparkle-3 { top: 55%; left: 15%; animation-delay: 2.5s; }

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Dotted Patterns */
.bg-dots {
  position: absolute;
  width: 300px;
  height: 300px;
  background-image: radial-gradient(rgba(148, 163, 184, 0.4) 2px, transparent 2px);
  background-size: 24px 24px;
  pointer-events: none;
}
.bg-dots-left {
  bottom: 0;
  left: 0;
  -webkit-mask-image: radial-gradient(circle at bottom left, black, transparent 70%);
  mask-image: radial-gradient(circle at bottom left, black, transparent 70%);
}
.bg-dots-right {
  bottom: 0;
  right: 0;
  -webkit-mask-image: radial-gradient(circle at bottom right, black, transparent 70%);
  mask-image: radial-gradient(circle at bottom right, black, transparent 70%);
}

/* Soft glassmorphism lighting behind cards */
.bg-card-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.glow-1 {
  width: 400px;
  height: 400px;
  background: rgba(187, 247, 208, 0.3);
  top: 40%;
  left: 20%;
}
.glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(56, 189, 248, 0.2);
  top: 50%;
  right: 20%;
}

@keyframes slideInFromRightCard {
  from { opacity: 0; translate: 80px 0; }
  to { opacity: 1; translate: 0 0; }
}

.form-card {
  animation: slideInFromRightCard 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s backwards;
}

.social-rail {
  animation: slideInFromRightCard 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}
