/* Reacties op wijkoverleggen - Bewonersorganisatie Transvaal
   Let op: selectors zijn expres specifiek (element + klasse) omdat de
   Elementor-kit .elementor-kit-21 h2 / button / a overschrijft. */

.bot-reacties {
  --bot-blauw: #23235B;
  --bot-oranje: #E8770D;
  --bot-oranje-donker: #C9640A;
  --bot-tekst: #535353;
  --bot-grijs: #8F8F88;
  --bot-lijn: #E4E4DE;
  --bot-kop: "Merriweather Sans", "Helvetica Neue", Arial, sans-serif;
  --bot-body: "Poppins", "Helvetica Neue", Arial, sans-serif;

  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--bot-body);
  color: var(--bot-tekst);
  text-align: left;
  scroll-margin-top: 110px;
}

.bot-reacties *,
.bot-reacties *::before,
.bot-reacties *::after { box-sizing: border-box; }

.bot-reacties :focus-visible {
  outline: 2px solid var(--bot-oranje);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Kop ---------- */

.bot-reacties h2.bot-reacties__titel {
  font-family: var(--bot-kop);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--bot-blauw);
  margin: 0;
}

.bot-reacties h2.bot-reacties__titel span { color: var(--bot-grijs); font-weight: 400; }

/* ---------- Wie reageerden ---------- */

.bot-reacties .bot-deelnemers {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.bot-reacties .bot-deelnemers__rij { display: flex; }
.bot-reacties .bot-deelnemers__rij > * + * { margin-left: -8px; }

.bot-reacties p.bot-deelnemers__tekst {
  font-size: 14px;
  line-height: 1.5;
  color: var(--bot-grijs);
  margin: 0;
}
.bot-reacties p.bot-deelnemers__tekst strong { color: var(--bot-tekst); font-weight: 500; }

.bot-reacties .bot-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-family: var(--bot-kop);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--bot-blauw);
  user-select: none;
}

