/* ============================================================
   WOODLEY COLLISION — CONTACT PAGE
   Reuses the shared form-section, FAQ section, and CTA banner.
   This file adds: the map section, and a few contact-specific
   overrides (page-sized form heading, section spacing).
   ============================================================ */

/* ---- Contact form: page-sized heading + tighter bottom ---- */
.form-section--contact { padding-bottom: 60px; }
.form-section--contact .form-section__title {
  font-size: clamp(2.5rem, 1.6rem + 2.8vw, 3.875rem);   /* 40 -> 62px */
  line-height: 1.06;
}
@media (max-width: 860px) {
  .form-section--contact { padding-bottom: 60px; }
  .form-section--contact .form-section__title {
    font-size: clamp(2.125rem, 1.75rem + 1.6vw, 2.25rem);
    line-height: 1.1;
  }
}

/* ---- Map section ---- */
.map-section {
  padding-block: 60px;
}
.map-section__inner {
  max-width: var(--container-outer);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--sp-36);
}
.map-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-24);
}
.map-section__heading {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  max-width: 600px;
}
.map-section__title {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);   /* 28 -> 36px */
  font-weight: 600;
  line-height: 1.22;
  color: var(--gray-900);
}
.map-section__subtitle {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: #555;
}
.map-section__cta { flex-shrink: 0; }
.map-section__cta--mobile { display: none; }

/* The map itself */
.map-section__map {
  position: relative;
  height: 400px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--gray-50);
}
.map-section__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(1.05);
}

/* Floating address card — top-right: Google's embed draws its own place
   card top-left, so keeping ours on the opposite corner avoids two
   stacked link cards. */
.map-card {
  position: absolute;
  top: var(--sp-24);
  right: var(--sp-24);
  max-width: calc(100% - var(--sp-48));
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  padding: var(--sp-12) var(--sp-16);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.map-card__address {
  font-size: var(--fs-body);    /* 16px */
  font-weight: 500;
  line-height: var(--lh-snug);
  color: var(--gray-900);
}
.map-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: var(--fs-body-s);  /* 14px */
  font-weight: 500;
  line-height: 1.571;
  color: var(--color-red);
  transition: opacity var(--dur) var(--ease);
}
.map-card__link:hover { opacity: 0.75; }
.map-card__link svg { width: 16px; height: 16px; }

/* ---- FAQ on the contact page: 60px top (map pads 60 below) ---- */
.faq-section--contact { padding-top: 60px; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 600px) {
  .map-section { padding-block: 36px; }
  .map-section__head { flex-direction: column; align-items: stretch; }
  .map-section__heading { max-width: none; }
  .map-section__title { font-size: 1.75rem; line-height: 1.143; }   /* 28px */

  /* CTA below the map on mobile */
  .map-section__head { order: 0; }
  .map-section__map { order: 1; border-radius: 24px; }
  .map-section__cta { display: none; }
  .map-section__cta--mobile { display: block; order: 2; }
  .map-section__cta--mobile .btn { width: 100%; justify-content: space-between; }
  .map-section__inner { display: flex; flex-direction: column; }
}
