﻿.popupOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(0,0,0,0.45);
    padding: 48px;
}

.popup-container {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    overflow: visible; /* belangrijk voor mobile */
}


.popup-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.popup-content {
    padding: 20px;
    overflow: visible; /* niet intern scrollen */
    flex: 1;
}

.popupWrapper {
    width: 650px;
    max-width: 92vw;
    margin-top: 60px; /* zorgt dat popup zichtbaar bovenaan start */
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    background: #f6f7f6;
    border-radius: 16px;
    padding: 44px 48px;
}

@media (max-width:700px) {

    .popupOverlay {
        padding: 20px;
    }

    .popupWrapper {
        margin: 20px auto;
        padding: 28px 24px;
    }
}

.popupScroll {
    overflow: visible; /* overlay doet de scroll */
    max-height: none;
    padding-bottom: 48px;
    scrollbar-width: none;
}

    .popupScroll::-webkit-scrollbar {
        display: none;
    }

.popupWrapper h2 {
    color: var(--color-accent);
    margin-bottom: 26px;
}

.popupGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.formFull {
    grid-column: 1 / span 2;
}

.formInput,
.formTextarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e2e2e2;
    font-size: 14px;
}

.formTextarea {
    min-height: 130px;
}

.popupSend {
    margin-top: 22px;
}

.hpField {
    display: none;
}

.formActions {
    position: sticky;
    bottom: 0px;
    background: transparent;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    margin-top: 0px;
    padding-top: 0px;
}

body.popupOpen {
    overflow: hidden;
}

.sendButton {
    width: 100%;
    height: 52px;
    background: #111;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: all 0.15s ease;
}

    .sendButton:hover {
        background: #1b1b1b;
        box-shadow: 0 5px 14px rgba(0,0,0,0.25);
    }

.sendHint {
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    color: #777;
}