/* Multi Select & Checkbox Grid */
.vfe-select-multi {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--vfe-border);
    border-radius: var(--vfe-radius-sm);
    min-height: 120px;
}

.vfe-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    background: #f8fafc;
    padding: 16px;
    border-radius: var(--vfe-radius-sm);
    border: 1px solid var(--vfe-border);
}

.vfe-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vfe-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--vfe-primary);
}

.vfe-checkbox-item label {
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
}

/* ── Image Upload ── */
.vfe-image-dropzone {
    border: 2px dashed var(--vfe-border, #cbd5e1);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #f8fafc;
}

.vfe-image-dropzone:hover {
    border-color: var(--vfe-primary, #3b82f6);
    background: #eff6ff;
}

.vfe-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #64748b;
}

.vfe-dropzone-icon {
    font-size: 32px;
    line-height: 1;
}

.vfe-dropzone-content small {
    font-size: 12px;
    color: #94a3b8;
}

.vfe-image-dropzone-small {
    width: 120px;
    height: 120px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vfe-image-dropzone-small .vfe-dropzone-icon {
    font-size: 28px;
    color: #94a3b8;
}

.vfe-image-featured-wrap {
    display: inline-block;
}

.vfe-image-thumb {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--vfe-border, #e2e8f0);
    background: #f1f5f9;
}

.vfe-image-thumb img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.vfe-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.15s;
}

.vfe-image-thumb:hover .vfe-image-remove,
.vfe-image-thumb:hover .vfe-image-star {
    opacity: 1;
}

.vfe-image-star {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(234, 179, 8, 0.9);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.15s;
}

.vfe-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

/* Upload Progress */
.vfe-upload-progress {
    margin-top: 12px;
}

.vfe-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.vfe-progress-fill {
    height: 100%;
    background: var(--vfe-primary, #3b82f6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ── Legal Checkboxes (AGB/Datenschutz) ── */
.vfe-form-legal {
    margin: 20px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.vfe-checkbox-group {
    margin-bottom: 12px;
}

.vfe-checkbox-group:last-child {
    margin-bottom: 0;
}

.vfe-checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.vfe-checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--vfe-primary, #3b82f6);
    cursor: pointer;
    flex-shrink: 0;
}

.vfe-checkbox-group span {
    color: #475569;
}

.vfe-checkbox-group a {
    color: var(--vfe-primary, #3b82f6);
    text-decoration: none;
    font-weight: 500;
}

.vfe-checkbox-group a:hover {
    text-decoration: underline;
}

/* ── Role Selector (Registration) ── */
.vfe-role-selector-group {
    margin-bottom: 24px;
}

.vfe-role-selector {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.vfe-role-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vfe-role-option input[type="radio"] {
    display: none;
}

.vfe-role-icon {
    font-size: 24px;
}

.vfe-role-text {
    font-weight: 600;
    color: #475569;
    font-size: 15px;
}

.vfe-role-option:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.vfe-role-option.active {
    border-color: #0f172a;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.vfe-role-option.active .vfe-role-text {
    color: #0f172a;
}