p {
  color: white;
  margin-bottom: 0;
  font-size: 1rem;
}

/* Faded Hero Background */

.contact-hero-wrapper {
  position: relative;
  padding-top: 140px;
  padding-bottom: 400px;
  background: url('../../assets/images/backgrounds/contact-bg.jpg');
  background-position-y: 10%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* White fade overlay */

.contact-hero-wrapper::before {
  content: '';
  position: absolute;
  background: linear-gradient(
    180deg,
    rgba(241, 245, 249, 1) 30%,
    rgba(241, 245, 249, 0.9) 40%,
    rgba(241, 245, 249, 0) 80%,
    rgba(241, 245, 249, 0) 90%,
    rgba(241, 245, 249, 1) 100%
  );
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.contact-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-hero-content h1 {
  font-size: 3.5rem;
  line-height: 3.75rem;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.contact-hero-content p {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.8;
}

/* The Overlapping Main Card */

.contact-card-container {
  position: relative;
  z-index: 20;
  max-width: 1100px;
  margin: -320px auto 80px;
  background: #fff;
  border-radius: 24px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  display: flex;
  overflow: hidden;
}

/* Left Side - Info Tiles */

.contact-info-side {
  flex: 1;
  padding: 50px;
  padding-right: 24px;
  background: #fafaf9;
  border-right: 1px solid #f1f5f9;
}

.contact-info-side h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 40px;
}

.info-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-tile {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 36px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.info-tile:hover {
  transform: translateY(-3px);
}

.info-tile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.info-tile .info-tile-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 4px;
}

.tile-copy {
  display: none;
  transition: all 0.3s ease;
}

.info-tile:hover .tile-copy {
  background: #eff6ff;
  color: #2563eb;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Ensure address tile takes full width since it's long */

.info-tile.full-width {
  grid-column: 1 / -1;
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.tile-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}

.tile-icon.green {
  background: #f0fdf4;
  color: #16a34a;
}

.tile-icon.purple {
  background: #faf5ff;
  color: #9333ea;
}

.info-tile h3 {
  font-size: 0.9rem;
  color: #0f172a;
  font-weight: 500;
}

.info-tile p {
  font-size: 1rem;
  color: #475569;
  font-weight: 500;
  line-height: 1.5;
}

.info-tile a {
  color: #2563eb;
  text-decoration: none;
}

/* Right Side - Form */

.contact-form-side {
  flex: 1.2;
  padding: 50px;
  background: #fff;
}

.contact-form-side h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 40px;
}

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

.c-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-form-group.full {
  grid-column: 1 / -1;
}

.c-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.c-form-control {
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1e293b;
  background: #fff;
  transition: all 0.3s ease;
}

.c-form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.c-form-control {
  resize: vertical;
  min-height: 140px;
}

.c-submit-btn {
  width: 100%;
  background: #2563eb;
  color: #fff !important ;
  padding: 4px;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.c-submit-btn p {
  padding-left: 14px;
}

.c-submit-icon {
  background-color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: #0f172a;
  transform: rotate(-45deg);
  font-size: medium;
}

.c-submit-btn:hover {
  background: #1d4ed8;
}

/* Map Section */

.map-wrapper {
  max-width: 1100px;
  margin: 0 auto 80px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 520px;
  background: #e2e8f0; /* placeholder bg */
  border: 1px solid #e2e8f0;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Bottom CTA */

.bottom-cta-wrapper {
  margin: 0 auto 64px;
  overflow: hidden;
  position: relative;
  padding: 100px 64px;
  text-align: center;
  background: url('../../assets/images/gallery/contactus-bootom-img.jpg') center/cover no-repeat;
}

.bottom-cta-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(241, 245, 249, 0.9) 50%,
    rgba(241, 245, 249, 0) 80%,
    rgba(241, 245, 249, 0) 98%,
    rgba(241, 245, 249, 1) 100%
  );
}

.bottom-cta-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
  margin: 0 auto;
}

.bottom-cta-content h2 {
  font-size: 2.8rem;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 20px;
  line-height: 1.2;
}

.bottom-cta-content p {
  font-size: 1rem;
  font-weight: 400;
  color: #1e293b;
  margin-bottom: 30px;
}

.cta-app-btn {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  background: #2563eb;
  color: #fff;
  padding: 4px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.cta-app-btn span {
  padding-left: 0.5rem;
  padding-right: 1rem;
  font-size: medium;
  font-weight: 500;
}

.cta-app-btn i {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(-45deg);
  font-size: medium;
  background-color: white;
  border-radius: 50%;
  color: #0f172a;
}

.cta-app-btn:hover {
  transform: translateY(-2px);
}

@media (width <= 992px) {
  .contact-card-container {
    flex-direction: column;
    margin-top: -60px;
  }

  .contact-info-side,
  .contact-form-side {
    padding: 30px;
    padding-right: 24px;
  }

  .info-tiles-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero-content h1 {
    font-size: 3rem;
  }
}

@media (width <= 992px) {
  .hero {
    padding: 150px 0 100px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (width <= 768px) {
  .floating-element {
    display: none;
  }

  .clients-bar {
    margin-top: 40px;
    padding: 30px;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    display: none;
  }

  .c-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (width <= 576px) {
  .hero-cta,
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .switch-track {
    width: 100%;
  }

  .switch-option {
    width: 50%;
    justify-content: center;
    padding: 12px 10px;
  }

  .slider-track {
    width: 100%;
  }

  .slider-button {
    width: 50%;
    justify-content: center;
    padding: 12px 10px;
  }

  .toggle-container {
    width: 100%;
  }

  .toggle-option {
    width: 50%;
    justify-content: center;
    min-width: auto;
    padding: 12px 10px;
  }

  .toggle-highlighter {
    width: 50%;
  }

  .testimonial-switcher {
    flex-direction: column;
  }
}
