/* =========================================================
   CONTACT PAGE
   Reuses the form panel + field styles from apply.css.
========================================================= */

.contact-hero .display {
  max-width: 14ch;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

/* Details column */
.contact-list {
  border-top: 1px solid var(--ink);
}

.contact-list > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dd {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact-list dd span {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-list a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--hl), var(--hl));
  background-repeat: no-repeat;
  background-position: 0 90%;
  background-size: 0% 40%;
  transition: background-size 0.4s var(--ease);
}

.contact-list a:hover {
  background-size: 100% 40%;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-social svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.contact-book {
  margin-top: 36px;
}

.contact-book p:not(.kicker) {
  margin: 8px 0 14px;
  color: var(--muted);
  max-width: 40ch;
}

/* Form panel */
.contact-form .step-title {
  margin-bottom: 8px;
}

.contact-form .step-hint {
  margin-bottom: 24px;
}

.contact-who {
  margin-bottom: 22px;
}

.contact-who .field-label {
  margin-bottom: 10px;
}

.contact-who .choices--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-message {
  margin-top: 20px;
}

.contact-form .apply-nav {
  margin-top: 24px;
}

/* Map */
.contact-map-block .kicker {
  margin-bottom: 16px;
}

/* A plain height (not aspect-ratio + min-height, which forces a min width) */
.contact-map {
  height: clamp(300px, 34vw, 460px);
  border: 1px solid var(--ink);
  background: var(--paper-2);
}

/* Placeholder until the map is requested: graph paper with a pin */
.map-load {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  background-color: var(--card);
  background-image:
    linear-gradient(rgba(27, 26, 23, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 26, 23, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.map-pin {
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  background: var(--hl);
  border: 2px solid var(--ink);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  transition: transform 0.35s var(--ease);
}

.map-load:hover .map-pin {
  transform: rotate(-45deg) translate(2px, -2px);
}

.map-load-label {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
}

.map-load-sub {
  font-size: 0.86rem;
  color: var(--muted);
}

.map-load:hover .map-load-label {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* Calm the default map colours toward the paper palette */
  filter: grayscale(0.55) sepia(0.12) contrast(0.96);
}

.contact-map-note {
  margin-top: 14px;
  color: var(--muted);
  max-width: 62ch;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

}

/* The form panel runs edge to edge on phones (shared apply.css rule);
   clip sub-pixel rounding so the page never scrolls sideways */
.contact-main {
  overflow-x: clip;
}
