/* Gromax huisstijl: rood #E30613, geel #FDC401, grijs #4A4A49, lichtgrijs #FAFAFA, lijnen #EFEFEF,
   koppen proxima-nova 800, tekst ibm-plex-sans (beide al op gromaxverhuur.nl geladen) */
.gac { --gac-radius: 24px; --gac-color: #e30613; --gac-accent: #fdc401; --gac-grey: #4a4a49; --gac-light: #fafafa; --gac-line: #efefef;
  font-family: ibm-plex-sans, "IBM Plex Sans", Arial, sans-serif; font-size: 14px; line-height: 1.5; color: var(--gac-grey); box-sizing: border-box; }
.gac *, .gac *::before, .gac *::after { box-sizing: border-box; }

.gac-panel { display: flex; flex-direction: column; background: #fff; border-radius: var(--gac-radius); overflow: hidden; box-shadow: 0 18px 50px rgba(74,74,73,.22), 0 2px 6px rgba(74,74,73,.08); }
.gac--inline .gac-panel { height: 560px; max-height: 80vh; box-shadow: 0 6px 24px rgba(74,74,73,.12); }

/* Kop zoals de site: wit met een schuin lichtgrijs vlak en een rode lijn */
.gac-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 10px 12px 14px; color: var(--gac-grey); background: linear-gradient(112deg, #fff 0 58%, #f2f2f2 58% 100%); }
.gac-head::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px; background: var(--gac-color); }
.gac-wordmark { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.gac-wordmark img { display: block; height: 24px; width: auto; }
.gac-wordmark small { font-family: ibm-plex-sans, "IBM Plex Sans", Arial, sans-serif; font-weight: 600; font-size: 12px; color: #7b7b7a; line-height: 1.2; }
.gac-title { display: flex; align-items: center; gap: 10px; font-family: proxima-nova, Montserrat, Arial, sans-serif; font-weight: 800; font-size: 18px; line-height: 1.15; }
.gac-head-icon { flex: none; display: inline-flex; width: 42px; height: 42px; border-radius: 50%; background: var(--gac-color); align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(227,6,19,.25); }
.gac-head-icon .gac-bot { width: 34px; height: 34px; }
.gac-head-icon .gac-bot-bubble { display: none; }
.gac-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 0; color: var(--gac-grey); font-size: 26px; line-height: 1; cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(74,74,73,.12); transition: transform .2s ease, background .2s ease; }
.gac-close:hover { background: var(--gac-accent); transform: rotate(90deg); }

.gac-log { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px; background: var(--gac-light); display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.gac-msg { max-width: 88%; padding: 11px 15px; overflow-wrap: anywhere; border-radius: 18px; animation: gac-in .28s cubic-bezier(.22,1,.36,1) both; }
.gac-msg p { margin: 0 0 6px; } .gac-msg p:last-child { margin: 0; }
.gac-msg ul { margin: 4px 0 6px; padding-left: 18px; } .gac-msg li { margin: 3px 0; }
.gac-msg--assistant { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 2px 10px rgba(74,74,73,.07); }
.gac-msg--user { align-self: flex-end; background: var(--gac-grey); color: #fff; white-space: pre-wrap; border-bottom-right-radius: 6px; }
.gac-msg--error { align-self: flex-start; background: #fdecea; color: #a1040e; border-bottom-left-radius: 6px; }
.gac-product { color: var(--gac-color); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.gac-product:hover { text-decoration-color: var(--gac-accent); }
@keyframes gac-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.gac-examples { display: flex; flex-direction: column; gap: 6px; }
.gac-chip { text-align: left; background: #fff; border: 1px solid var(--gac-line); box-shadow: 0 2px 8px rgba(74,74,73,.05); transition: background .2s ease, border-color .2s ease, transform .2s ease; color: var(--gac-grey); border-radius: 30px; padding: 8px 16px; cursor: pointer; font: inherit; font-weight: 600; }
.gac-chip:hover { border-color: var(--gac-accent); background: var(--gac-accent); transform: translateY(-1px); }

.gac-typing { display: flex; gap: 4px; padding: 14px 16px; align-self: flex-start; background: #fff; border-radius: 18px 18px 18px 6px; box-shadow: 0 2px 10px rgba(74,74,73,.07); }
.gac-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gac-color); animation: gac-blink 1.2s infinite ease-in-out; }
.gac-typing span:nth-child(2) { animation-delay: .2s; } .gac-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes gac-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.gac-form { display: flex; gap: 8px; padding: 12px 12px 8px; background: #fff; }
.gac-input { flex: 1; min-width: 0; resize: none; border: 1px solid var(--gac-line); background: var(--gac-light); color: var(--gac-grey); border-radius: 25px; padding: 11px 16px; font: inherit; min-height: 44px; max-height: 120px; }
.gac-input { transition: border-color .2s ease, background .2s ease; }
.gac-input:focus { outline: none; border-color: var(--gac-accent); background: #fff; box-shadow: 0 0 0 3px rgba(253,196,1,.25); }
.gac-send { background: var(--gac-accent); color: var(--gac-grey); border: 0; border-radius: 30px; padding: 0 20px; font: inherit; font-weight: 600; cursor: pointer; }
.gac-send { transition: transform .15s ease, filter .15s ease; }
.gac-send:hover { filter: brightness(.96); }
.gac-send:active { transform: scale(.96); }
.gac-send:disabled { opacity: .5; cursor: default; }
.gac-foot { font-size: 11.5px; color: #8a8a89; padding: 0 16px 12px; background: #fff; }

.gac-fb { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--gac-line); }
.gac-fb-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--gac-line); border-radius: 30px; padding: 3px 10px 3px 4px; font: inherit; font-size: 12px; font-weight: 600; color: #6b6b6a; cursor: pointer; }
.gac-fb-btn:hover { border-color: var(--gac-color); color: var(--gac-color); }
.gac-fb-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gac-accent); color: var(--gac-grey); font-weight: 800; font-size: 12px; line-height: 1; }
.gac-fb-form { display: flex; flex-direction: column; gap: 8px; }
.gac-fb-title { font-weight: 700; font-size: 13px; }
.gac-fb-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.gac-fb-reason { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--gac-line); border-radius: 30px; padding: 3px 10px; font-size: 12px; cursor: pointer; background: #fff; }
.gac-fb-reason:has(input:checked) { border-color: var(--gac-color); color: var(--gac-color); font-weight: 600; }
.gac-fb-reason input { margin: 0; accent-color: var(--gac-color); }
.gac-fb-note { width: 100%; resize: vertical; border: 1px solid var(--gac-line); background: var(--gac-light); border-radius: 14px; padding: 8px 10px; font: inherit; font-size: 13px; color: var(--gac-grey); }
.gac-fb-note:focus { outline: 2px solid var(--gac-accent); outline-offset: 0; }
.gac-fb-actions { display: flex; gap: 8px; }
.gac-fb-send { background: var(--gac-accent); color: var(--gac-grey); border: 0; border-radius: 30px; padding: 6px 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gac-fb-send:disabled { opacity: .6; cursor: default; }
.gac-fb-cancel { background: none; border: 0; font: inherit; font-size: 13px; color: #6b6b6a; cursor: pointer; text-decoration: underline; }
.gac-fb-done { font-size: 12px; font-weight: 600; color: #3d7a3a; }
.gac-fb-err { font-size: 12px; color: #a1040e; }
.gac-fb-btn:focus-visible, .gac-fb-send:focus-visible, .gac-fb-cancel:focus-visible { outline: 3px solid var(--gac-accent); outline-offset: 2px; }

/* Klein chat-bot-hoofd rechtsonder; de chat groeit vloeiend uit de knop open */
.gac--floating { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 99999; }
.gac--floating .gac-panel { position: absolute; right: 0; bottom: 80px; width: 380px; height: 560px; max-height: calc(100vh - 120px);
  transform-origin: calc(100% - 32px) calc(100% + 48px);
  visibility: hidden; opacity: 0; pointer-events: none;
  transform: translateY(14px) scale(.9);
  clip-path: inset(70% 0 0 60% round 40px);
  transition: transform .42s cubic-bezier(.22,1,.36,1), opacity .22s ease, clip-path .42s cubic-bezier(.22,1,.36,1), visibility 0s linear .42s;
  will-change: transform, opacity, clip-path; }
.gac--floating.gac--open .gac-panel { visibility: visible; opacity: 1; pointer-events: auto; transform: none; clip-path: inset(-60px round var(--gac-radius)); /* ruimte voor de schaduw */
  transition: transform .48s cubic-bezier(.22,1,.36,1), opacity .2s ease, clip-path .48s cubic-bezier(.22,1,.36,1), visibility 0s; }
/* inhoud schuift kort na het openen rustig in beeld */
.gac--floating .gac-head, .gac--floating .gac-log, .gac--floating .gac-form, .gac--floating .gac-foot { opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.gac--floating.gac--open .gac-head, .gac--floating.gac--open .gac-log, .gac--floating.gac--open .gac-form, .gac--floating.gac--open .gac-foot { opacity: 1; transform: none; transition: opacity .35s ease, transform .45s cubic-bezier(.22,1,.36,1); }
.gac--floating.gac--open .gac-head { transition-delay: .08s; }
.gac--floating.gac--open .gac-log { transition-delay: .14s; }
.gac--floating.gac--open .gac-form, .gac--floating.gac--open .gac-foot { transition-delay: .2s; }

.gac-launcher { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; background: var(--gac-color); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 8px 22px rgba(227,6,19,.32), 0 2px 6px rgba(74,74,73,.2); transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease; }
.gac-launcher:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 26px rgba(227,6,19,.36), 0 2px 6px rgba(74,74,73,.2); }
.gac-launcher:active { transform: scale(.94); }
.gac-launcher .gac-bot { transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .2s ease; }
.gac-launcher-x { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: rotate(-90deg) scale(.5); transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .2s ease; pointer-events: none; }
.gac-launcher-x::before, .gac-launcher-x::after { content: ""; position: absolute; width: 22px; height: 3px; border-radius: 3px; background: #fff; }
.gac-launcher-x::before { transform: rotate(45deg); } .gac-launcher-x::after { transform: rotate(-45deg); }
.gac--open .gac-launcher .gac-bot { opacity: 0; transform: rotate(90deg) scale(.5); }
.gac--open .gac-launcher .gac-launcher-x { opacity: 1; transform: none; }
.gac-launcher:focus-visible, .gac-chip:focus-visible, .gac-send:focus-visible, .gac-close:focus-visible { outline: 3px solid var(--gac-accent); outline-offset: 2px; }
.gac-bot { overflow: visible; }
.gac-bot-head { transform-origin: 32px 56px; animation: gac-bob 3.4s ease-in-out infinite; }
.gac-bot-eyes { transform-origin: 32px 41px; animation: gac-eyes 4.5s infinite; }
.gac-bot-bubble { transform-origin: 54px 10px; animation: gac-ask 7s ease-in-out infinite; }
.gac-launcher:hover .gac-bot-head { animation: gac-nod .6s ease-in-out 1; }
.gac--open .gac-launcher .gac-bot-bubble { animation: none; opacity: 0; }
.gac--open .gac-launcher .gac-bot-head { animation: none; }
@keyframes gac-bob { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-1.5px) rotate(-4deg); } 75% { transform: translateY(-.5px) rotate(4deg); } }
@keyframes gac-nod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 65% { transform: rotate(7deg); } }
@keyframes gac-eyes { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes gac-ask { 0%, 55%, 100% { transform: scale(0); opacity: 0; } 62%, 90% { transform: scale(1); opacity: 1; } }

@media (max-width: 480px) {
  .gac--floating { right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .gac--floating .gac-panel { position: fixed; left: 8px; right: 8px; top: calc(8px + env(safe-area-inset-top, 0px)); bottom: 88px; width: auto; height: auto; max-height: none; transform-origin: calc(100% - 36px) 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gac-bot-head, .gac-bot-eyes, .gac-bot-bubble, .gac-launcher:hover .gac-bot-head, .gac-msg { animation: none; }
  .gac-bot-bubble { opacity: 1; transform: none; }
  .gac--floating .gac-panel, .gac--floating.gac--open .gac-panel { transform: none; clip-path: none; transition: opacity .15s ease, visibility 0s linear .15s; }
  .gac--floating.gac--open .gac-panel { transition: opacity .15s ease; }
  .gac--floating .gac-head, .gac--floating .gac-log, .gac--floating .gac-form, .gac--floating .gac-foot { transform: none; transition: none; opacity: 1; }
  .gac-launcher, .gac-launcher .gac-bot, .gac-launcher-x, .gac-close { transition: none; }
}
