/* css/pages/contact.css
   Contact-specific sections: the department "channel" cards, the
   general-inquiry form (the .portal, from components/forms.css), and the
   headquarters location panel. Tokens and shared components come from
   base.css / components/. */

/* ------------------------------------------------------------
   Channels table — one row per team (Reference Lab, CRO Services,
   Media & Partnerships), with columns for what the team handles and
   its contact lines. Wrapped so it scrolls horizontally on narrow
   viewports instead of forcing the page wider.
   ------------------------------------------------------------ */
.channels-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 32px -20px rgba(32, 38, 94, 0.35);
}
.channels-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
.channels-table th,
.channels-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.channels-table tbody tr:last-child th,
.channels-table tbody tr:last-child td {
  border-bottom: 0;
}
/* Column header row — mono, uppercase label language shared with the
   rest of the page. */
.channels-table thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: var(--blue);
  white-space: nowrap;
}
/* Team name — the row header, carries the display face and brand blue. */
.channels-table tbody th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--blue-deep);
  white-space: nowrap;
}
.channels-table td { color: var(--ink); }
.channels-table tbody tr {
  transition: background-color 0.14s ease;
}
.channels-table tbody tr:hover {
  background: var(--wash, rgba(32, 38, 94, 0.03));
}
.channels-table a {
  color: var(--blue);
  border-bottom: 1px solid transparent;
  overflow-wrap: anywhere;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.channels-table a:hover {
  color: var(--teal);
  border-color: var(--teal);
}
.channels-table .is-empty {
  color: var(--muted);
}

/* ------------------------------------------------------------
   Contact-form flash — the confirmation shown after a successful
   submit (Django messages framework). Sits above the form.
   ------------------------------------------------------------ */
.form-flash-list {
  margin-bottom: 22px;
}
.form-flash {
  margin: 0 0 10px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.form-flash:last-child { margin-bottom: 0; }
/* Success gets the "live / reachable" teal used across the site. */
.form-flash.success {
  border-color: var(--teal);
  border-left: 3px solid var(--teal);
  color: var(--blue-deep);
}
.form-flash.error {
  border-color: #c0392b;
  border-left: 3px solid #c0392b;
  color: #c0392b;
}

/* ------------------------------------------------------------
   Location — the Google embed muted into the brand palette, beside
   the address details. One card, split map / info.
   ------------------------------------------------------------ */
.location-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 14px 32px -20px rgba(32, 38, 94, 0.35);
}
.location-map {
  position: relative;
  min-height: 340px;
  background: linear-gradient(155deg, var(--blue-deep), var(--ink));
}
/* Fill the panel cell and mute the raw Google embed so it sits inside
   the brand palette rather than fighting it. Colour returns on hover. */
.location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.92) brightness(0.96);
  transition: filter 0.4s ease;
}
.location-map:hover iframe { filter: none; }
/* Deep-blue tint tying the map to the palette; sits above the map but
   never swallows clicks, and clears on hover with the grayscale. */
.location-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--blue-deep);
  mix-blend-mode: color;
  opacity: 0.45;
  transition: opacity 0.4s ease;
}
.location-map:hover::after { opacity: 0; }
/* HQ coordinates as a mono chip — echoes the instrument-reading feel
   of the rest of the site and reads on the tinted map. */
.location-coords {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(32, 38, 94, 0.8);
}
.location-info {
  display: flex;
  flex-direction: column;
  padding: 40px;
}
.location-info h3 {
  margin: 0 0 14px;
  font-size: 21px;
  color: var(--blue-deep);
}
.location-address {
  margin: 0 0 26px;
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
/* Reuses the channel-line label treatment for office hours / front
   desk, keeping one label language across the page. */
.location-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}
.location-info .btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 760px) {
  .location-panel { grid-template-columns: 1fr; }
  .location-info { padding: 30px 26px; }
}
