/* Postcode Autocomplete NL — Stijlen */

/* ── Trigger knop ──────────────────────────────────────────────────────────── */
.pca-trigger-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px 0;
    padding: 10px 20px;
    background-color: #307264 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
    box-shadow: none !important;
    text-decoration: none !important;
}
.pca-trigger-btn:hover {
    background-color: #235a4e !important;
    color: #fff !important;
}
.pca-trigger-btn svg {
    flex-shrink: 0;
}

/* ── Overlay ───────────────────────────────────────────────────────────────── */
#pca-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.55) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
}
#pca-overlay.pca-open {
    display: flex !important;
}

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.pca-modal {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px 28px;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    position: relative;
    animation: pca-slide-in 0.22s ease;
}
@keyframes pca-slide-in {
    from { transform: translateY(-16px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.pca-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
}
.pca-modal__close:hover { color: #111; }

.pca-modal__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #111;
}
.pca-modal__sub {
    font-size: 13px;
    color: #666;
    margin: 0 0 22px 0;
}

/* Formulier rijen */
.pca-modal__row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}
.pca-modal__field {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pca-modal__field label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}
.pca-modal__field input {
    border: 1.5px solid #d2d6dc;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}
.pca-modal__field input:focus {
    border-color: #307264;
}
.pca-modal__field input.pca-error {
    border-color: #dc3232;
}

/* Resultaat vak */
.pca-modal__result {
    display: none;
    background: #f0faf7;
    border: 1.5px solid #307264;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #1a4a3a;
}
.pca-modal__result strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}
.pca-modal__result.pca-error-box {
    background: #fff5f5;
    border-color: #dc3232;
    color: #9b1c1c;
}

/* Knop in modal */
.pca-modal__btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #307264;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.pca-modal__btn:hover:not(:disabled) {
    background: #235a4e;
}
.pca-modal__btn:disabled {
    background: #a0b8b3;
    cursor: not-allowed;
}

/* Spinner */
.pca-modal__spinner {
    display: none;
    text-align: center;
    padding: 12px;
    color: #666;
    font-size: 14px;
}

/* Automatisch ingevulde velden */
.pca-auto-filled {
    background: #f0faf7 !important;
    color: #307264 !important;
    border-color: #307264 !important;
}
.pca-unlock-link {
    color: #307264;
    font-size: 12px;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .pca-modal {
        padding: 24px 16px 20px;
        margin: 10px;
    }
    .pca-modal__row {
        flex-direction: column;
    }
    .pca-modal__field { max-width: 100% !important; }
}
