/* =========================================================
   hero-formulier.css – "Plan een gesprek"-formulier in de hero
   (overgenomen van /opdrachtgevers/plan-een-gesprek/, aangepast
   aan de huisstijl van de B2B-segmentpagina's)
========================================================= */

.rc-heroForm {
  --hf-accent: var(--rc-id-accent, #E25322);
  --hf-accent-dark: #c4451b;
  --hf-text: #3c2c2d;
  --hf-muted: #6b5f60;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--rc-id-border, rgba(0,0,0,.08));
  box-shadow: var(--rc-id-shadow, 0 4px 24px rgba(0,0,0,.08));
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--hf-text);
}

/* ── Vertrouwensregel onder de knoppen in de hero (document 2.1) ── */
.rc-id-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  font-family: "Montserrat", system-ui, sans-serif;
}
.rc-id-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--rc-id-accent, #E25322);
  background: rgba(226,83,34,.08);
  border: 1px solid rgba(226,83,34,.25);
  white-space: nowrap;
}
.rc-id-trust span::before { content: "✓"; font-weight: 900; }

/* ── Direct contact (accountmanager), overgenomen van plan-een-gesprek ── */
.rc-heroForm-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 16px;
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.rc-heroForm-avatarWrap {
  position: relative;
  width: 68px; height: 68px; flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--hf-accent);
  cursor: zoom-in;
  transition: box-shadow .15s;
}
.rc-heroForm-avatarWrap:hover,
.rc-heroForm-avatarWrap:focus-visible { box-shadow: 0 0 0 4px rgba(226,83,34,.18); outline: none; }
.rc-heroForm-avatar {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}
.rc-heroForm-avatarFallback {
  width: 100%; height: 100%;
  background: var(--hf-accent); color: #fff;
  font-size: 20px; font-weight: 800;
  align-items: center; justify-content: center;
}
.rc-heroForm-contactInfo { flex: 1; min-width: 0; }
.rc-heroForm-contactName { font-size: 1rem; font-weight: 800; color: var(--hf-text); line-height: 1.2; }
.rc-heroForm-contactRole { font-size: .78rem; font-weight: 700; color: var(--hf-accent); margin-bottom: 6px; }
.rc-heroForm-contactLinks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rc-heroForm-contactLinks a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 700; color: var(--hf-text);
  text-decoration: none; transition: color .15s;
}
.rc-heroForm-contactLinks a:hover { color: var(--hf-accent); }

/* Uitvergrote weergave van de foto */
.rc-heroForm-lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(10,10,15,.82);
  align-items: center; justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.rc-heroForm-lightbox.is-open { display: flex; }
.rc-heroForm-lightbox img {
  max-width: min(420px, 90vw);
  max-height: 80vh;
  width: auto; height: auto;
  border-radius: 16px;
  border: 4px solid var(--hf-accent);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.rc-heroForm-title {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 4px;
  color: var(--hf-text);
}
.rc-heroForm-hint {
  font-size: .9rem;
  font-weight: 600;
  color: var(--hf-muted);
  margin: 0 0 18px;
}

.rc-heroForm-error {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #dc2626;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.rc-heroForm-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.rc-heroForm-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.rc-heroForm-row2 .rc-heroForm-field { margin-bottom: 0; }

.rc-heroForm-field label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--hf-text);
}
.rc-heroForm-field .req { color: var(--hf-accent); }

.rc-heroForm-field input {
  border: 1.5px solid rgba(0,0,0,.13);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 16px; /* 16px voorkomt inzoomen op iOS */
  font-family: inherit;
  font-weight: 600;
  color: var(--hf-text);
  background: #fff;
  outline: none;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.rc-heroForm-field input::placeholder { font-weight: 500; color: #9a8f90; }
.rc-heroForm-field input:focus {
  border-color: var(--hf-accent);
  box-shadow: 0 0 0 3px rgba(226,83,34,.12);
}

.rc-heroForm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--hf-muted);
  margin: 4px 0 14px;
  cursor: pointer;
  line-height: 1.5;
}
.rc-heroForm-check input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--hf-accent);
  width: 18px; height: 18px; min-width: 18px;
}
.rc-heroForm-check a { color: var(--hf-accent); text-decoration: none; }
.rc-heroForm-check a:hover { text-decoration: underline; }

.rc-heroForm-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--hf-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: .95rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, transform .12s;
}
.rc-heroForm-submit:hover { background: var(--hf-accent-dark); transform: translateY(-1px); }
.rc-heroForm-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.rc-heroForm-usps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--hf-muted);
}

@media (max-width: 520px) {
  .rc-heroForm { padding: 20px 16px; }
  .rc-heroForm-row2 { grid-template-columns: 1fr; }
}

/* ── Vaste balk onderaan op mobiel (document 2.4): "Bellen" + "Plan een gesprek" ── */
.rc-mobileBar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 -4px 18px rgba(0,0,0,.08);
  font-family: "Montserrat", system-ui, sans-serif;
}
.rc-mobileBar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--rc-id-accent, #E25322);
}
.rc-mobileBar-call { background: #fff; color: var(--rc-id-accent, #E25322); }
.rc-mobileBar-plan { background: var(--rc-id-accent, #E25322); color: #fff; }
@media (max-width: 980px) {
  .rc-mobileBar { display: flex; }
  body.has-mobileBar { padding-bottom: 72px; }
  /* chatknop boven de balk zetten, anders overlapt hij "Plan een gesprek"
     (de chatwidget zet zijn vaste positie inline op een naamloze wrapper-div) */
  body.has-mobileBar div:has(> .rc-chat-btn) { bottom: 84px !important; }
  body.has-mobileBar div:has(> .rc-chat-panel) { bottom: 84px !important; }
}
