/* Maxijob — gedeeld door alle ontwerpen: letters, kleuren, de
   ontwerpschakelaar (js/wissel.js) en de basis van de chat (js/chat.js). */

@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --mx-navy: #07284E;
  --mx-diep: #041A33;
  --mx-blauw: #1453DB;
  --mx-blauw-donker: #0C4090;
  --mx-goud: #E6A726;
  --mx-grijs: #F2F5FA;
  --mx-tekst: #0F172A;
  --mx-zacht: #475569;
  --mx-rand: #E2E8F0;
}

/* Ontwerpschakelaar */
.mxw, .mxw__open {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  font-family: 'Montserrat', system-ui, sans-serif;
  box-shadow: 0 8px 24px rgba(4, 26, 51, .28);
}
.mxw {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 14px;
  background: var(--mx-diep);
  color: #FFFFFF;
  border-radius: 999px;
  font-size: 13px;
}
.mxw[hidden], .mxw__open[hidden] { display: none; }
.mxw__label { font-weight: 600; color: #8FA3BF; margin-right: 4px; }
.mxw__keuze {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}
.mxw__keuze:hover { background: #12305A; color: #FFFFFF; }
.mxw__keuze[aria-current] { background: var(--mx-goud); color: var(--mx-diep); }
.mxw__naam { font-weight: 600; padding: 0 8px; white-space: nowrap; }
.mxw__alle { color: var(--mx-goud); font-weight: 700; padding: 0 8px; text-decoration: none; }
.mxw__alle:hover { color: #FFFFFF; text-decoration: underline; }
.mxw__dicht, .mxw__open {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.mxw__dicht {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #12305A;
  color: #C7D2E3;
  font-size: 18px;
  line-height: 1;
}
.mxw__dicht:hover { background: #1E3A5F; color: #FFFFFF; }
.mxw__open {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--mx-diep);
  color: var(--mx-goud);
  font-size: 15px;
  opacity: .85;
}
.mxw__open:hover { opacity: 1; }
.mxw :focus-visible, .mxw__open:focus-visible { outline: 3px solid var(--mx-goud); outline-offset: 2px; }
@media (max-width: 860px) {
  .mxw, .mxw__open { left: 12px; bottom: 12px; }
  .heeft-belbalk .mxw, .heeft-belbalk .mxw__open { bottom: 96px; }
  .mxw__naam { display: none; }
}
@media (max-width: 560px) {
  /* Zeven ontwerpen: compacter, zodat de chatknop rechts vrij blijft. */
  .mxw { gap: 0; padding: 4px 4px 4px 8px; font-size: 12px; }
  .mxw__label { display: none; }
  .mxw__keuze, .mxw__dicht { width: 28px; height: 28px; }
  .mxw__alle { padding: 0 6px; }
}

[hidden] { display: none !important; }
.verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Chatknop rechtsonder met venster (ontwerp 1 en 2) */
.mxchat {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: 'Montserrat', system-ui, sans-serif;
}
.mxchat__knop {
  width: 60px; height: 60px;
  border: 0; border-radius: 50%;
  background: var(--mx-blauw);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(20, 83, 219, .45);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mxchat__knop:hover { background: var(--mx-blauw-donker); }
.mxchat__knop svg { width: 26px; height: 26px; }
.mxchat__venster {
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(7, 40, 78, .28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mxchat__venster[hidden] { display: none; }
.mxchat__kop { background: var(--mx-navy); color: #FFFFFF; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.mxchat__kop div { display: flex; flex-direction: column; line-height: 1.25; }
.mxchat__kop span { font-size: 12px; color: #C7D2E3; }
.mxchat__log { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #F7F9FC; max-height: 300px; min-height: 120px; overflow-y: auto; }
.mxchat__snel { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: #F7F9FC; }
.mxchat__snel button {
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--mx-blauw); background: #FFFFFF;
  border: 1px solid var(--mx-blauw); border-radius: 999px;
  padding: 6px 12px; cursor: pointer;
}
.mxchat__snel button:hover { background: var(--mx-blauw); color: #FFFFFF; }
.mxchat__invoer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--mx-rand); background: #F7F9FC; }
.mxchat__invoer input { flex: 1; min-width: 0; font: inherit; font-size: 14px; border: 1px solid #CBD5E1; border-radius: 999px; padding: 10px 14px; background: #FFFFFF; }
.mxchat__invoer button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--mx-blauw); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mxchat__invoer button svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .mxchat { bottom: 12px; right: 12px; }
  .heeft-belbalk .mxchat { bottom: 96px; }
}

/* Chatberichten (opmaak per ontwerp kan dit aanvullen) */
.chat__bericht { margin: 0; max-width: 88%; padding: 10px 14px; font-size: 14px; line-height: 1.45; }
.chat__bericht--bot { align-self: flex-start; background: #FFFFFF; color: var(--mx-tekst); border: 1px solid var(--mx-rand); border-radius: 14px 14px 14px 4px; }
.chat__bericht--klant { align-self: flex-end; background: var(--mx-blauw); color: #FFFFFF; border-radius: 14px 14px 4px 14px; }
.chat__bericht a { font-weight: 700; }

/* Strook "Vertrouwd door de grote vervoerders": opdrachtgevers en de NIWO-vergunning.
   Logo's in één kleur (currentColor), zodat ze in elk ontwerp passen. */
.mxp {
  --mxp-vlak: var(--mx-grijs);
  --mxp-rand: var(--mx-rand);
  --mxp-kop: var(--mx-navy);
  --mxp-tekst: var(--mx-zacht);
  --mxp-logo: #334155;
  --mxp-accent: var(--mx-blauw);
  background: var(--mxp-vlak);
  border-top: 1px solid var(--mxp-rand);
  border-bottom: 1px solid var(--mxp-rand);
  font-family: 'Montserrat', system-ui, sans-serif;
}
.mxp--donker {
  --mxp-vlak: rgba(255, 255, 255, .025);
  --mxp-rand: rgba(255, 255, 255, .08);
  --mxp-kop: #FFFFFF;
  --mxp-tekst: #9DAEC6;
  --mxp-logo: #DCE3EE;
  --mxp-accent: #7FA4FF;
}
.mxp--tegel { --mxp-vlak: #FFFFFF; border: 0; border-radius: 24px; }
.mxp__binnen { max-width: 1200px; margin: 0 auto; padding: 28px 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tekst logos" "niwo logos"; align-items: center; gap: 14px 48px; }
.mxp__tekst { grid-area: tekst; }
.mxp__logos { grid-area: logos; justify-content: flex-end; }
.mxp__niwo { grid-area: niwo; justify-self: start; }
.mxp__tekst { display: flex; flex-direction: column; gap: 2px; }
.mxp__kop { margin: 0; font-family: 'Unbounded', 'Arial Black', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--mxp-kop); }
.mxp__tekst p { margin: 0; font-size: 14px; color: var(--mxp-tekst); }
.mxp__logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; color: var(--mxp-logo); }
.mxp__logos li { display: flex; align-items: center; }
.mxp__logos svg { display: block; fill: currentColor; width: auto; }
.mxp__dhl { height: 18px; }
.mxp__ups { height: 38px; }
.mxp__fedex { height: 26px; }
.mxp__woord { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 800; font-size: 25px; letter-spacing: -.02em; line-height: 1; }
.mxp__niwo { margin: 0; display: flex; align-items: center; gap: 10px; border: 1px solid var(--mxp-rand); border-radius: 12px; padding: 8px 14px; }
.mxp__niwo svg { width: 26px; height: 26px; flex: none; color: var(--mxp-accent); }
.mxp__niwo span { display: flex; flex-direction: column; line-height: 1.25; }
.mxp__niwo strong { font-size: 14px; color: var(--mxp-kop); }
.mxp__niwo small { font-size: 12px; color: var(--mxp-tekst); }
@media (max-width: 860px) {
  .mxp__binnen { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tekst" "logos" "niwo"; gap: 16px; }
  .mxp__logos { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .mxp__binnen { padding: 24px 16px; }
  .mxp__logos { gap: 16px 28px; }
}
