/* @import url('./main.css'); */

/* Contact page specific styles */
.contact-form {
  background: #f7fbff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30, 60, 120, 0.06);
  padding: 2rem;
  max-width: 500px;
  margin: 2rem auto;
}

.contact-form label {
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1.2rem;
}

.contact-form button {
  width: 100%;
}

.hero-section {
  background: url('../images/Hero Backgrounds/contact_bg.png') center center/cover no-repeat;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-section .hero-container,
.hero-section .hero-content {
  position: relative;
  z-index: 2;
}

.hero-title,
.hero-subtitle,
.hero-description {
  color: #1a237e;
}

.contact-row {
  display: flex;
  flex-direction: row;
  gap: 32px;
  margin-bottom: 32px;
}

.contact-row>.contact-sidebar {
  flex: 0 0 320px;
  min-width: 260px;
}

.contact-row>.map-container {
  flex: 1 1 0;
  min-width: 250px;
}

/* 4-column layout for contact form section */
.contact-4col-row {
  display: flex;
  flex-direction: row;
  gap: 170px;
  margin-bottom: 32px;
}

.contact-4col-row>.contact-col {
  flex: 1 1 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.contact-4col-row .contact-form-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Contact grid in a row */
.contact-grid {
  display: flex;
  flex-direction: row;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.contact-card {
  flex: 1 1 0;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 1400px) {
  .contact-4col-row {
    flex-wrap: wrap;
  }

  .contact-4col-row>.contact-col {
    min-width: 320px;
    flex: 1 1 45%;
  }
}

@media (max-width: 900px) {
  .contact-4col-row {
    flex-direction: column;
    gap: 20px;
  }

  .contact-4col-row>.contact-col {
    min-width: 0;
    width: 100%;
  }
  .contact-grid {
    flex-direction: column;
    gap: 20px;
  }
  .contact-card {
    min-width: 0;
    width: 100%;
  }
}