/* Contact page layout */
.contact-page {
  max-width: 1200px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}
.contact-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}

/* Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr; /* map takes 2x the width of contact info */
  gap: 1rem;                      /* spacing between columns */
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}

/* Cards */
.card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.card h2 {
  margin-bottom: .75rem;
}

/* Contact list */
.contact-list {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .5rem 0;
  line-height: 1.6;
}
.contact-list i { width: 20px; text-align: center; }

/* Form */
.contact-form {
  display: grid;
  gap: .6rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .7rem .8rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #1d4e89;
}
.btn-primary {
  border: 0;
  border-radius: 10px;
  padding: .8rem 1rem;
  font-weight: 700;
  cursor: pointer;
  background: #1d4e89;
  color: #fff;
}
.form-response { margin-top: .5rem; }

/* Map */
.map-card h2 { margin-bottom: .75rem; }
.map-wrap {
  position: relative;
  padding-bottom: 56.5%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-note {
  margin-top: .6rem;
  color: #555;
}

/* Default: responsive 16:9 for phones/tablets */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

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

/* Desktop: make it taller and keep full width */
@media (min-width: 1024px) {
  .map-container {
    height: 520px;     /* <-- adjust to taste: 480, 560, 600 */
    padding-bottom: 0; /* override the 16:9 padding */
  }
  .map-container iframe {
    height: 100%;
  }
}

.btn-appointment {
  display: inline-block;
  background-color: #007bff; /* Blue */
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-appointment:hover {
  background-color: #0056b3; /* Darker blue */
  transform: translateY(-2px);
}

/* Desktop-only adjustments */
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(320px, 1fr) minmax(600px, 2fr); /* wider map column */
    gap: 1.25rem;
  }

  .contact-grid .card {
    width: 100%;
    max-width: none; /* let cards fill their grid space */
    margin: 0;
  }

  .contact-left,
  .contact-right {
    min-width: 0;
  }
}

/* Hide nav on mobile */
.nav {
  display: none;
}

.nav.active {
  display: block;
}

.nav-toggle {
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* Example: on desktop, always show nav */
@media (min-width: 768px) {
  .nav {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
}
