/* Modal overlay */
.chiro-vg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    animation: chiroOverlayIn 0.25s ease;
}

@keyframes chiroOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chiro-vg-modal {
    position: relative;
    max-height: 90vh;
    overflow-y: visible;
    overflow-x: visible;
    border-radius: 12px;
}

.chiro-vg-modal-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 10 !important;
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    line-height: 1 !important;
    color: #5a6270 !important;
    cursor: pointer !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    transition: background 0.15s, color 0.15s !important;
}

.chiro-vg-modal-close:hover {
    background: #f3f4f6 !important;
    color: #1a1a2e !important;
}

.chiro-vg-widget {
    --chiro-primary: #1B6B4A;
    --chiro-primary-light: #e8f5ee;
    --chiro-primary-hover: #155a3d;
    --chiro-border: #d1d9e0;
    --chiro-bg: #ffffff;
    --chiro-text: #1a1a2e;
    --chiro-text-muted: #5a6270;
    --chiro-radius: 10px;
    --chiro-shadow: 0 2px 12px rgba(0,0,0,0.08);

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    width: 480px;
    max-width: 100%;
    margin: 0 auto;
    background: var(--chiro-bg);
    border: 1px solid var(--chiro-border);
    border-radius: var(--chiro-radius);
    box-shadow: var(--chiro-shadow);
    padding: 28px 24px 20px;
    box-sizing: border-box;
}

.chiro-vg-widget * {
    box-sizing: border-box;
}

.chiro-vg-header {
    margin-bottom: 20px;
    text-align: center;
    padding-right: 40px;
    padding-left: 40px;
}

.chiro-vg-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--chiro-text);
    margin: 0 0 4px;
    line-height: 1.3;
}

.chiro-vg-subtitle {
    font-size: 13px;
    color: var(--chiro-text-muted);
    margin: 0;
    line-height: 1.4;
}

.chiro-vg-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--chiro-text);
    margin-bottom: 6px;
}

.chiro-vg-search-wrap {
    position: relative;
    margin-bottom: 16px;
}

.chiro-vg-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.chiro-vg-search-icon {
    position: absolute;
    left: 12px;
    color: var(--chiro-text-muted);
    pointer-events: none;
    flex-shrink: 0;
}

.chiro-vg-input {
    width: 100%;
    padding: 10px 36px 10px 38px !important;
    font-size: 16px;
    border: 1.5px solid var(--chiro-border);
    border-radius: 8px;
    background: var(--chiro-bg);
    color: var(--chiro-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chiro-vg-input:focus {
    border-color: var(--chiro-primary);
    box-shadow: 0 0 0 3px rgba(27,107,74,0.12);
}

.chiro-vg-input::placeholder {
    color: #9ca3af;
}

.chiro-vg-clear {
    position: absolute !important;
    right: 8px !important;
    background: none !important;
    border: none !important;
    font-size: 20px !important;
    color: var(--chiro-text-muted) !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    line-height: 1 !important;
    border-radius: 4px !important;
}

.chiro-vg-clear:hover {
    color: var(--chiro-text) !important;
    background: #f3f4f6 !important;
}

.chiro-vg-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--chiro-bg);
    border: 1.5px solid var(--chiro-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 220px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.chiro-vg-dropdown li {
    padding: 9px 14px;
    font-size: 14px;
    color: var(--chiro-text);
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1.4;
}

.chiro-vg-dropdown li:hover,
.chiro-vg-dropdown li.chiro-vg-active {
    background: var(--chiro-primary-light);
    color: var(--chiro-primary);
}

.chiro-vg-dropdown li mark {
    background: transparent;
    color: var(--chiro-primary);
    font-weight: 700;
}

.chiro-vg-pakket-wrap {
    margin-bottom: 16px;
}

.chiro-vg-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    border: 1.5px solid var(--chiro-border);
    border-radius: 8px;
    background: var(--chiro-bg);
    color: var(--chiro-text);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235a6270' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chiro-vg-select:focus {
    border-color: var(--chiro-primary);
    box-shadow: 0 0 0 3px rgba(27,107,74,0.12);
}

.chiro-vg-result {
    margin-bottom: 16px;
}

.chiro-vg-result-card {
    background: var(--chiro-primary-light);
    border: 1.5px solid rgba(27,107,74,0.2);
    border-radius: 10px;
    padding: 18px;
    animation: chiroFadeIn 0.3s ease;
}

@keyframes chiroFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.chiro-vg-result-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    gap: 8px;
    flex-wrap: wrap;
}

.chiro-vg-result-verzekeraar {
    font-size: 16px;
    font-weight: 700;
    color: var(--chiro-primary);
}

.chiro-vg-result-pakket-name {
    font-size: 13px;
    color: var(--chiro-text-muted);
    font-weight: 500;
}

.chiro-vg-result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.chiro-vg-result-item {
    text-align: center;
    background: var(--chiro-bg);
    border-radius: 8px;
    padding: 12px 8px;
}

.chiro-vg-result-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--chiro-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.chiro-vg-result-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--chiro-primary);
}

.chiro-vg-no-coverage {
    text-align: center;
    padding: 8px 0 0;
}

.chiro-vg-no-coverage p {
    font-size: 14px;
    color: var(--chiro-text-muted);
    margin: 0;
}

.chiro-vg-footer {
    text-align: center;
    border-top: 1px solid #eef1f5;
    padding-top: 14px;
}

.chiro-vg-footer p {
    font-size: 11px;
    color: #9ca3af;
    margin: 0 0 2px;
    line-height: 1.5;
}

.chiro-vg-footer a {
    color: var(--chiro-primary);
    text-decoration: none;
}

.chiro-vg-footer a:hover {
    text-decoration: underline;
}

.chiro-vg-disclaimer {
    font-style: italic;
}

/* Responsive */
@media (max-width: 500px) {
    .chiro-vg-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .chiro-vg-widget {
        width: auto;
        padding: 20px 16px 16px;
        border-radius: 8px;
    }

    .chiro-vg-result-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .chiro-vg-result-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px;
    }

    .chiro-vg-result-label {
        margin-bottom: 0;
    }

    .chiro-vg-result-value {
        font-size: 16px;
    }
}
