/* « Contact us » (spec 083): three direct ways in, the message on the left, the workshop on its map
   on the right. White cards on white, the site's navy and blue (spec 080). */
.pm-contact { --pmx-navy: #0b2545; --pmx-blue: var(--pmc-blue, #1a73e8); --pmx-line: #e1e6ee; --pmx-muted: #5f6368;
  display: grid; gap: 1.6rem; margin-top: -1rem; }
.pm-contact__lead { margin: 0; max-width: 46rem; font-size: 1.05rem; color: var(--pmx-muted); }

/* The three direct ways */
.pm-contact__quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pm-quick { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 16px; background: #fff;
  border: 1px solid var(--pmx-line); color: var(--pmx-navy); text-decoration: none;
  box-shadow: 0 1px 2px rgba(11, 37, 69, .05), 0 6px 18px rgba(11, 37, 69, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pm-quick:hover { transform: translateY(-3px); border-color: rgba(26, 115, 232, .45); box-shadow: 0 14px 30px rgba(11, 37, 69, .1); }
.pm-quick svg { flex: none; width: 2.8rem; height: 2.8rem; padding: .65rem; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 30% 25%, #3d8bfd, #1a73e8 55%, #0b2545); }
.pm-quick span { min-width: 0; display: grid; }
.pm-quick b { font-size: .98rem; }
.pm-quick small { color: var(--pmx-muted); font-size: .86rem; overflow-wrap: anywhere; }

/* The two cards */
.pm-contact__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.pm-contact__card { background: #fff; border: 1px solid var(--pmx-line); border-top: 3px solid var(--pmx-blue); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(11, 37, 69, .05), 0 10px 30px rgba(11, 37, 69, .06); overflow: hidden; }
.pm-contact__card > form, .pm-contact__card > .pm-contact__head { padding-left: 1.5rem; padding-right: 1.5rem; }
.pm-contact__head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding-top: 1.3rem; }
.pm-contact__head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; color: var(--pmx-navy); }

/* « Let the AI write it » */
.pm-contact__ai { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(26, 115, 232, .35); background: rgba(26, 115, 232, .06); color: var(--pmx-blue);
  font: inherit; font-size: .88rem; font-weight: 600; transition: background .2s, color .2s, transform .2s; }
.pm-contact__ai[hidden] { display: none; }
.pm-contact__ai svg { width: 1.05rem; height: 1.05rem; fill: currentColor; stroke: none; }
.pm-contact__ai:hover { background: var(--pmx-blue); color: #fff; transform: translateY(-1px); }

/* The form */
.pm-contact__form { display: grid; gap: .95rem; padding-top: 1rem; padding-bottom: 1.5rem; }
.pm-contact__topics { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.pm-contact__topics legend { width: 100%; margin-bottom: .45rem; font-size: .95rem; font-weight: 600; color: var(--pmx-muted); }
.pm-topic input { position: absolute; opacity: 0; pointer-events: none; }
.pm-topic span { display: inline-block; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--pmx-line); background: #fff;
  font-size: .9rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pm-topic span:hover { border-color: var(--pmx-blue); }
.pm-topic input:checked + span { background: var(--pmx-navy); border-color: var(--pmx-navy); color: #fff; }
.pm-topic input:focus-visible + span { box-shadow: 0 0 0 3px rgba(26, 115, 232, .3); }
.pm-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.pm-contact .pm-field { display: grid; gap: .3rem; position: relative; }
.pm-contact .pm-field > span { font-size: .82rem; font-weight: 600; color: #3c4043; }
.pm-contact .pm-field input, .pm-contact .pm-field textarea { width: 100%; box-sizing: border-box; padding: .7rem .85rem; border: 1px solid #d5dce6;
  border-radius: 12px; font: inherit; font-size: .95rem; background: #fbfcfe; transition: border-color .15s, box-shadow .15s, background .15s; }
.pm-contact .pm-field textarea { resize: vertical; min-height: 8.5rem; line-height: 1.5; }
.pm-contact .pm-field input:focus, .pm-contact .pm-field textarea:focus { outline: none; background: #fff; border-color: var(--pmx-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .16); }
.pm-contact__count { justify-self: end; font-size: .75rem; color: var(--pmx-muted); }
.pm-contact__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pm-contact__consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: #3c4043; }
.pm-contact__consent input { margin-top: .2rem; accent-color: var(--pmx-blue); }
.pm-contact__status { margin: 0; min-height: 1.2rem; font-size: .9rem; }
.pm-contact__status.is-sent { padding: .8rem 1rem; border-radius: 12px; background: #e8f5ec; color: #146c2e; }
.pm-contact__status.is-error { color: #c5221f; }

/* The workshop */
/* Its own stacking plane: Leaflet's layers (z-index up to 1000) stay under the assistant's window */
.pm-contact__map { position: relative; z-index: 0; isolation: isolate; height: 320px; background: #e9eef5; }
.pm-contact__map .leaflet-control-attribution { font-size: .68rem; }
.pm-contact__where { padding: 0 1.5rem 1.4rem; }
.pm-contact__where .pm-contact__head { padding-top: 1.2rem; }
.pm-contact__address { margin: .35rem 0 1rem; color: #3c4043; }
.pm-open { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: #fce8e6; color: #b3261e; }
.pm-open::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.pm-open.is-open { background: #e6f4ea; color: #137333; }
.pm-open.is-open::before { animation: pm-open 1.6s ease-in-out infinite; }
@keyframes pm-open { 50% { opacity: .35; } }
.pm-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; font-size: .9rem; }
.pm-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem .7rem; border-radius: 8px; }
.pm-hours li span { color: var(--pmx-muted); }
.pm-hours li.is-today { background: rgba(26, 115, 232, .07); }
.pm-hours li.is-today span, .pm-hours li.is-today b { color: var(--pmx-navy); font-weight: 700; }

/* The workshop's pin: the site's blue, a ring that breathes around it */
.pm-pin { position: relative; }
.pm-pin__dot { position: absolute; inset: 6px; display: grid; place-items: center; border-radius: 50%; border: 3px solid #fff;
  background: radial-gradient(circle at 30% 25%, #3d8bfd, #1a73e8 55%, #0b2545); box-shadow: 0 6px 16px rgba(11, 37, 69, .35); }
.pm-pin__dot svg { width: 60%; height: 60%; fill: none; stroke: #fff; stroke-width: 2.2; }
.pm-pin__pulse { position: absolute; inset: 0; border-radius: 50%; background: rgba(26, 115, 232, .35); animation: pm-pulse 2.2s ease-out infinite; }
@keyframes pm-pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }

@media (max-width: 900px) {
  .pm-contact__quick, .pm-contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pm-contact__row { grid-template-columns: 1fr; }
  .pm-contact__card > form, .pm-contact__card > .pm-contact__head, .pm-contact__where { padding-left: 1.1rem; padding-right: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-pin__pulse, .pm-open.is-open::before { animation: none; }
  .pm-quick, .pm-contact__ai { transition: none; }
}
