/* "Over Connect"-modal (component): appinformatie + hulp/contact, geopend via de
   versieknop onderin de zijbalk. Vlakke kaart, 1px-rand, geen accentbalk. */
.overmodal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.overmodal__scrim { position: absolute; inset: 0; background: rgba(28, 42, 57, .45); }
/* Maat + frame uit de gedeelde utility (.modal-venster --middel, modal.css): een
   VASTE maat = stilstaand venster terwijl de 3 stappen (keuze/formulier/klaar)
   binnen .overmodal__inhoud (de .modal-body) wisselen en scrollen. De lokale
   tokens houden de eigen, compacte breedte en een rustige vaste hoogte. */
.overmodal__venster {
  position: relative;
  --modal-w-middel: min(480px, calc(100vw - 32px));
  /* Hoogte = de hoogste van de 3 stappen (stap 1: keuze) zodat die volledig past
     en de body niet hoeft te scrollen; smal scherm valt terug op de viewport. */
  --modal-h-middel: min(476px, calc(100dvh - 8vh));
}
.overmodal__kop {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.overmodal__kop h2 { margin: 0; font-size: 1.05rem; color: var(--blue-700); }
.overmodal__inhoud { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }

/* Appblok: wordmerk + versie, rustig gecentreerd. */
.overmodal__app { text-align: center; padding: 4px 0 10px; border-bottom: 1px solid var(--line); }
.overmodal__app .app-naam { font-size: 1.6rem; }
.overmodal__sub { margin: 2px 0 0; font-size: var(--fs-data); color: var(--ink-900); }
.overmodal__versie { margin: 2px 0 0; font-size: var(--fs-data); color: var(--muted); text-transform: lowercase; }

/* Hulpblok: contact van de beheerder + de drie keuzeknoppen. */
.overmodal__hulp { display: flex; flex-direction: column; gap: 10px; }
.overmodal__hulp h3 { margin: 0; font-size: .95rem; color: var(--blue-700); }
.overmodal__contact { margin: 0; font-size: var(--fs-data); color: var(--ink-900); line-height: 1.5; }
.overmodal__keuzes { display: flex; flex-direction: column; gap: 8px; }
.overmodal__keuze {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.overmodal__keuze:hover { background: var(--bg-50); border-color: var(--blue-700); }
.overmodal__keuze:focus-visible { outline: 2px solid var(--blue-100); outline-offset: 0; border-color: var(--blue-700); }
.overmodal__keuze-icoon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-50);
  border: 1px solid var(--line);
  color: var(--blue-700);
}
.overmodal__keuze-icoon svg { width: 18px; height: 18px; }
.overmodal__keuze-tekst { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.overmodal__keuze-tekst strong { font-size: var(--fs-data); color: var(--ink-900); }
.overmodal__keuze-tekst small { font-size: var(--fs-data); color: var(--muted); }
.overmodal__keuze-pijl { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); }

/* Invulformulier (stap 2): de vakken van de gekozen soort, versturen binnen Connect. */
.overmodal__form { display: flex; flex-direction: column; gap: 12px; }
.overmodal__form h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1rem;
  color: var(--ink-900);
}
.overmodal__veld { display: flex; flex-direction: column; gap: 4px; }
.overmodal__veld > span { font-size: var(--fs-data); font-weight: 600; color: var(--ink-900); }
.overmodal__veld textarea {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--fs-data);
  color: var(--ink-900);
  background: var(--paper);
  resize: vertical;
}
.overmodal__veld textarea:focus { outline: 2px solid var(--blue-100); outline-offset: 0; border-color: var(--blue-700); }
.overmodal__hint { margin: 0; font-size: var(--fs-data); color: var(--muted); }
.overmodal__fout { margin: 0; font-size: var(--fs-data); color: var(--err); }
.overmodal__acties { display: flex; justify-content: flex-end; gap: 10px; }
/* Compacte knoppen in de popup (uniforme popup-maat). */
.overmodal__acties .btn { padding: 5px 12px; font-size: .8rem; }

/* Bevestiging (stap 3): rustig gecentreerd, met een groen vinkje. */
.overmodal__klaar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  text-align: center;
}
.overmodal__klaar-icoon { color: var(--ok); }
.overmodal__klaar-icoon svg { width: 36px; height: 36px; }
.overmodal__klaar h3 { margin: 0; font-size: 1.05rem; color: var(--ink-900); }
.overmodal__klaar p { margin: 0 0 6px; font-size: var(--fs-data); color: var(--ink-900); line-height: 1.5; }
