/* GROUPS: 50+ pins and the enquiry form */
.groups { background: var(--paper); overflow: clip; padding-block: clamp(64px, 6vw, 96px); }
.groups__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 2.4vw, 36px); align-items: stretch; }
.groups__panel {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: clamp(28px, 3vw, 44px);
  border-radius: var(--r); overflow: hidden; min-height: 100%;
  background: radial-gradient(80% 60% at 80% 0%, rgba(11, 143, 227, .35), transparent 70%), var(--ink);
}
.groups__panel::before { /* a faint street grid behind the pins */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 46px 46px; animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift { to { background-position: 46px 46px; } }
.groups__crowd { position: relative; width: 100%; max-width: 460px; height: auto; margin-bottom: auto; overflow: visible; }
.groups__panel h2 { position: relative; font-size: clamp(2rem, 3vw, 3rem); }
.groups__panel .lede { position: relative; }

.groups__formwrap { position: relative; }
.gform, .gform__done { height: 100%; background: var(--sky); border-radius: var(--r); padding: clamp(24px, 2.8vw, 40px); }
.gform { display: grid; gap: 16px; align-content: start; }
.gform[hidden] { display: none; }
.gform__title { font-size: clamp(1.4rem, 1.8vw, 1.75rem); margin-bottom: 4px; }
.gform__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: .95rem; }
.field label small { font-weight: 500; color: var(--grey); font-size: .9rem; }
.field label span { color: var(--orange-deep); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  font-size: 1rem; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 143, 227, .15); }
.field.is-bad input { border-color: #d6452f; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: .98rem; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 28px; height: 28px; margin: 0; }
.check__box { width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 0 9px 0 0; background: var(--paper); display: grid; place-items: center; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.check__box::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .3s var(--ease); }
.check input:checked + .check__box { background: var(--lime); border-color: var(--lime); }
.check input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--blue); outline-offset: 2px; }
.check > span:last-child span { color: var(--orange-deep); }
.gform__error { color: #b3321f; font-weight: 600; }
.gform__send { justify-self: start; }
.gform__send[disabled] { opacity: .7; cursor: progress; }
.gform__done { display: grid; align-content: center; justify-items: start; gap: 14px; }
.gform__done[hidden] { display: none; }
.gform__tick { width: 72px; height: 72px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.gform__tick svg { width: 36px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gform__done h3 { font-size: clamp(1.8rem, 2.4vw, 2.2rem); }

@media (max-width: 960px) {
  .groups__grid { grid-template-columns: minmax(0, 1fr); }
  .groups__panel { min-height: 0; }
  .groups__crowd { max-width: 360px; margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .gform__row { grid-template-columns: minmax(0, 1fr); }
}
