/* ============================================
   Contact Page Styles
   ============================================ */

/* Light Navbar override - Only needed if we don't have a hero image */
/* But now we will have a hero, so we revert to default white text behavior initially */

/* Contact Header */
.contact-header {
  padding: 180px 0 100px;
  background: var(--gradient-blue);
  background-image:
    linear-gradient(rgba(10, 26, 63, 0.8), rgba(10, 26, 63, 0.8)),
    url("../../images/office-building.jpg"); /* Fallback to main bg */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.contact-header-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-header .label {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 122, 0, 0.15);
  border-radius: var(--radius-full);
  color: var(--color-vibrant-orange) !important;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-6);
  letter-spacing: var(--tracking-wide);
  border: 1px solid rgba(255, 122, 0, 0.2);
}

.contact-header h1 {
  color: var(--color-white) !important;
  margin-bottom: var(--space-6);
  font-size: var(--text-5xl);
}

.contact-header .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: var(--text-xl);
}

/* Contact Grid */
.contact-section {
  margin-top: -60px; /* Overlap with header */
  padding-top: 0;
  position: relative;
  z-index: 10;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-8);
  align-items: flex-start;
}

/* Contact Form */
.contact-form-card {
  background: var(--color-white);
  padding: var(--space-10);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-grey-100);
}

.contact-form-card h3 {
  color: var(--color-deep-blue);
  margin-bottom: var(--space-8);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  position: relative;
  padding-bottom: var(--space-4);
}

.contact-form-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-vibrant-orange);
}

.contact-form .form-label {
  color: var(--color-deep-blue);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.contact-form .form-control {
  background: var(--color-grey-50);
  border: 1px solid var(--color-grey-200);
  color: var(--color-deep-blue);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
}

.contact-form .form-control::placeholder {
  color: var(--color-grey-400);
}

.contact-form .form-control:focus {
  background: var(--color-white);
  border-color: var(--color-vibrant-orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

/* Fix dropdown select styling */
.contact-form select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23EB5E28' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  padding-right: 3rem;
}

.contact-form select.form-control option {
  background-color: var(--color-white);
  color: var(--color-deep-blue);
  padding: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-top: var(--space-12); /* Align with form due to overlapped header */
}

.contact-info-card {
  background: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-grey-100);
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  transition: all var(--duration-normal) var(--ease-out);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 122, 0, 0.3);
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 122, 0, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: var(--radius-lg);
  color: var(--color-vibrant-orange);
  border: 1px solid rgba(255, 122, 0, 0.1);
}

.contact-info-card h4 {
  font-size: var(--text-lg);
  color: var(--color-deep-blue);
  margin-bottom: var(--space-2);
  font-weight: var(--font-bold);
}

.contact-info-card p {
  color: var(--color-grey-600);
  margin-bottom: 0;
  line-height: var(--leading-relaxed);
}

.contact-info-card a {
  color: var(--color-grey-700);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info-card a:hover {
  color: var(--color-vibrant-orange);
}

/* Map Section */
.map-section {
  position: relative;
  margin-top: var(--space-20);
  border-top: 4px solid var(--color-vibrant-orange);
}

.map-wrapper {
  position: relative;
  height: 500px;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  filter: grayscale(100%) contrast(1.1);
  opacity: 0.9;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 26, 63, 0.2) 0%,
    transparent 50%,
    rgba(10, 26, 63, 0.2) 100%
  );
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .contact-section {
    margin-top: 0;
    padding-top: var(--space-16);
  }

  .contact-info {
    padding-top: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-header {
    padding: 140px 0 60px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: var(--space-6);
  }

  .contact-header h1 {
    font-size: var(--text-3xl);
  }
}
