/* contact.css */

/* Contact Hero Section */
.contact-hero {
  /* Uses inline style from service for background */
  background-size: cover;
  background-position: center;
  padding: var(--spacing-xl) 0;
  color: var(--text-light);
  text-align: center;
  position: relative;
  min-height: 350px; /* Adjust height */
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-hero::before {
  /* Optional overlay */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.page-title {
  /* Reusing global styles */
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-md);
  color: var(--text-light); /* Override global heading color */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
  /* Reusing global styles */
  font-size: var(--font-size-xl);
  opacity: 0.9;
  color: var(--text-light); /* Override global p color */
  margin-bottom: 0;
}

/* Contact Info Section (Integrated from additional.css) */
.contact-info {
  padding: var(--spacing-xl) 0;
  /* background: var(--bg-secondary); Optional alternate background */
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsive */
  gap: var(--spacing-lg);
}

.info-card {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-lg);
  text-align: center;
  transition: var(--transition-base);
  border: 1px solid var(--border-color);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.info-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(
    in srgb,
    var(--primary-color) 15%,
    transparent
  ); /* Light primary bg */
  border-radius: 50%;
  color: var(--primary-color);
}

.info-icon img,
.info-icon i {
  /* Handle both img and Font Awesome icons */
  width: 30px;
  height: 30px;
  object-fit: contain;
  font-size: 24px; /* Adjust icon size */
  line-height: 1;
}

.info-card h3 {
  font-family: var(--font-primary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--secondary-color); /* Darker title */
}

.info-card p {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-xs);
}
.info-card p:last-child {
  margin-bottom: 0;
}
.info-card a {
  /* Style links within info cards */
  color: var(--primary-color);
}
.info-card a:hover {
  text-decoration: underline;
}

/* Contact Main Section (Form & Map) */
.contact-main {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-secondary); /* Alternate background */
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile first */
  gap: var(--spacing-xl);
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr; /* Two columns desktop */
    align-items: start; /* Align items top */
  }
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-primary);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.contact-form-wrapper .section-title {
  /* Target title within wrapper */
  text-align: left;
  font-size: var(--font-size-xl); /* Slightly smaller title for form */
  margin-bottom: var(--spacing-lg);
}

.contact-form .form-group {
  /* Inherits global styling */
  margin-bottom: var(--spacing-md);
}

.contact-form button[type='submit'] {
  width: 100%; /* Full width button */
  margin-top: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg); /* Larger button */
  font-size: var(--font-size-md);
}

/* Map */
.contact-map {
  /* No specific styles needed for container */
  display: grid;
}

.contact-map .section-title {
  text-align: left;
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-lg);
}

.map-container {
  width: 100%;
  height: 450px; /* Adjust height as needed */
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

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

/* Office Locations Section (Integrated from additional.css) */
.office-locations {
  padding: var(--spacing-xl) 0;
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.office-card {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-base);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.office-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.office-card img {
  width: 100%;
  height: 220px; /* Fixed height */
  object-fit: cover;
}

.office-info {
  padding: var(--spacing-lg);
  flex-grow: 1; /* Allow info to take space */
}

.office-info h3 {
  font-family: var(--font-primary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md); /* More space below title */
  color: var(--secondary-color);
}

.office-info p {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm); /* Space between lines */
  display: flex; /* Align icons */
  align-items: center;
  gap: var(--spacing-sm);
}
.office-info p i {
  color: var(--primary-color);
  width: 16px; /* Align icons */
  text-align: center;
}
.office-info p:last-child {
  margin-bottom: 0;
}
.office-info a {
  /* Style links like email */
  color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .contact-grid {
    gap: var(--spacing-lg);
  }
  .contact-map {
    margin-top: var(--spacing-lg); /* Add space above map on mobile/tablet */
  }
  .contact-map .section-title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .info-grid {
    gap: var(--spacing-md);
  }
  .office-locations {
    padding: var(--spacing-lg) 0;
  }
  .offices-grid {
    gap: var(--spacing-md);
  }
}
