/* GetBright Contact Widget */
.gb-cw {
    --gb-cw-panel: 400px;
    --gb-cw-tab: 64px;
    --gb-cw-primary: var(--primary-color, #003a62);
    --gb-cw-primary-light: var(--primary-color--light, #264E84);
    --gb-cw-accent: var(--secondary-color, #b92f2a);
    --gb-cw-bg: var(--beige-color, #F5F0EC);

    position: fixed;
    top: 50%;
    right: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    transform: translate(var(--gb-cw-panel), -50%);
    transition: transform .4s ease;
}

/* Open: boven de vaste header (z-index 9) */
.gb-cw.gb-cw--open {
    z-index: 10;
    transform: translate(0, -50%);
}

/* Tab */
.gb-cw__tab {
    width: var(--gb-cw-tab);
    flex: 0 0 var(--gb-cw-tab);
    box-shadow: -2px 2px 12px rgba(0, 0, 0, .12);
}

.gb-cw__quick {
    background: var(--gb-cw-primary);
    padding: 8px 0;
}

.gb-cw__btn,
.gb-cw__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    color: #fff;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.gb-cw__btn:hover,
.gb-cw__btn:focus-visible {
    background: var(--gb-cw-primary-light);
    color: #fff;
}

.gb-cw__toggle {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    color: var(--gb-cw-primary);
    cursor: pointer;
    padding: 0;
}

.gb-cw__toggle:hover,
.gb-cw__toggle:focus-visible {
    background: var(--gb-cw-bg);
}

.gb-cw svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gb-cw__icon-close,
.gb-cw--open .gb-cw__icon-open {
    display: none;
}

.gb-cw--open .gb-cw__icon-close {
    display: block;
}

/* Panel */
.gb-cw__panel {
    width: var(--gb-cw-panel);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 32px 32px 36px;
    background: var(--gb-cw-bg);
    box-shadow: -4px 4px 24px rgba(0, 0, 0, .15);
    visibility: hidden;
    transition: visibility 0s linear .4s;
}

.gb-cw--open .gb-cw__panel {
    visibility: visible;
    transition-delay: 0s;
}

.gb-cw__title {
    font-family: "Myriad Pro Bold", sans-serif;
    font-size: 26px;
    line-height: 1.2;
    color: var(--gb-cw-primary);
    margin-bottom: 8px;
}

.gb-cw__intro {
    margin-bottom: 20px;
}

.gb-cw__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.gb-cw__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.gb-cw__list svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: var(--gb-cw-accent);
}

.gb-cw__list small {
    display: block;
    font-size: 13px;
    color: #6c757d;
}

.gb-cw__list a {
    color: var(--gb-cw-primary);
    font-family: "Myriad Pro Bold", sans-serif;
    font-size: 17px;
    text-decoration: none;
    word-break: break-word;
}

.gb-cw__list a:hover {
    text-decoration: underline;
}

.gb-cw__address {
    margin-bottom: 20px;
}

/* Views: contactgegevens / formulier */
.gb-cw__view {
    display: none;
}

.gb-cw__view--active {
    display: block;
}

.gb-cw__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.gb-cw__cta {
    display: inline-block;
}

button.gb-cw__cta {
    font: inherit;
    cursor: pointer;
}

.gb-cw__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: -8px 0 16px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gb-cw-primary);
    font-size: 14px;
    cursor: pointer;
}

.gb-cw__back:hover {
    text-decoration: underline;
}

.gb-cw .gb-cw__back svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Formulier (thema-styling via .gf-wrapper, hier alleen aanvullingen) */
.gb-cw__form input[type="text"],
.gb-cw__form input[type="email"],
.gb-cw__form input[type="tel"],
.gb-cw__form textarea {
    background: #fff;
}

.gb-cw__form textarea {
    width: 100%;
    height: 7rem;
    padding: .5rem 1rem;
    border: none;
    border-bottom: 1px dashed rgba(0, 58, 98, .5);
}

.gb-cw__form .gform_fields {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gb-cw__form .gfield--type-consent,
.gb-cw__form .ginput_container_consent {
    font-size: 14px;
    line-height: 1.4;
}

.gb-cw__form .ginput_container_consent input[type="checkbox"] {
    flex: 0 0 1rem;
    height: 1rem;
}

.gb-cw__form .gform_footer {
    margin: 0;
    padding: 0;
}

.gb-cw__form .gfield_validation_message,
.gb-cw__form .validation_message,
.gb-cw__form .gform_validation_errors {
    color: var(--gb-cw-accent);
    font-size: 14px;
}

.gb-cw__form .gfield_validation_message {
    margin-top: .25rem;
}

.gb-cw__form .gform_validation_errors h2 {
    font-size: 15px;
    margin: 0;
}

.gb-cw__form .gform_confirmation_message {
    color: var(--gb-cw-primary);
    font-family: "Myriad Pro Bold", sans-serif;
}

.gb-cw__form .gform_ajax_spinner {
    width: 18px;
    height: 18px;
    margin-left: 8px;
}

/* Mobile: compacte tab onderaan rechts, paneel bijna schermbreed */
@media (max-width: 767.98px) {
    .gb-cw {
        --gb-cw-tab: 48px;
        --gb-cw-panel: min(340px, calc(100vw - 48px));
        top: auto;
        bottom: 16px;
        align-items: flex-end;
        transform: translateX(var(--gb-cw-panel));
    }

    .gb-cw.gb-cw--open {
        transform: translateX(0);
    }

    .gb-cw__quick {
        padding: 4px 0;
    }

    .gb-cw__btn,
    .gb-cw__toggle {
        height: 44px;
    }

    .gb-cw svg {
        width: 22px;
        height: 22px;
    }

    .gb-cw__panel {
        padding: 24px 20px 28px;
        max-height: calc(100vh - 32px);
    }

    .gb-cw__title {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gb-cw,
    .gb-cw__panel {
        transition: none;
    }
}

@media print {
    .gb-cw {
        display: none;
    }
}