.bot-reacties .bot-avatar--klein {
  width: 30px;
  height: 30px;
  font-size: 11px;
  box-shadow: 0 0 0 2px #F6F6F4;
}
.bot-reacties .bot-avatar--rest { background: #DCDCD4; color: var(--bot-blauw); }

/* ---------- Reacties ---------- */

.bot-reacties ol.bot-reacties__lijst {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-reacties .bot-reactie { scroll-margin-top: 110px; }

.bot-reacties .bot-reactie__kaart {
  display: flex;
  gap: 15px;
  padding: 22px 24px;
  background: #fff;
  border-radius: 16px;
}

.bot-reacties .bot-reactie__inhoud { flex: 1 1 auto; min-width: 0; }

.bot-reacties .bot-reactie__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}

.bot-reacties .bot-reactie__naam {
  font-size: 15px;
  font-weight: 600;
  color: var(--bot-blauw);
}

.bot-reacties .bot-reactie__tijd { font-size: 13px; color: var(--bot-grijs); }

.bot-reacties .bot-badge {
  font-family: var(--bot-kop);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  line-height: 1;
}
.bot-reacties .bot-badge--bot { background: var(--bot-blauw); color: #fff; }
.bot-reacties .bot-badge--wacht { background: rgba(232, 119, 13, .14); color: #A85708; }

.bot-reacties .bot-reactie__tekst { font-size: 15.5px; line-height: 1.7; color: var(--bot-tekst); }
.bot-reacties .bot-reactie__tekst p { margin: 0 0 10px; color: var(--bot-tekst); }
.bot-reacties .bot-reactie__tekst p:last-child { margin-bottom: 0; }
.bot-reacties .bot-reactie__tekst a { color: var(--bot-oranje); text-decoration: underline; word-break: break-word; }

.bot-reacties button.bot-antwoordlink {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--bot-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bot-oranje);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
}
.bot-reacties button.bot-antwoordlink:hover,
.bot-reacties button.bot-antwoordlink:focus {
  color: var(--bot-oranje-donker);
  background: none;
  text-decoration: underline;
}

/* ---------- Antwoorden ---------- */

.bot-reacties ol.bot-reactie__antwoorden {
  list-style: none;
  margin: 12px 0 0 22px;
  padding: 0 0 0 22px;
  border-left: 2px solid #DEDED6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-reacties ol.bot-reactie__antwoorden .bot-reactie__kaart {
  background: #FBFBF8;
  padding: 18px 20px;
  gap: 13px;
}

.bot-reacties ol.bot-reactie__antwoorden .bot-reactie__naam { font-size: 14.5px; }
.bot-reacties ol.bot-reactie__antwoorden .bot-reactie__tekst { font-size: 15px; }

/* ---------- Nog geen reacties ---------- */

.bot-reacties p.bot-reacties__leeg {
  margin: 24px 0 0;
  padding: 22px 24px;
  background: #fff;
  border-radius: 16px;
  font-size: 15px;
  color: var(--bot-grijs);
}

/* ---------- Formulier ---------- */

.bot-reacties .bot-formulier-slot { margin-top: 28px; }

.bot-reacties .bot-formulier {
  background: #fff;
  border: 1px solid var(--bot-lijn);
  border-radius: 16px;
  padding: 26px;
}

.bot-reacties .bot-formulier__kop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.bot-reacties h3.bot-formulier__titel {
  font-family: var(--bot-kop);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--bot-blauw);
  margin: 0;
  line-height: 1.3;
}

.bot-reacties button.bot-formulier__annuleer {
  flex: none;
  font-family: var(--bot-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bot-grijs);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.bot-reacties button.bot-formulier__annuleer:hover,
.bot-reacties button.bot-formulier__annuleer:focus {
  color: var(--bot-oranje);
  background: none;
}

.bot-reacties .bot-velden { display: grid; gap: 12px; }
.bot-reacties .bot-velden__rij { display: grid; gap: 12px; }
@media (min-width: 620px) { .bot-reacties .bot-velden__rij { grid-template-columns: 1fr 1fr; } }

.bot-reacties input[type="text"],
.bot-reacties input[type="email"],
.bot-reacties textarea {
  display: block;
  width: 100%;
  font-family: var(--bot-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--bot-blauw);
  background: #FBFBF9;
  border: 1px solid var(--bot-lijn);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color .18s ease, background-color .18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.bot-reacties input::placeholder,
.bot-reacties textarea::placeholder { color: #A9A9A1; }

.bot-reacties input[type="text"]:focus,
.bot-reacties input[type="email"]:focus,
.bot-reacties textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--bot-oranje);
}

.bot-reacties textarea { min-height: 118px; resize: vertical; }

.bot-reacties .bot-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bot-reacties .bot-formulier__voet { margin-top: 18px; }

.bot-reacties button.bot-knop {
  display: inline-block;
  width: auto;
  font-family: var(--bot-kop);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: #fff;
  background: var(--bot-oranje);
  border: 0;
  border-radius: 100px;
  padding: 14px 30px;
  cursor: pointer;
  transition: background-color .18s ease;
}

.bot-reacties button.bot-knop:hover,
.bot-reacties button.bot-knop:focus {
  background: var(--bot-oranje-donker);
  color: #fff;
}
.bot-reacties button.bot-knop[disabled] { opacity: .6; cursor: progress; }

.bot-reacties button.bot-knop--leeg {
  color: var(--bot-blauw);
  background: transparent;
  border: 1px solid var(--bot-lijn);
  font-size: 13px;
  padding: 11px 22px;
}
.bot-reacties button.bot-knop--leeg:hover,
.bot-reacties button.bot-knop--leeg:focus {
  background: transparent;
  border-color: var(--bot-oranje);
  color: var(--bot-oranje);
}

.bot-reacties p.bot-formulier__voorwaarden {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--bot-grijs);
  margin: 14px 0 0;
}

/* ---------- Meldingen ---------- */

.bot-reacties .bot-melding {
  font-size: 14.5px;
  line-height: 1.6;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 0 0 16px;
}
.bot-reacties .bot-melding--fout { background: #FDECEC; color: #A32F2F; }
.bot-reacties .bot-melding--ok { background: #ECF7EF; color: #24693C; }
.bot-reacties .bot-melding[hidden] { display: none; }

.bot-reacties .bot-gelukt {
  background: #fff;
  border: 1px solid var(--bot-lijn);
  border-radius: 16px;
  padding: 26px;
}
.bot-reacties .bot-gelukt h3 {
  font-family: var(--bot-kop);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bot-blauw);
  margin: 0 0 8px;
  line-height: 1.3;
}
.bot-reacties .bot-gelukt p { font-size: 15px; line-height: 1.7; color: var(--bot-tekst); margin: 0; }
.bot-reacties .bot-gelukt button.bot-knop--leeg { margin-top: 18px; }

/* ---------- Teller op de overzichtskaart ---------- */

.elementor-widget-shortcode .bot-reactie-teller,
span.bot-reactie-teller {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #8F8F88;
}
.elementor-widget-shortcode .bot-reactie-teller svg,
span.bot-reactie-teller svg { width: 18px; height: 18px; flex: none; color: #E8770D; }

/* ---------- Klein scherm ---------- */

@media (max-width: 767px) {
  .bot-reacties .bot-reactie__tijd { flex: 0 0 100%; }
  .bot-reacties .bot-reactie__meta { row-gap: 3px; margin-bottom: 8px; }
  .bot-reacties .bot-reactie__kaart { padding: 18px; gap: 13px; }
  .bot-reacties .bot-avatar { width: 38px; height: 38px; font-size: 13px; }
  .bot-reacties ol.bot-reactie__antwoorden { margin-left: 6px; padding-left: 14px; }
  .bot-reacties .bot-formulier { padding: 20px 18px; }
  .bot-reacties button.bot-knop { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bot-reacties * { transition: none !important; }
}
